From cd2042aa9b3cfa2ab439979c2d20046bb98bea42 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 15 Nov 2016 17:04:51 +0000 Subject: [PATCH] Clean up pin assignments. --- IOTeensy.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/IOTeensy.cpp b/IOTeensy.cpp index a7d1806..a0579c8 100644 --- a/IOTeensy.cpp +++ b/IOTeensy.cpp @@ -23,13 +23,13 @@ #if defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__) #define PIN_LED 13 -#define PIN_COS 52 -#define PIN_PTT 23 -#define PIN_COSLED 22 +#define PIN_COS 4 +#define PIN_PTT 5 +#define PIN_COSLED 6 #define PIN_DSTAR 9 -#define PIN_DMR 8 -#define PIN_YSF 7 -#define PIN_P25 6 +#define PIN_DMR 10 +#define PIN_YSF 11 +#define PIN_P25 12 #define PIN_ADC 5 // A0 #define PIN_RSSI 8 // A2 @@ -166,6 +166,7 @@ void CIO::startInt() PDB0_SC = PDB_SC_TRGSEL(15) | PDB_SC_PDBEN | // SW trigger, enable interrupts, continuous mode PDB_SC_PDBIE | PDB_SC_CONT | PDB_SC_LDOK; // No prescaling PDB0_SC |= PDB_SC_SWTRIG; // Software trigger (reset and restart counter) + NVIC_ENABLE_IRQ(IRQ_PDB); #endif // Initialise the DAC