diff options
| author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-10-18 15:11:25 -0400 |
|---|---|---|
| committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-10-18 15:12:21 -0400 |
| commit | ad3398288508fb946547caa373b75111b7098edd (patch) | |
| tree | 3106b624c61c660b31302a4a19aa14ea04d7d10a /wirish/wirish_digital.cpp | |
| parent | 4aebc879dd5e0fcc77918de427f2e1a1ff344221 (diff) | |
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 <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/wirish_digital.cpp')
| -rw-r--r-- | wirish/wirish_digital.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/wirish/wirish_digital.cpp b/wirish/wirish_digital.cpp index a8b3ad8..6a0577c 100644 --- a/wirish/wirish_digital.cpp +++ b/wirish/wirish_digital.cpp @@ -28,12 +28,17 @@ * Arduino-compatible digital I/O implementation. */ -#include "wirish.h" #include "io.h" +#include "gpio.h" +#include "timer.h" + +#include "wirish_time.h" +#include "boards.h" + void pinMode(uint8 pin, WiringPinMode mode) { gpio_pin_mode outputMode; - boolean pwm = false; + bool pwm = false; if (pin >= BOARD_NR_GPIO_PINS) { return; |
