Point Labs / Mbed OS HelloANNA
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ANNA-B112.h Source File

ANNA-B112.h

00001 #ifndef ANNA_PINNAMES_H
00002 #define ANNA_PINNAMES_H
00003 
00004 
00005 #ifdef __cplusplus
00006 extern "C" {
00007 #endif
00008 
00009 //ANNA-B112 modulepin names
00010 #define ANNA_B1_GPIO_13   p14
00011 #define ANNA_B1_GPIO_14   p15
00012 #define ANNA_B1_GPIO_15   p16
00013 #define ANNA_B1_GPIO_16   p18
00014 #define ANNA_B1_GPIO_17   p0
00015 #define ANNA_B1_GPIO_18   p1
00016 #define ANNA_B1_GPIO_19   p3
00017 #define ANNA_B1_GPIO_20   p2
00018 #define ANNA_B1_GPIO_21   p9
00019 #define ANNA_B1_GPIO_22   p10
00020 #define ANNA_B1_GPIO_23   p5
00021 #define ANNA_B1_GPIO_24   p4
00022 #define ANNA_B1_GPIO_25   p31
00023 #define ANNA_B1_GPIO_26   p30
00024 #define ANNA_B1_GPIO_27   p29
00025 #define ANNA_B1_GPIO_28   p28
00026 #define ANNA_B1_GPIO_29   p27
00027 #define ANNA_B1_GPIO_30   p25
00028 #define ANNA_B1_GPIO_31   p26
00029 #define ANNA_B1_GPIO_34   p11
00030 #define ANNA_B1_GPIO_35   p19
00031 #define ANNA_B1_GPIO_36   p22
00032 #define ANNA_B1_GPIO_37   p23
00033 #define ANNA_B1_GPIO_38   p24
00034 #define ANNA_B1_GPIO_45   p20
00035 #define ANNA_B1_nRESET    p21
00036 
00037 // EVK-ANNA-B112 board 
00038 #define LED_R   ANNA_B1_GPIO_29 // Red
00039 #define LED_G   ANNA_B1_GPIO_30 // Green/SW1 
00040 #define LED_B   ANNA_B1_GPIO_31  // Blue 
00041 #define SW_1    ANNA_B1_GPIO_30
00042 #define SW_2    ANNA_B1_GPIO_38
00043 #define D_0     ANNA_B1_GPIO_20 
00044 #define D_1     ANNA_B1_GPIO_19 
00045 #define D_2     ANNA_B1_GPIO_35 
00046 #define D_3     ANNA_B1_GPIO_34 
00047 #define D_4     ANNA_B1_GPIO_29 
00048 #define D_5     ANNA_B1_GPIO_31 
00049 #define D_6     ANNA_B1_GPIO_22 
00050 #define D_7     ANNA_B1_GPIO_21 
00051 #define D_8     ANNA_B1_GPIO_13 
00052 #define D_9     ANNA_B1_GPIO_38 
00053 #define D_10    ANNA_B1_GPIO_36
00054 #define D_11    ANNA_B1_GPIO_37
00055 #define D_12    ANNA_B1_GPIO_16
00056 #define D_13    ANNA_B1_GPIO_45
00057 #define D_14    ANNA_B1_GPIO_14 
00058 #define D_15    ANNA_B1_GPIO_15
00059 #define A_0     ANNA_B1_GPIO_24 
00060 #define A_1     ANNA_B1_GPIO_23 
00061 #define A_2     ANNA_B1_GPIO_28 
00062 #define A_3     ANNA_B1_GPIO_27 
00063 #define A_4     ANNA_B1_GPIO_26 
00064 #define A_5     ANNA_B1_GPIO_25 
00065 
00066 // Nordic SDK pin names
00067 #define RX_PIN      p2
00068 #define TX_PIN      p3
00069 #define CTS_PIN     p19
00070 #define RTS_PIN     p11
00071 
00072 #define I2C_SDA     p2
00073 #define I2C_SCL     p3
00074 
00075 
00076 #ifdef __cplusplus
00077 }
00078 #endif
00079 #endif