aboutsummaryrefslogtreecommitdiff
path: root/src/stm32/platform.h
diff options
context:
space:
mode:
authorGareth McMullin2011-02-17 15:06:27 +1300
committerGareth McMullin2011-02-17 15:06:27 +1300
commitb36242d0219668f939ec5e4e83a39dd68f28f179 (patch)
tree0b81b52e08f6484542f952ade094cbd765621797 /src/stm32/platform.h
parentf08914ec1f2ee8630653278971e087cc358d98dc (diff)
CDC-ACM now asserts DCD to allow opening tty devs in BSD/MacOS.
Cleaned up compiler warnings.
Diffstat (limited to 'src/stm32/platform.h')
-rw-r--r--src/stm32/platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stm32/platform.h b/src/stm32/platform.h
index 923e478..b202ff5 100644
--- a/src/stm32/platform.h
+++ b/src/stm32/platform.h
@@ -119,6 +119,11 @@ extern const char *morse_msg;
int platform_init(void);
void morse(const char *msg, char repeat);
+/* <cdcacm.c> */
+void cdcacm_init(void);
+/* Returns current usb configuration, or 0 if not configured. */
+int cdcacm_get_config(void);
+
/* Use newlib provided integer only stdio functions */
#define sscanf siscanf
#define sprintf siprintf