diff options
author | root <root@ka-ata-killa.panaceas.james.local> | 2021-11-21 17:27:02 +0000 |
---|---|---|
committer | root <root@ka-ata-killa.panaceas.james.local> | 2021-11-21 17:27:02 +0000 |
commit | 64f632692fe2a164830a363f8db158a8a2ae33de (patch) | |
tree | c2106d606b7e355ede93ff2a04848224a480dbc7 /stm32/boot/prototypes.h | |
download | metric_clock-64f632692fe2a164830a363f8db158a8a2ae33de.tar.gz metric_clock-64f632692fe2a164830a363f8db158a8a2ae33de.tar.bz2 metric_clock-64f632692fe2a164830a363f8db158a8a2ae33de.zip |
first workingish cut
Diffstat (limited to 'stm32/boot/prototypes.h')
-rw-r--r-- | stm32/boot/prototypes.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/stm32/boot/prototypes.h b/stm32/boot/prototypes.h new file mode 100644 index 0000000..45d399c --- /dev/null +++ b/stm32/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); |