From b60400c80ba1d21882cafd48da52287da646ae06 Mon Sep 17 00:00:00 2001 From: Adrian Bowyer Date: Tue, 9 Sep 2014 21:30:40 +0100 Subject: [PATCH] Incorporating Jean-Marc's code to write pin PC_10 into the master branch. --- SamNonDuePin/SamNonDuePin.cpp | 2 ++ SamNonDuePin/SamNonDuePin.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SamNonDuePin/SamNonDuePin.cpp b/SamNonDuePin/SamNonDuePin.cpp index 22c8377..c9d0183 100644 --- a/SamNonDuePin/SamNonDuePin.cpp +++ b/SamNonDuePin/SamNonDuePin.cpp @@ -70,6 +70,8 @@ extern const PinDescription nonDuePinDescription[]= { PIOB, PIO_PB7A_ERXER, ID_PIOB, PIO_PERIPH_A, PIO_DEFAULT, PIN_ATTR_DIGITAL, NO_ADC, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER }, // ERXER { PIOB, PIO_PB8A_EMDC, ID_PIOB, PIO_PERIPH_A, PIO_DEFAULT, PIN_ATTR_DIGITAL, NO_ADC, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER }, // EMDC { PIOB, PIO_PB9A_EMDIO, ID_PIOB, PIO_PERIPH_A, PIO_DEFAULT, PIN_ATTR_DIGITAL, NO_ADC, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER }, // EMDIO + // 25 + { PIOC, PIO_PC10, ID_PIOC, PIO_OUTPUT_0, PIO_DEFAULT, PIN_ATTR_DIGITAL, NO_ADC, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER }, //PIN X25 // END { NULL, 0, 0, PIO_NOT_A_PIN, PIO_DEFAULT, 0, NO_ADC, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER } diff --git a/SamNonDuePin/SamNonDuePin.h b/SamNonDuePin/SamNonDuePin.h index 0001397..0494e09 100644 --- a/SamNonDuePin/SamNonDuePin.h +++ b/SamNonDuePin/SamNonDuePin.h @@ -27,7 +27,7 @@ See undefined.cpp file for more info #include "Arduino.h" // Number of pins defined in PinDescription array -#define PINS_C 25 +#define PINS_C 26 //undefined pins constants so the undef pins can //be refered to a Xn rather than n @@ -59,6 +59,8 @@ static const uint8_t PIN_EMAC_ERX1 = 21; static const uint8_t PIN_EMAC_ERXER = 22; static const uint8_t PIN_EMAC_EMDC = 23; static const uint8_t PIN_EMAC_EMDIO = 24; +//PROBE RIG +static const uint8_t X25 = 25; // struct used to hold the descriptions for the "non arduino" pins. // from the Arduino.h files