summaryrefslogtreecommitdiff
path: root/atmel-samd/main.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-03-10 19:17:54 +0100
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-03-10 19:17:54 +0100
commitd200a621647aa9fc05aae29ad7bc38363025438b (patch)
tree1216f83d9f4263f012fb063f44975ee77b58f078 /atmel-samd/main.c
parent07ea2abcb09aef3b933386669be4802f8c0aba1d (diff)
Add PulseOut which can pulse a PWMOut for IR remote transmission.
Diffstat (limited to 'atmel-samd/main.c')
-rw-r--r--atmel-samd/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/atmel-samd/main.c b/atmel-samd/main.c
index ad124b58a..47edc2537 100644
--- a/atmel-samd/main.c
+++ b/atmel-samd/main.c
@@ -25,6 +25,7 @@
#include <board.h>
#include "common-hal/nativeio/AnalogIn.h"
+#include "common-hal/nativeio/PulseOut.h"
#include "common-hal/nativeio/PWMOut.h"
#include "common-hal/usb_hid/__init__.h"
@@ -170,6 +171,8 @@ void reset_samd21(void) {
analogin_reset();
+ pulseout_reset();
+
// Wait for the DAC to sync.
while (DAC->STATUS.reg & DAC_STATUS_SYNCBUSY) {}
DAC->CTRLA.reg |= DAC_CTRLA_SWRST;