This is an example of how to setup mbed to run on the ANNA-B112 using the EVK-NINA-B1 target for compilation
ANNA-B112.h@1:2bd5f1894796, 2020-03-01 (annotated)
- Committer:
- rlanders73
- Date:
- Sun Mar 01 21:36:20 2020 +0000
- Revision:
- 1:2bd5f1894796
- Parent:
- 0:67a616264a3f
Disabled serial control flow by default
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rlanders73 | 0:67a616264a3f | 1 | #ifndef ANNA_PINNAMES_H |
rlanders73 | 0:67a616264a3f | 2 | #define ANNA_PINNAMES_H |
rlanders73 | 0:67a616264a3f | 3 | |
rlanders73 | 0:67a616264a3f | 4 | |
rlanders73 | 0:67a616264a3f | 5 | #ifdef __cplusplus |
rlanders73 | 0:67a616264a3f | 6 | extern "C" { |
rlanders73 | 0:67a616264a3f | 7 | #endif |
rlanders73 | 0:67a616264a3f | 8 | |
rlanders73 | 0:67a616264a3f | 9 | //ANNA-B112 modulepin names |
rlanders73 | 0:67a616264a3f | 10 | #define ANNA_B1_GPIO_13 p14 |
rlanders73 | 0:67a616264a3f | 11 | #define ANNA_B1_GPIO_14 p15 |
rlanders73 | 0:67a616264a3f | 12 | #define ANNA_B1_GPIO_15 p16 |
rlanders73 | 0:67a616264a3f | 13 | #define ANNA_B1_GPIO_16 p18 |
rlanders73 | 0:67a616264a3f | 14 | #define ANNA_B1_GPIO_17 p0 |
rlanders73 | 0:67a616264a3f | 15 | #define ANNA_B1_GPIO_18 p1 |
rlanders73 | 0:67a616264a3f | 16 | #define ANNA_B1_GPIO_19 p3 |
rlanders73 | 0:67a616264a3f | 17 | #define ANNA_B1_GPIO_20 p2 |
rlanders73 | 0:67a616264a3f | 18 | #define ANNA_B1_GPIO_21 p9 |
rlanders73 | 0:67a616264a3f | 19 | #define ANNA_B1_GPIO_22 p10 |
rlanders73 | 0:67a616264a3f | 20 | #define ANNA_B1_GPIO_23 p5 |
rlanders73 | 0:67a616264a3f | 21 | #define ANNA_B1_GPIO_24 p4 |
rlanders73 | 0:67a616264a3f | 22 | #define ANNA_B1_GPIO_25 p31 |
rlanders73 | 0:67a616264a3f | 23 | #define ANNA_B1_GPIO_26 p30 |
rlanders73 | 0:67a616264a3f | 24 | #define ANNA_B1_GPIO_27 p29 |
rlanders73 | 0:67a616264a3f | 25 | #define ANNA_B1_GPIO_28 p28 |
rlanders73 | 0:67a616264a3f | 26 | #define ANNA_B1_GPIO_29 p27 |
rlanders73 | 0:67a616264a3f | 27 | #define ANNA_B1_GPIO_30 p25 |
rlanders73 | 0:67a616264a3f | 28 | #define ANNA_B1_GPIO_31 p26 |
rlanders73 | 0:67a616264a3f | 29 | #define ANNA_B1_GPIO_34 p11 |
rlanders73 | 0:67a616264a3f | 30 | #define ANNA_B1_GPIO_35 p19 |
rlanders73 | 0:67a616264a3f | 31 | #define ANNA_B1_GPIO_36 p22 |
rlanders73 | 0:67a616264a3f | 32 | #define ANNA_B1_GPIO_37 p23 |
rlanders73 | 0:67a616264a3f | 33 | #define ANNA_B1_GPIO_38 p24 |
rlanders73 | 0:67a616264a3f | 34 | #define ANNA_B1_GPIO_45 p20 |
rlanders73 | 0:67a616264a3f | 35 | #define ANNA_B1_nRESET p21 |
rlanders73 | 0:67a616264a3f | 36 | |
rlanders73 | 0:67a616264a3f | 37 | // EVK-ANNA-B112 board |
rlanders73 | 0:67a616264a3f | 38 | #define LED_R ANNA_B1_GPIO_29 // Red |
rlanders73 | 0:67a616264a3f | 39 | #define LED_G ANNA_B1_GPIO_30 // Green/SW1 |
rlanders73 | 0:67a616264a3f | 40 | #define LED_B ANNA_B1_GPIO_31 // Blue |
rlanders73 | 0:67a616264a3f | 41 | #define SW_1 ANNA_B1_GPIO_30 |
rlanders73 | 0:67a616264a3f | 42 | #define SW_2 ANNA_B1_GPIO_38 |
rlanders73 | 0:67a616264a3f | 43 | #define D_0 ANNA_B1_GPIO_20 |
rlanders73 | 0:67a616264a3f | 44 | #define D_1 ANNA_B1_GPIO_19 |
rlanders73 | 0:67a616264a3f | 45 | #define D_2 ANNA_B1_GPIO_35 |
rlanders73 | 0:67a616264a3f | 46 | #define D_3 ANNA_B1_GPIO_34 |
rlanders73 | 0:67a616264a3f | 47 | #define D_4 ANNA_B1_GPIO_29 |
rlanders73 | 0:67a616264a3f | 48 | #define D_5 ANNA_B1_GPIO_31 |
rlanders73 | 0:67a616264a3f | 49 | #define D_6 ANNA_B1_GPIO_22 |
rlanders73 | 0:67a616264a3f | 50 | #define D_7 ANNA_B1_GPIO_21 |
rlanders73 | 0:67a616264a3f | 51 | #define D_8 ANNA_B1_GPIO_13 |
rlanders73 | 0:67a616264a3f | 52 | #define D_9 ANNA_B1_GPIO_38 |
rlanders73 | 0:67a616264a3f | 53 | #define D_10 ANNA_B1_GPIO_36 |
rlanders73 | 0:67a616264a3f | 54 | #define D_11 ANNA_B1_GPIO_37 |
rlanders73 | 0:67a616264a3f | 55 | #define D_12 ANNA_B1_GPIO_16 |
rlanders73 | 0:67a616264a3f | 56 | #define D_13 ANNA_B1_GPIO_45 |
rlanders73 | 0:67a616264a3f | 57 | #define D_14 ANNA_B1_GPIO_14 |
rlanders73 | 0:67a616264a3f | 58 | #define D_15 ANNA_B1_GPIO_15 |
rlanders73 | 0:67a616264a3f | 59 | #define A_0 ANNA_B1_GPIO_24 |
rlanders73 | 0:67a616264a3f | 60 | #define A_1 ANNA_B1_GPIO_23 |
rlanders73 | 0:67a616264a3f | 61 | #define A_2 ANNA_B1_GPIO_28 |
rlanders73 | 0:67a616264a3f | 62 | #define A_3 ANNA_B1_GPIO_27 |
rlanders73 | 0:67a616264a3f | 63 | #define A_4 ANNA_B1_GPIO_26 |
rlanders73 | 0:67a616264a3f | 64 | #define A_5 ANNA_B1_GPIO_25 |
rlanders73 | 0:67a616264a3f | 65 | |
rlanders73 | 0:67a616264a3f | 66 | // Nordic SDK pin names |
rlanders73 | 0:67a616264a3f | 67 | #define RX_PIN p2 |
rlanders73 | 0:67a616264a3f | 68 | #define TX_PIN p3 |
rlanders73 | 0:67a616264a3f | 69 | #define CTS_PIN p19 |
rlanders73 | 0:67a616264a3f | 70 | #define RTS_PIN p11 |
rlanders73 | 0:67a616264a3f | 71 | |
rlanders73 | 0:67a616264a3f | 72 | #define I2C_SDA p2 |
rlanders73 | 0:67a616264a3f | 73 | #define I2C_SCL p3 |
rlanders73 | 0:67a616264a3f | 74 | |
rlanders73 | 0:67a616264a3f | 75 | |
rlanders73 | 0:67a616264a3f | 76 | #ifdef __cplusplus |
rlanders73 | 0:67a616264a3f | 77 | } |
rlanders73 | 0:67a616264a3f | 78 | #endif |
rlanders73 | 0:67a616264a3f | 79 | #endif |