Skip to content

Commit

Permalink
Incorporating Jean-Marc's code to write pin PC_10 into the master bra…
Browse files Browse the repository at this point in the history
…nch.
  • Loading branch information
Adrian Bowyer committed Sep 9, 2014
1 parent 5fcee7f commit b60400c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions SamNonDuePin/SamNonDuePin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 3 additions & 1 deletion SamNonDuePin/SamNonDuePin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b60400c

Please sign in to comment.