Files
sil/cr929_SIL/otherFiles/app_config.h
T

123 lines
2.8 KiB
C
Raw Normal View History

2020-12-20 15:19:07 +08:00
#ifndef __APP_CONFIG_H__
2021-03-27 18:04:49 +08:00
#ifndef AP_DT_MS
2021-07-05 13:13:56 +08:00
#define AP_DT_MS (3.952)
2021-03-27 18:04:49 +08:00
#endif
2020-12-20 15:19:07 +08:00
#ifndef PARAM_PROPS_MAXLEN
2020-12-27 11:24:31 +08:00
#define PARAM_PROPS_MAXLEN (640)
2020-12-20 15:19:07 +08:00
#endif
2020-12-27 11:24:31 +08:00
#ifndef PWM_CHANEL_NUM
#define PWM_CHANEL_NUM (20)
#endif
2021-03-30 11:33:31 +08:00
#define PWM0_INIT_VAL (1470)
#define PWM1_INIT_VAL (1100)
#define PWM2_INIT_VAL (1100)
#define PWM3_INIT_VAL (1100)
#define PWM4_INIT_VAL (1500)
#define PWM5_INIT_VAL (1370)
#define PWM6_INIT_VAL (1460)
#define PWM7_INIT_VAL (1475)
#define PWM8_INIT_VAL (1681)
#define PWM9_INIT_VAL (1780)
#define PWM10_INIT_VAL (1106)
#define PWM11_INIT_VAL (1460)
#define PWM12_INIT_VAL (1431)
#define PWM13_INIT_VAL (1869)
#define PWM14_INIT_VAL (1869)
#define PWM15_INIT_VAL (1283)
#define PWM16_INIT_VAL (1815)
#define PWM17_INIT_VAL (1439)
#define PWM18_INIT_VAL (1896)
#define PWM19_INIT_VAL (1085)
2020-12-27 11:24:31 +08:00
#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
2021-03-27 18:04:49 +08:00
#define UART1_RX_ENABLE (512)
2020-12-27 11:24:31 +08:00
#endif
#ifndef UART2_RX_ENABLE
2021-03-27 18:04:49 +08:00
#define UART2_RX_ENABLE (512)
2020-12-27 11:24:31 +08:00
#endif
#ifndef UART4_RX_ENABLE
2021-03-27 18:04:49 +08:00
#define UART4_RX_ENABLE (256)
2020-12-27 11:24:31 +08:00
#endif
#ifndef UART6_RX_ENABLE
2021-07-05 13:13:56 +08:00
#define UART6_RX_ENABLE (256)
2020-12-27 11:24:31 +08:00
#endif
#ifndef UART7_RX_ENABLE
2021-03-27 18:04:49 +08:00
#define UART7_RX_ENABLE (256)
2020-12-27 11:24:31 +08:00
#endif
#ifndef UART8_RX_ENABLE
2021-03-27 18:04:49 +08:00
#define UART8_RX_ENABLE (256)
2020-12-27 11:24:31 +08:00
#endif
#ifndef UART1_TX_ENABLE
2021-03-27 18:04:49 +08:00
#define UART1_TX_ENABLE (256)
2020-12-27 11:24:31 +08:00
#endif
#ifndef UART2_TX_ENABLE
2021-03-27 18:04:49 +08:00
#define UART2_TX_ENABLE (256)
2020-12-27 11:24:31 +08:00
#endif
#ifndef UART4_TX_ENABLE
#define UART4_TX_ENABLE (0)
#endif
#ifndef UART6_TX_ENABLE
2021-07-05 13:13:56 +08:00
#define UART6_TX_ENABLE (128)
2020-12-27 11:24:31 +08:00
#endif
#ifndef UART7_TX_ENABLE
2021-03-27 18:04:49 +08:00
#define UART7_TX_ENABLE (256)
2020-12-27 11:24:31 +08:00
#endif
#ifndef UART8_TX_ENABLE
2021-03-27 18:04:49 +08:00
#define UART8_TX_ENABLE (256)
2020-12-27 11:24:31 +08:00
#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 (460800)
#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 (115200)
#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)
2020-12-20 15:19:07 +08:00
#endif /* __APP_CONFIG_H__ */