From 8f97a6061ad5e7a9fe42b98f5ec1e2fa8aa7051c Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 18 Oct 2011 15:11:25 -0400 Subject: wirish: Clean up includes; other fixups. Clean up various core files' includes to fit this pattern: - Header files include what they use. - CPP files include their header first - Include order is libmaple proper headers, then wirish headers (modulo CPP rule above). wirish.h: Move HIGH and LOW to io.h, and the boolean and byte typedefs into wirish_types.h. These don't belong in wirish.h. Add include guards to wirish_debug.h. Oops. wirish_digital.cpp: Use standard bool instead of "boolean". Signed-off-by: Marti Bolivar --- wirish/ext_interrupts.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'wirish/ext_interrupts.cpp') diff --git a/wirish/ext_interrupts.cpp b/wirish/ext_interrupts.cpp index f014f13..b7f96f9 100644 --- a/wirish/ext_interrupts.cpp +++ b/wirish/ext_interrupts.cpp @@ -30,10 +30,12 @@ * @brief Wiring-like interface for external interrupts */ -#include "boards.h" +#include "ext_interrupts.h" + #include "gpio.h" #include "exti.h" -#include "ext_interrupts.h" + +#include "boards.h" static inline exti_trigger_mode exti_out_mode(ExtIntTriggerMode mode); -- cgit v1.2.3