aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/wirish_digital.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/wirish_digital.cpp')
-rw-r--r--wirish/wirish_digital.cpp9
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;