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:
Karl Palsson 2015-02-03 15:46:52 +00:00 committed by Piotr Esden-Tempski
parent 7fbd49b3fc
commit 721f3d74eb
1 changed files with 4 additions and 0 deletions

View File

@ -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)