summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/pcd_enumerate.h
diff options
context:
space:
mode:
Diffstat (limited to 'openpcd/firmware/src/pcd_enumerate.h')
-rw-r--r--openpcd/firmware/src/pcd_enumerate.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/openpcd/firmware/src/pcd_enumerate.h b/openpcd/firmware/src/pcd_enumerate.h
index 33ebfcf..872ae34 100644
--- a/openpcd/firmware/src/pcd_enumerate.h
+++ b/openpcd/firmware/src/pcd_enumerate.h
@@ -16,6 +16,7 @@
#define PCD_ENUMERATE_H
#include <include/AT91SAM7S64.h>
+#include <include/types.h>
#define AT91C_EP_OUT 1
#define AT91C_EP_OUT_SIZE 0x40
@@ -26,20 +27,16 @@
typedef struct _AT91S_CDC
{
- // Private members
AT91PS_UDP pUdp;
unsigned char currentConfiguration;
unsigned char currentConnection;
unsigned int currentRcvBank;
- // Public Methods:
- unsigned char (*IsConfigured)(struct _AT91S_CDC *pCdc);
- unsigned int (*Write) (struct _AT91S_CDC *pCdc, const char *pData, unsigned int length);
- unsigned int (*Read) (struct _AT91S_CDC *pCdc, char *pData, unsigned int length);
} AT91S_CDC, *AT91PS_CDC;
//* external function description
-AT91PS_CDC AT91F_CDC_Open(AT91PS_CDC pCdc, AT91PS_UDP pUdp);
+AT91PS_CDC AT91F_CDC_Open(AT91PS_UDP pUdp);
+u_int8_t AT91F_UDP_IsConfigured(void);
#endif // CDC_ENUMERATE_H
personal git repositories of Harald Welte. Your mileage may vary