summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/openpcd.h
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-07-24 16:34:55 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-07-24 16:34:55 +0000
commitcaf5000333d37d2a772236bd6c3d539b0ee39c86 (patch)
tree2bf4d4da34282fdaa71dcfd55bc9207fc5c24c57 /openpcd/firmware/src/openpcd.h
parent6556e87c2bb82e4a2002ceea08865236c4c996e7 (diff)
major rework
git-svn-id: https://svn.openpcd.org:2342/trunk@35 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpcd/firmware/src/openpcd.h')
-rw-r--r--openpcd/firmware/src/openpcd.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/openpcd/firmware/src/openpcd.h b/openpcd/firmware/src/openpcd.h
index ddd3370..3ba2477 100644
--- a/openpcd/firmware/src/openpcd.h
+++ b/openpcd/firmware/src/openpcd.h
@@ -2,18 +2,22 @@
#define _OPENPCD_H
#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
+#define OPENPCD_PIO_LED2 AT91C_PIO_PA17
+#define OPENPCD_PIO_LED1 AT91C_PIO_PA18
+#define OPENPCD_PIO_UDP_PUP AT91C_PIO_PA25
#else
-#define OPENPCD_LED1 AT91C_PIO_PA25
-#define OPENPCD_LED2 AT91C_PIO_PA26
-#define AT91C_PIO_UDP_PUP AT91C_PIO_PA16
+#define OPENPCD_PIO_UDP_CNX AT91C_PIO_PA15
+#define OPENPCD_PIO_UDP_PUP AT91C_PIO_PA16
+#define OPENPCD_PIO_LED1 AT91C_PIO_PA25
+#define OPENPCD_PIO_LED2 AT91C_PIO_PA26
#endif
-#define OPENPCD_RC632_IRQ AT91C_ID_IRQ1
-#define OPENPCD_RC632_RESET AT91C_PIO_PA29
+#define OPENPCD_IRQ_RC632 AT91C_ID_IRQ1
+
+#define OPENPCD_PIO_MFIN AT91C_PIO_PA9
+#define OPENPCD_PIO_MFOUT AT91C_PIO_PA10
+#define OPENPCD_PIO_RC632_RESET AT91C_PIO_PA29
+#define OPENPCD_PIO_TRIGGER AT91C_PIO_PA31
#define OPENPCD_IRQ_PRIO_SPI AT91C_AIC_PRIOR_HIGHEST
#define OPENPCD_IRQ_PRIO_UDP (AT91C_AIC_PRIOR_LOWEST+1)
@@ -25,7 +29,7 @@
#define req_buf_payload(x) (x->data[x->hdr_len])
#define req_buf_hdr(x) (x->data[0])
-#include <include/types.h>
+#include <sys/types.h>
struct req_buf {
u_int16_t hdr_len;
@@ -44,7 +48,11 @@ struct req_ctx {
#define NUM_REQ_CTX 8
extern struct req_ctx *req_ctx_find_get(void);
+extern struct req_ctx *req_ctx_find_busy(void);
extern void req_ctx_put(struct req_ctx *ctx);
extern u_int8_t req_ctx_num(struct req_ctx *ctx);
+extern void _init_func(void);
+extern void _main_func(void);
+
#endif /* _OPENPCD_H */
personal git repositories of Harald Welte. Your mileage may vary