Files
sil/ET39_SIL/otherFiles/app_config.h
T
2021-05-10 16:03:43 +08:00

102 lines
2.2 KiB
C

#ifndef __APP_CONFIG_H__
#ifndef AP_DT_MS
#define AP_DT_MS (5.0)
#endif
#ifndef PARAM_PROPS_MAXLEN
#define PARAM_PROPS_MAXLEN (512)
#endif
#ifndef PWM_CHANEL_NUM
#define PWM_CHANEL_NUM (9)
#endif
#ifndef SBUS_ENABLE
#define SBUS_ENABLE (1)
#endif
#ifndef CAN1_ENABLE
#define CAN1_ENABLE (0)
#endif
#ifndef CAN3_ENABLE
#define CAN3_ENABLE (0)
#endif
#ifndef UART1_RX_ENABLE
#define UART1_RX_ENABLE (512)
#endif
#ifndef UART2_RX_ENABLE
#define UART2_RX_ENABLE (0)
#endif
#ifndef UART4_RX_ENABLE
#define UART4_RX_ENABLE (512)
#endif
#ifndef UART6_RX_ENABLE
#define UART6_RX_ENABLE (0)
#endif
#ifndef UART7_RX_ENABLE
#define UART7_RX_ENABLE (512)
#endif
#ifndef UART8_RX_ENABLE
#define UART8_RX_ENABLE (512)
#endif
#ifndef UART1_TX_ENABLE
#define UART1_TX_ENABLE (256)
#endif
#ifndef UART2_TX_ENABLE
#define UART2_TX_ENABLE (0)
#endif
#ifndef UART4_TX_ENABLE
#define UART4_TX_ENABLE (0)
#endif
#ifndef UART6_TX_ENABLE
#define UART6_TX_ENABLE (0)
#endif
#ifndef UART7_TX_ENABLE
#define UART7_TX_ENABLE (256)
#endif
#ifndef UART8_TX_ENABLE
#define UART8_TX_ENABLE (256)
#endif
#define UART1_BAUDRATE (460800)
#define UART1_WORDLENGTH (UART_WORDLENGTH_8B)
#define UART1_STOPBITS (UART_STOPBITS_1)
#define UART1_PARITY (UART_PARITY_NONE)
#define UART1_MODE (UART_MODE_TX_RX)
#define UART2_BAUDRATE (115200)
#define UART2_WORDLENGTH (UART_WORDLENGTH_8B)
#define UART2_STOPBITS (UART_STOPBITS_1)
#define UART2_PARITY (UART_PARITY_NONE)
#define UART2_MODE (UART_MODE_TX_RX)
#define UART4_BAUDRATE (100000)
#define UART4_WORDLENGTH (UART_WORDLENGTH_9B)
#define UART4_STOPBITS (UART_STOPBITS_2)
#define UART4_PARITY (UART_PARITY_EVEN)
#define UART4_MODE (UART_MODE_RX)
#define UART6_BAUDRATE (115200)
#define UART6_WORDLENGTH (UART_WORDLENGTH_8B)
#define UART6_STOPBITS (UART_STOPBITS_1)
#define UART6_PARITY (UART_PARITY_NONE)
#define UART6_MODE (UART_MODE_TX_RX)
#define UART7_BAUDRATE (115200)
#define UART7_WORDLENGTH (UART_WORDLENGTH_8B)
#define UART7_STOPBITS (UART_STOPBITS_1)
#define UART7_PARITY (UART_PARITY_NONE)
#define UART7_MODE (UART_MODE_TX_RX)
#define UART8_BAUDRATE (460800)
#define UART8_WORDLENGTH (UART_WORDLENGTH_8B)
#define UART8_STOPBITS (UART_STOPBITS_1)
#define UART8_PARITY (UART_PARITY_NONE)
#define UART8_MODE (UART_MODE_TX_RX)
#endif /* __APP_CONFIG_H__ */