Modified PinNames.h to have correct pin mapping and enabled some elements in device.h for testing.

pull/425/head
Andrew Fritz 2014-08-04 11:24:29 -05:00
parent 116e3ca032
commit 299a858090
2 changed files with 15 additions and 19 deletions

View File

@ -191,21 +191,17 @@ typedef enum {
PTE30 = (4 << GPIO_PORT_SHIFT | 30), PTE30 = (4 << GPIO_PORT_SHIFT | 30),
PTE31 = (4 << GPIO_PORT_SHIFT | 31), PTE31 = (4 << GPIO_PORT_SHIFT | 31),
// #TODO all friendly names per platform
// led color naming // led color naming
LED_RED = PTA0, LED_GREEN = PTC0,
LED_GREEN = PTA1,
LED_BLUE = PTA2, // mbed original LED naming
// mbed original LED naming LED1 = PTD15,
LED1 = LED_RED, LED2 = PTD14,
LED2 = LED_GREEN, LED3 = PTD13,
LED3 = LED_BLUE, LED4 = PTD11,
LED4 = LED_RED, LED5 = PTD12,
STATUS = LED_GREEN,
//Push buttons
//SW2 = PTC6,
//SW3 = PTA4,
// USB Pins // USB Pins
USBTX = PTB17, USBTX = PTB17,
USBRX = PTB16, USBRX = PTB16,

View File

@ -25,19 +25,19 @@
#define DEVICE_ANALOGIN 0 #define DEVICE_ANALOGIN 0
#define DEVICE_ANALOGOUT 0 #define DEVICE_ANALOGOUT 0
#define DEVICE_SERIAL 0 #define DEVICE_SERIAL 1
#define DEVICE_I2C 0 #define DEVICE_I2C 1
#define DEVICE_I2CSLAVE 0 #define DEVICE_I2CSLAVE 1
#define DEVICE_SPI 0 #define DEVICE_SPI 1
#define DEVICE_SPISLAVE 0 #define DEVICE_SPISLAVE 1
#define DEVICE_CAN 0 #define DEVICE_CAN 0
#define DEVICE_RTC 0 #define DEVICE_RTC 0
#define DEVICE_ETHERNET 0 #define DEVICE_ETHERNET 1
#define DEVICE_PWMOUT 0 #define DEVICE_PWMOUT 0