summaryrefslogtreecommitdiffstats
path: root/app/prototypes.h
diff options
context:
space:
mode:
authorroot <root@circe.panaceas.james.local>2014-11-13 17:39:18 +0000
committerroot <root@circe.panaceas.james.local>2014-11-13 17:39:18 +0000
commit5950acfb05fb3e172fa5710f1cda6ab347f51f2f (patch)
tree6188f6041b360bc37d3278dd6eac8fb3b5ec6b7d /app/prototypes.h
parent12287ff0a55f929bf840dcb4780d3f77b862c434 (diff)
downloadstm32_usb_kvm-5950acfb05fb3e172fa5710f1cda6ab347f51f2f.tar.gz
stm32_usb_kvm-5950acfb05fb3e172fa5710f1cda6ab347f51f2f.tar.bz2
stm32_usb_kvm-5950acfb05fb3e172fa5710f1cda6ab347f51f2f.zip
leds
Diffstat (limited to 'app/prototypes.h')
-rw-r--r--app/prototypes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/prototypes.h b/app/prototypes.h
index 0e971df..cbfcf78 100644
--- a/app/prototypes.h
+++ b/app/prototypes.h
@@ -29,6 +29,8 @@ extern const struct usb_interface_descriptor tablet_iface;
extern void tablet_get_descriptor(uint8_t **buf, uint16_t *len);
extern void tablet_test(void);
/* usart.c */
+extern ring_t rx_ring;
+extern ring_t tx_ring;
extern void usart1_isr(void);
extern int _write(int file, char *ptr, int len);
extern void usart_queue(uint8_t d);
@@ -41,3 +43,7 @@ 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);
+/* led.c */
+extern void led_clear(void);
+extern void led_set(uint32_t v);
+extern void led_tick(void);