headers: Explicitly error when you include an internal header
People should not be using the dispatch/ headers directly. Try and make this more explicit. Signed-off-by: Karl Palsson <karlp@tweak.net.au>
This commit is contained in:
parent
7fbd49b3fc
commit
721f3d74eb
|
@ -1,3 +1,7 @@
|
|||
#ifndef LIBOPENCM3_NVIC_H
|
||||
#error You should not be including this file directly, but <libopencm3/cm3/nvic.h>
|
||||
#endif
|
||||
|
||||
#if defined(STM32F0)
|
||||
# include <libopencm3/stm32/f0/nvic.h>
|
||||
#elif defined(STM32F1)
|
||||
|
|
Loading…
Reference in New Issue