mirror of https://github.com/zrafa/xinu-avr.git
2 changed files with 48 additions and 0 deletions
Binary file not shown.
@ -0,0 +1,48 @@
|
||||
/* conf.h (GENERATED FILE; DO NOT EDIT) */ |
||||
|
||||
/* Device switch table declarations */ |
||||
|
||||
/* Device table entry */ |
||||
struct dentry { |
||||
int32 dvnum; |
||||
int32 dvminor; |
||||
char dvname[10]; |
||||
devcall (*dvinit) (struct dentry *); |
||||
devcall (*dvopen) (struct dentry *, char *, char *); |
||||
devcall (*dvclose)(struct dentry *); |
||||
devcall (*dvread) (struct dentry *, void *, uint32); |
||||
devcall (*dvwrite)(struct dentry *, void *, uint32); |
||||
devcall (*dvseek) (struct dentry *, int32); |
||||
devcall (*dvgetc) (struct dentry *); |
||||
devcall (*dvputc) (struct dentry *, char); |
||||
devcall (*dvcntl) (struct dentry *, int32, int32, int32); |
||||
void *dvcsr; |
||||
void (*dvintr)(void); |
||||
byte dvirq; |
||||
}; |
||||
|
||||
extern const __flash struct dentry devtab[] ; /* one entry per device */ |
||||
|
||||
/* Device name definitions */ |
||||
|
||||
#define CONSOLE 0 /* type tty */ |
||||
#define NULLDEV 1 /* type null */ |
||||
#define NAMESPACE 2 /* type nam */ |
||||
#define EEPROM0 3 /* type eeprom */ |
||||
|
||||
/* Control block sizes */ |
||||
|
||||
#define Nnull 1 |
||||
#define Ntty 1 |
||||
#define Neeprom 1 |
||||
#define Nnam 1 |
||||
|
||||
#define NDEVS 4 |
||||
|
||||
|
||||
/* Configuration and Size Constants */ |
||||
|
||||
#define NPROC 4 /* number of user processes */ |
||||
// RAFA #define NSEM 4 /* number of semaphores */
|
||||
// #define NSEM 2 /* number of semaphores */
|
||||
#define NSEM 2 /* number of semaphores */ |
||||
Loading…
Reference in new issue