Wen-ting Lo
/
STM32F303RE_LPG
Basic
Diff: LPG_Config.h
- Revision:
- 1:347333bac1fb
- Parent:
- 0:6bdfb6ccd136
- Child:
- 2:e90526c0bcbe
--- a/LPG_Config.h Mon Apr 22 07:50:05 2019 +0000 +++ b/LPG_Config.h Mon Apr 22 08:03:49 2019 +0000 @@ -1,22 +1,30 @@ #ifndef _LPG_CONFIG_ -#define _LPG_CONFIG_ - -#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 - +#define _LPG_CONFIG_ +#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 +#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 +#endif #endif \ No newline at end of file