Evaluation version
Dependencies: mbed BLE_API nRF51822
board.h@1:cfd59c317e19, 2018-12-26 (annotated)
- Committer:
- nakamura_bs
- Date:
- Wed Dec 26 01:19:29 2018 +0000
- Revision:
- 1:cfd59c317e19
Evaluation version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nakamura_bs | 1:cfd59c317e19 | 1 | /* for micro:bit */ |
nakamura_bs | 1:cfd59c317e19 | 2 | |
nakamura_bs | 1:cfd59c317e19 | 3 | #define MICROBIT |
nakamura_bs | 1:cfd59c317e19 | 4 | |
nakamura_bs | 1:cfd59c317e19 | 5 | #define DBG_TX P0_24 |
nakamura_bs | 1:cfd59c317e19 | 6 | #define DBG_RX P0_25 |
nakamura_bs | 1:cfd59c317e19 | 7 | |
nakamura_bs | 1:cfd59c317e19 | 8 | #define I2C_SCL P0_0 |
nakamura_bs | 1:cfd59c317e19 | 9 | #define I2C_SDA P0_30 |
nakamura_bs | 1:cfd59c317e19 | 10 | #define I2C_SPEED 100000 |
nakamura_bs | 1:cfd59c317e19 | 11 | |
nakamura_bs | 1:cfd59c317e19 | 12 | #define LED_COL1 P0_4 |
nakamura_bs | 1:cfd59c317e19 | 13 | #define LED_COL2 P0_5 |
nakamura_bs | 1:cfd59c317e19 | 14 | #define LED_COL3 P0_6 |
nakamura_bs | 1:cfd59c317e19 | 15 | #define LED_COL4 P0_7 |
nakamura_bs | 1:cfd59c317e19 | 16 | #define LED_COL5 P0_8 |
nakamura_bs | 1:cfd59c317e19 | 17 | #define LED_COL6 P0_9 |
nakamura_bs | 1:cfd59c317e19 | 18 | #define LED_COL7 P0_10 |
nakamura_bs | 1:cfd59c317e19 | 19 | #define LED_COL8 P0_11 |
nakamura_bs | 1:cfd59c317e19 | 20 | #define LED_COL9 P0_12 |
nakamura_bs | 1:cfd59c317e19 | 21 | #define LED_RAW1 P0_13 |
nakamura_bs | 1:cfd59c317e19 | 22 | #define LED_RAW2 P0_14 |
nakamura_bs | 1:cfd59c317e19 | 23 | #define LED_RAW3 P0_15 |
nakamura_bs | 1:cfd59c317e19 | 24 | |
nakamura_bs | 1:cfd59c317e19 | 25 | // GPIO assigne |
nakamura_bs | 1:cfd59c317e19 | 26 | static const uint8_t validGpioPins[] = {1,2,3,17,18,20,26}; |
nakamura_bs | 1:cfd59c317e19 | 27 | uint8_t eventGpioPins[] = {0,0,0,0 ,0 ,0 ,0, 0}; |
nakamura_bs | 1:cfd59c317e19 | 28 | uint8_t currentGpioLevel[] = {0,0,0,0 ,0 ,0 ,0, 0}; |
nakamura_bs | 1:cfd59c317e19 | 29 | |
nakamura_bs | 1:cfd59c317e19 | 30 | DigitalInOut gports[] = { |
nakamura_bs | 1:cfd59c317e19 | 31 | DigitalInOut(P0_1,PIN_INPUT,PullNone,0), |
nakamura_bs | 1:cfd59c317e19 | 32 | DigitalInOut(P0_2,PIN_INPUT,PullNone,0), |
nakamura_bs | 1:cfd59c317e19 | 33 | DigitalInOut(P0_3,PIN_INPUT,PullNone,0), |
nakamura_bs | 1:cfd59c317e19 | 34 | DigitalInOut(P0_17,PIN_INPUT,PullNone,0), |
nakamura_bs | 1:cfd59c317e19 | 35 | DigitalInOut(P0_18,PIN_INPUT,PullNone,0), |
nakamura_bs | 1:cfd59c317e19 | 36 | DigitalInOut(P0_20,PIN_INPUT,PullNone,0), |
nakamura_bs | 1:cfd59c317e19 | 37 | DigitalInOut(P0_26,PIN_INPUT,PullNone,0), |
nakamura_bs | 1:cfd59c317e19 | 38 | }; |
nakamura_bs | 1:cfd59c317e19 | 39 | #define GPIO_LED_CONNECT P0_16 |