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/wirish_analog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'wirish/wirish_analog.cpp') diff --git a/wirish/wirish_analog.cpp b/wirish/wirish_analog.cpp index 63b5eb2..e5b9ffc 100644 --- a/wirish/wirish_analog.cpp +++ b/wirish/wirish_analog.cpp @@ -28,10 +28,12 @@ * @brief Arduino-compatible ADC implementation. */ -#include "libmaple.h" -#include "wirish.h" #include "io.h" +#include "adc.h" + +#include "boards.h" + /* Assumes that the ADC has been initialized and that the pin is set * to INPUT_ANALOG */ uint16 analogRead(uint8 pin) { -- cgit v1.2.3