diff options
author | Keith Packard <keithp@keithp.com> | 2019-02-04 22:28:02 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2019-02-18 13:08:23 -0800 |
commit | 873f511173c637016b5e173813bd03c1725797bb (patch) | |
tree | d9458610035a74ee3c3c3632073125032fa60dff /src/stm/stm32l.h | |
parent | c11427819ca24bb77523496309b5b6f699d126c5 (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/stm32l.h')
-rw-r--r-- | src/stm/stm32l.h | 58 |
1 files changed, 58 insertions, 0 deletions
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_ */ |