modify the incident in config/*.h
This commit is contained in:
parent
7f2abb615f
commit
0c81552866
|
@ -22,8 +22,8 @@ extern "C" {
|
||||||
.name ="adc0", \
|
.name ="adc0", \
|
||||||
.adcbase = ADC0_BASE, \
|
.adcbase = ADC0_BASE, \
|
||||||
.channel = 0 , \
|
.channel = 0 , \
|
||||||
.sequence = 2 , \
|
.sequence = 2 , \
|
||||||
.trigermode = ADC_TRIGGER_PROCESSOR, \
|
.trigermode = ADC_TRIGGER_PROCESSOR, \
|
||||||
.sequencepriority = 0 \
|
.sequencepriority = 0 \
|
||||||
}
|
}
|
||||||
#endif /* ADC0_CONFIG */
|
#endif /* ADC0_CONFIG */
|
||||||
|
@ -36,8 +36,8 @@ extern "C" {
|
||||||
.name = "adc1", \
|
.name = "adc1", \
|
||||||
.adcbase = ADC1_BASE, \
|
.adcbase = ADC1_BASE, \
|
||||||
.channel = 0 , \
|
.channel = 0 , \
|
||||||
.sequence = 3 , \
|
.sequence = 3 , \
|
||||||
.syncMode = ADC_TRIGGER_PROCESSOR, \
|
.syncMode = ADC_TRIGGER_PROCESSOR, \
|
||||||
.sequencepriority = 0 \
|
.sequencepriority = 0 \
|
||||||
}
|
}
|
||||||
#endif /* ADC1_CONFIG */
|
#endif /* ADC1_CONFIG */
|
||||||
|
|
|
@ -17,96 +17,96 @@ extern "C" {
|
||||||
|
|
||||||
#ifdef BSP_USING_PWM0
|
#ifdef BSP_USING_PWM0
|
||||||
#ifndef PWM0_CONFIG
|
#ifndef PWM0_CONFIG
|
||||||
#define PWM0_CONFIG \
|
#define PWM0_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "pwm0", \
|
.name = "pwm0", \
|
||||||
.channel = 0 , \
|
.channel = 0 , \
|
||||||
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
||||||
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
||||||
}
|
}
|
||||||
#endif /* PWM0_CONFIG */
|
#endif /* PWM0_CONFIG */
|
||||||
#endif /* BSP_USING_PWM0 */
|
#endif /* BSP_USING_PWM0 */
|
||||||
|
|
||||||
#ifdef BSP_USING_PWM1
|
#ifdef BSP_USING_PWM1
|
||||||
#ifndef PWM1_CONFIG
|
#ifndef PWM1_CONFIG
|
||||||
#define PWM1_CONFIG \
|
#define PWM1_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "pwm1", \
|
.name = "pwm1", \
|
||||||
.channel = 0 , \
|
.channel = 0 , \
|
||||||
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
||||||
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
||||||
}
|
}
|
||||||
#endif /* PWM1_CONFIG */
|
#endif /* PWM1_CONFIG */
|
||||||
#endif /* BSP_USING_PWM1 */
|
#endif /* BSP_USING_PWM1 */
|
||||||
|
|
||||||
#ifdef BSP_USING_PWM2
|
#ifdef BSP_USING_PWM2
|
||||||
#ifndef PWM2_CONFIG
|
#ifndef PWM2_CONFIG
|
||||||
#define PWM2_CONFIG \
|
#define PWM2_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "pwm2", \
|
.name = "pwm2", \
|
||||||
.channel = 0 , \
|
.channel = 0 , \
|
||||||
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
||||||
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
||||||
}
|
}
|
||||||
#endif /* PWM2_CONFIG */
|
#endif /* PWM2_CONFIG */
|
||||||
#endif /* BSP_USING_PWM2 */
|
#endif /* BSP_USING_PWM2 */
|
||||||
|
|
||||||
#ifdef BSP_USING_PWM3
|
#ifdef BSP_USING_PWM3
|
||||||
#ifndef PWM3_CONFIG
|
#ifndef PWM3_CONFIG
|
||||||
#define PWM3_CONFIG \
|
#define PWM3_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "pwm3", \
|
.name = "pwm3", \
|
||||||
.channel = 0 , \
|
.channel = 0 , \
|
||||||
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
||||||
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
||||||
}
|
}
|
||||||
#endif /* PWM3_CONFIG */
|
#endif /* PWM3_CONFIG */
|
||||||
#endif /* BSP_USING_PWM3 */
|
#endif /* BSP_USING_PWM3 */
|
||||||
|
|
||||||
#ifdef BSP_USING_PWM4
|
#ifdef BSP_USING_PWM4
|
||||||
#ifndef PWM4_CONFIG
|
#ifndef PWM4_CONFIG
|
||||||
#define PWM4_CONFIG \
|
#define PWM4_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "pwm4", \
|
.name = "pwm4", \
|
||||||
.channel = 0 , \
|
.channel = 0 , \
|
||||||
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
||||||
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
||||||
}
|
}
|
||||||
#endif /* PWM4_CONFIG */
|
#endif /* PWM4_CONFIG */
|
||||||
#endif /* BSP_USING_PWM4 */
|
#endif /* BSP_USING_PWM4 */
|
||||||
|
|
||||||
#ifdef BSP_USING_PWM5
|
#ifdef BSP_USING_PWM5
|
||||||
#ifndef PWM5_CONFIG
|
#ifndef PWM5_CONFIG
|
||||||
#define PWM5_CONFIG \
|
#define PWM5_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "pwm5", \
|
.name = "pwm5", \
|
||||||
.channel = 0 , \
|
.channel = 0 , \
|
||||||
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
||||||
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
||||||
}
|
}
|
||||||
#endif /* PWM5_CONFIG */
|
#endif /* PWM5_CONFIG */
|
||||||
#endif /* BSP_USING_PWM5 */
|
#endif /* BSP_USING_PWM5 */
|
||||||
|
|
||||||
#ifdef BSP_USING_PWM6
|
#ifdef BSP_USING_PWM6
|
||||||
#ifndef PWM6_CONFIG
|
#ifndef PWM6_CONFIG
|
||||||
#define PWM6_CONFIG \
|
#define PWM6_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "pwm6", \
|
.name = "pwm6", \
|
||||||
.channel = 0 , \
|
.channel = 0 , \
|
||||||
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
||||||
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
||||||
}
|
}
|
||||||
#endif /* PWM6_CONFIG */
|
#endif /* PWM6_CONFIG */
|
||||||
#endif /* BSP_USING_PWM6 */
|
#endif /* BSP_USING_PWM6 */
|
||||||
|
|
||||||
#ifdef BSP_USING_PWM7
|
#ifdef BSP_USING_PWM7
|
||||||
#ifndef PWM7_CONFIG
|
#ifndef PWM7_CONFIG
|
||||||
#define PWM7_CONFIG \
|
#define PWM7_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "pwm7", \
|
.name = "pwm7", \
|
||||||
.channel = 0 , \
|
.channel = 0 , \
|
||||||
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
.counterMode = PWM_GEN_MODE_UP_DOWN , \
|
||||||
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
.syncMode = PWM_GEN_MODE_NO_SYNC \
|
||||||
}
|
}
|
||||||
#endif /* PWM7_CONFIG */
|
#endif /* PWM7_CONFIG */
|
||||||
#endif /* BSP_USING_PWM7 */
|
#endif /* BSP_USING_PWM7 */
|
||||||
|
|
|
@ -21,7 +21,7 @@ extern "C" {
|
||||||
#ifndef SPI0_BUS_CONFIG
|
#ifndef SPI0_BUS_CONFIG
|
||||||
#define SPI0_BUS_CONFIG \
|
#define SPI0_BUS_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.base = SSI0_BASE, \
|
.base = SSI0_BASE, \
|
||||||
.bus_name = "spi0", \
|
.bus_name = "spi0", \
|
||||||
}
|
}
|
||||||
#endif /* SPI0_BUS_CONFIG */
|
#endif /* SPI0_BUS_CONFIG */
|
||||||
|
@ -31,7 +31,7 @@ extern "C" {
|
||||||
#ifndef SPI1_BUS_CONFIG
|
#ifndef SPI1_BUS_CONFIG
|
||||||
#define SPI1_BUS_CONFIG \
|
#define SPI1_BUS_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.base = SSI1_BASE, \
|
.base = SSI1_BASE, \
|
||||||
.bus_name = "spi1", \
|
.bus_name = "spi1", \
|
||||||
}
|
}
|
||||||
#endif /* SPI1_BUS_CONFIG */
|
#endif /* SPI1_BUS_CONFIG */
|
||||||
|
@ -41,7 +41,7 @@ extern "C" {
|
||||||
#ifndef SPI2_BUS_CONFIG
|
#ifndef SPI2_BUS_CONFIG
|
||||||
#define SPI2_BUS_CONFIG \
|
#define SPI2_BUS_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.base = SSI2_BASE, \
|
.base = SSI2_BASE, \
|
||||||
.bus_name = "spi2", \
|
.bus_name = "spi2", \
|
||||||
}
|
}
|
||||||
#endif /* SPI2_BUS_CONFIG */
|
#endif /* SPI2_BUS_CONFIG */
|
||||||
|
@ -51,7 +51,7 @@ extern "C" {
|
||||||
#ifndef SPI3_BUS_CONFIG
|
#ifndef SPI3_BUS_CONFIG
|
||||||
#define SPI3_BUS_CONFIG \
|
#define SPI3_BUS_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.base = SSI3_BASE, \
|
.base = SSI3_BASE, \
|
||||||
.bus_name = "spi3", \
|
.bus_name = "spi3", \
|
||||||
}
|
}
|
||||||
#endif /* SPI3_BUS_CONFIG */
|
#endif /* SPI3_BUS_CONFIG */
|
||||||
|
|
|
@ -20,9 +20,9 @@ extern "C" {
|
||||||
#define UART0_CONFIG \
|
#define UART0_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "uart0", \
|
.name = "uart0", \
|
||||||
.uartbase = UART0_BASE, \
|
.uartbase = UART0_BASE, \
|
||||||
.baudrate = 115200, \
|
.baudrate = 115200, \
|
||||||
.mode = UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | \
|
.mode = UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | \
|
||||||
UART_CONFIG_PAR_NONE \
|
UART_CONFIG_PAR_NONE \
|
||||||
}
|
}
|
||||||
#endif /* UART1_CONFIG */
|
#endif /* UART1_CONFIG */
|
||||||
|
@ -33,9 +33,9 @@ extern "C" {
|
||||||
#define UART1_CONFIG \
|
#define UART1_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "uart1", \
|
.name = "uart1", \
|
||||||
.uartbase = UART1_BASE, \
|
.uartbase = UART1_BASE, \
|
||||||
.baudrate = 115200, \
|
.baudrate = 115200, \
|
||||||
.mode = UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | \
|
.mode = UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | \
|
||||||
UART_CONFIG_PAR_NONE \
|
UART_CONFIG_PAR_NONE \
|
||||||
}
|
}
|
||||||
#endif /* UART1_CONFIG */
|
#endif /* UART1_CONFIG */
|
||||||
|
@ -46,9 +46,9 @@ extern "C" {
|
||||||
#define UART2_CONFIG \
|
#define UART2_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "uart2", \
|
.name = "uart2", \
|
||||||
.uartbase = UART2_BASE, \
|
.uartbase = UART2_BASE, \
|
||||||
.baudrate = 115200, \
|
.baudrate = 115200, \
|
||||||
.mode = UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | \
|
.mode = UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | \
|
||||||
UART_CONFIG_PAR_NONE \
|
UART_CONFIG_PAR_NONE \
|
||||||
}
|
}
|
||||||
#endif /* UART2_CONFIG */
|
#endif /* UART2_CONFIG */
|
||||||
|
@ -59,9 +59,9 @@ extern "C" {
|
||||||
#define UART3_CONFIG \
|
#define UART3_CONFIG \
|
||||||
{ \
|
{ \
|
||||||
.name = "uart3", \
|
.name = "uart3", \
|
||||||
.uartbase = UART3_BASE, \
|
.uartbase = UART3_BASE, \
|
||||||
.baudrate = 115200, \
|
.baudrate = 115200, \
|
||||||
.mode = UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | \
|
.mode = UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | \
|
||||||
UART_CONFIG_PAR_NONE \
|
UART_CONFIG_PAR_NONE \
|
||||||
}
|
}
|
||||||
#endif /* UART3_CONFIG */
|
#endif /* UART3_CONFIG */
|
||||||
|
|
Loading…
Reference in New Issue