Basic

Dependencies:   MQTT

Branch:
Flash_Exam
Revision:
7:e556528beeba
Parent:
6:86eea1bcf499
--- a/LPG_Config.h	Wed Apr 24 03:30:36 2019 +0000
+++ b/LPG_Config.h	Wed Apr 24 05:03:00 2019 +0000
@@ -1,39 +1,39 @@
 #ifndef _LPG_CONFIG_
 #define _LPG_CONFIG_
-#define SLEEP_TIME                  500     /*(msec)*/
-#define PRINT_AFTER_N_LOOPS         20
-#define D_UART_BR                   115200
-#define AT_UART_BR                  115200
-#ifdef _WISE_1570_                          /* WISE-1570 */
-#define GPIO_0                      PB_9
-#define GPIO_1                      PC_7
-#define GPIO_2                      PB_15
-#define GPIO_3                      PB_12
-#define GPIO_4                      PC_8
-#define GPIO_5                      PC_13
-#define UART_TX                     PC_10
-#define UART_RX                     PC_11
-#define ADC_0                       PA_1
-#define ADC_1                       PC_2
-#define ADC_2                       PC_4
-#define PWM_0                       PB_0
-#define PWM_1                       PB_1
-#define I2C1_DATA                   PB_11
-#define I2C1_DCLK                   PB_10
-#define I2C0_DATA                   PB_7
-#define I2C0_DCLK                   PB_6
-#else                                       /* BG96 */
-#define LED_1                       PC_0
-#define LED_2                       PC_1
-#define LED_3                       PC_2
-#define UART_TX                     PC_10
-#define UART_RX                     PC_11
-#define D_UART_TX                   PA_9
-#define D_UART_RX                   PA_10
-#define BTN                         PA_0
-#define PWR_LTE                     PC_3
-#define KEY                         PC_4
-#define RST                         PC_5
+#ifdef _WISE_1570_
+#define GPIO_0      PB_9
+#define GPIO_1      PC_7
+#define GPIO_2      PB_15
+#define GPIO_3      PB_12
+#define GPIO_4      PC_8
+#define GPIO_5      PC_13
+#define UART_TX     PC_10
+#define UART_RX     PC_11
+#define ADC_0       PA_1
+#define ADC_1       PC_2
+#define ADC_2       PC_4
+#define PWM_0       PB_0
+#define PWM_1       PB_1
+#define I2C1_DATA   PB_11
+#define I2C1_DCLK   PB_10
+#define I2C0_DATA   PB_7
+#define I2C0_DCLK   PB_6
+#else   /*BG96*/
+#define LED_1       PC_0
+#define LED_2       PC_1
+#define LED_3       PC_2
+#define UART_TX     PC_10
+#define UART_RX     PC_11
+#define D_UART_TX   PA_9
+#define D_UART_RX   PA_10
+#define BTN         PA_0
+#define PWR_LTE     PC_3
+#define KEY         PC_4
+#define RST         PC_5
+#define D_UART_BR   115200
+#define AT_UART_BR  115200
 #define MEM_START   0x0800C4F0
+
+
 #endif
 #endif
\ No newline at end of file