diff options
author | James McKenzie <git@madingley.org> | 2015-08-02 23:30:06 +0100 |
---|---|---|
committer | James McKenzie <git@madingley.org> | 2015-08-02 23:30:06 +0100 |
commit | 39687aa7c7b138d2a1ce2551f2400bade3b1a6fb (patch) | |
tree | 25e8441957ddbeff8aae91dc79b6a71ecbef51fe /boot/prototypes.h | |
download | candlestick-39687aa7c7b138d2a1ce2551f2400bade3b1a6fb.tar.gz candlestick-39687aa7c7b138d2a1ce2551f2400bade3b1a6fb.tar.bz2 candlestick-39687aa7c7b138d2a1ce2551f2400bade3b1a6fb.zip |
fis
Diffstat (limited to 'boot/prototypes.h')
-rw-r--r-- | boot/prototypes.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/boot/prototypes.h b/boot/prototypes.h new file mode 100644 index 0000000..45d399c --- /dev/null +++ b/boot/prototypes.h @@ -0,0 +1,18 @@ +/* usbdfu.c */ +extern uint8_t usbd_control_buffer[1024]; +extern const struct usb_device_descriptor dev; +extern const struct usb_dfu_descriptor dfu_function; +extern const struct usb_interface_descriptor iface; +extern const struct usb_interface ifaces[]; +extern const struct usb_config_descriptor config; +extern int main(void); +/* ring.c */ +extern void ring_init(ring_t *r, uint8_t *buf, size_t len); +extern int ring_write_byte(ring_t *r, uint8_t c); +extern int ring_read_byte(ring_t *r, uint8_t *c); +extern int ring_write(ring_t *r, uint8_t *buf, size_t len); +/* usart.c */ +extern void usart1_isr(void); +extern int _write(int file, char *ptr, int len); +extern void usart_queue(uint8_t d); +extern void usart_init(void); |