![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
init
Dependencies: aconno_I2C Lis2dh12 WatchdogTimer
Diff: board.h
- Revision:
- 6:388d3c7efdd9
- Parent:
- 2:fd554f01abdf
- Child:
- 7:e9a19750700d
diff -r 8f8951127724 -r 388d3c7efdd9 board.h --- a/board.h Mon Nov 12 10:56:23 2018 +0000 +++ b/board.h Wed Nov 14 16:08:28 2018 +0000 @@ -1,8 +1,47 @@ #include "mbed.h" +//PINS +#define PN_SWDIO SWDIO +#define PN_SWCLK SWCLK +#define PN_RESET P0_21 +#define PN_IO1 P0_20 +#define PN_IO2 P0_18 +#define PN_IO3 P0_2 +#define PN_IO4 P0_3 +#define PN_IN_BUTTON P0_13 +#define PN_LED P0_11 +#define PN_GSM_WAKEUP_IN P0_14 +#define PN_GSM_WAKE_DISABLE P0_16 +#define PN_GSM_STATUS P0_15 +#define PN_GSM_RESET P0_25 +#define PN_GSM_PWR_KEY P0_28 +#define PN_SPI_MOSI P0_23 +#define PN_SPI_MISO P0_19 +#define PN_SPI_CLK P0_24 +#define PN_SPI_CS0 P0_22 +#define PN_SPI_CS1 P0_17 +#define PN_UART_RX P0_8 +#define PN_UART_TX P0_6 +#define PN_UART_CTS P0_30 +#define PN_UART_RTS P0_31 +#define PN_OUT_BUZZER P0_7 +#define PN_ACC_INT1 P0_5 +#define PN_ACC_INT2 P0_4 +#define PN_VREG_EN P0_29 +#define PN_I2C_SDA P0_26 +#define PN_I2C_SCL P0_27 + +//NVSTORAGE KEYS +#define NV_IDENTIFIER 1 + + + //LEDS extern DigitalOut led1; //PERIPHERAL PINS extern DigitalOut vreg_en; -extern DigitalOut gsm_pwkey; \ No newline at end of file +extern DigitalOut gsm_pwkey; + +//extern DigitalIn lis3dh_int1; +//extern DigitalIn lis3dh_int2; \ No newline at end of file