diff options
author | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-07-22 14:24:58 +0000 |
---|---|---|
committer | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-07-22 14:24:58 +0000 |
commit | 5f148f59e732b1e1833f5b106d58d4ad55f19f40 (patch) | |
tree | e2cdeede62d4c30b28aea5b327bfb075f3ef4fad /openpcd/firmware/src/openpcd.h | |
parent | 413333331aa5db1a9d18be6bfb76ccd84f761ac4 (diff) |
- add S256 linker script
- add USB transmit routines
- connect usb OUT endpoint with parser / spi
git-svn-id: https://svn.openpcd.org:2342/trunk@10 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpcd/firmware/src/openpcd.h')
-rw-r--r-- | openpcd/firmware/src/openpcd.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/openpcd/firmware/src/openpcd.h b/openpcd/firmware/src/openpcd.h index 40cc44a..cf67467 100644 --- a/openpcd/firmware/src/openpcd.h +++ b/openpcd/firmware/src/openpcd.h @@ -4,9 +4,12 @@ #ifdef OLIMEX #define OPENPCD_LED1 AT91C_PIO_PA18 #define OPENPCD_LED2 AT91C_PIO_PA17 +//#define AT91C_PIO_UDP_PUP AT91C_PIO_PA25 +#define AT91C_PIO_UDP_PUP AT91C_PIO_PA16 #else #define OPENPCD_LED1 AT91C_PIO_PA25 #define OPENPCD_LED2 AT91C_PIO_PA26 +#define AT91C_PIO_UDP_PUP AT91C_PIO_PA16 #endif #define OPENPCD_RC632_IRQ AT91C_ID_IRQ1 @@ -27,7 +30,7 @@ struct req_buf { }; struct req_ctx { - u_int16_t seq; /* request sequence number */ + //u_int16_t seq; /* request sequence number */ u_int32_t flags; @@ -35,4 +38,9 @@ struct req_ctx { struct req_buf tx; }; +#define NUM_REQ_CTX 8 +extern struct req_ctx *req_ctx_find_get(void); +extern void req_ctx_put(struct req_ctx *ctx); +extern u_int8_t req_ctx_num(struct req_ctx *ctx); + #endif /* _OPENPCD_H */ |