summaryrefslogtreecommitdiff
path: root/src/stm
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-02-04 22:28:02 -0800
committerKeith Packard <keithp@keithp.com>2019-02-18 13:08:23 -0800
commit873f511173c637016b5e173813bd03c1725797bb (patch)
treed9458610035a74ee3c3c3632073125032fa60dff /src/stm
parentc11427819ca24bb77523496309b5b6f699d126c5 (diff)
altos: Declare all public functions in header files
Including interrupt vectors to catch mis-spellings. Working toward supporting -Wmissing-prototypes Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm')
-rw-r--r--src/stm/ao_adc_single_stm.c1
-rw-r--r--src/stm/ao_arch_funcs.h5
-rw-r--r--src/stm/ao_beep_stm.c1
-rw-r--r--src/stm/stm32l.h58
4 files changed, 65 insertions, 0 deletions
diff --git a/src/stm/ao_adc_single_stm.c b/src/stm/ao_adc_single_stm.c
index 5737cd50..c3a332f4 100644
--- a/src/stm/ao_adc_single_stm.c
+++ b/src/stm/ao_adc_single_stm.c
@@ -18,6 +18,7 @@
#include <ao.h>
#include <ao_data.h>
+#include <ao_adc_single.h>
static uint8_t ao_adc_ready;
diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h
index 7fe6a732..41f1bf91 100644
--- a/src/stm/ao_arch_funcs.h
+++ b/src/stm/ao_arch_funcs.h
@@ -393,6 +393,9 @@ struct ao_stm_usart {
#endif
};
+void
+ao_debug_out(char c);
+
#if HAS_SERIAL_1
extern struct ao_stm_usart ao_stm_usart1;
#endif
@@ -607,4 +610,6 @@ ao_arch_wait_interrupt(void) {
ao_arch_irqrestore(__mask); \
} while (0)
+void start(void);
+
#endif /* _AO_ARCH_FUNCS_H_ */
diff --git a/src/stm/ao_beep_stm.c b/src/stm/ao_beep_stm.c
index 2746d7f8..2bcd6849 100644
--- a/src/stm/ao_beep_stm.c
+++ b/src/stm/ao_beep_stm.c
@@ -17,6 +17,7 @@
*/
#include "ao.h"
+#include "ao_beep.h"
#if BEEPER_TIMER == 2
#define stm_beeper stm_tim2
diff --git a/src/stm/stm32l.h b/src/stm/stm32l.h
index 0109ec81..6c459cf4 100644
--- a/src/stm/stm32l.h
+++ b/src/stm/stm32l.h
@@ -2045,4 +2045,62 @@ struct stm_exti {
extern struct stm_exti stm_exti;
+#define isr_decl(name) \
+ void __attribute__ ((weak)) stm_ ## name ## _isr(void);
+
+isr_decl(nmi)
+isr_decl(hardfault)
+isr_decl(memmanage)
+isr_decl(busfault)
+isr_decl(usagefault)
+isr_decl(svc)
+isr_decl(debugmon)
+isr_decl(pendsv)
+isr_decl(systick)
+isr_decl(wwdg)
+isr_decl(pvd)
+isr_decl(tamper_stamp)
+isr_decl(rtc_wkup)
+isr_decl(flash)
+isr_decl(rcc)
+isr_decl(exti0)
+isr_decl(exti1)
+isr_decl(exti2)
+isr_decl(exti3)
+isr_decl(exti4)
+isr_decl(dma1_channel1)
+isr_decl(dma1_channel2)
+isr_decl(dma1_channel3)
+isr_decl(dma1_channel4)
+isr_decl(dma1_channel5)
+isr_decl(dma1_channel6)
+isr_decl(dma1_channel7)
+isr_decl(adc1)
+isr_decl(usb_hp)
+isr_decl(usb_lp)
+isr_decl(dac)
+isr_decl(comp)
+isr_decl(exti9_5)
+isr_decl(lcd)
+isr_decl(tim9)
+isr_decl(tim10)
+isr_decl(tim11)
+isr_decl(tim2)
+isr_decl(tim3)
+isr_decl(tim4)
+isr_decl(i2c1_ev)
+isr_decl(i2c1_er)
+isr_decl(i2c2_ev)
+isr_decl(i2c2_er)
+isr_decl(spi1)
+isr_decl(spi2)
+isr_decl(usart1)
+isr_decl(usart2)
+isr_decl(usart3)
+isr_decl(exti15_10)
+isr_decl(rtc_alarm)
+isr_decl(usb_fs_wkup)
+isr_decl(tim6)
+isr_decl(tim7)
+
#endif /* _STM32L_H_ */