24 lines
596 B
C
24 lines
596 B
C
#ifndef _BY_TINY_FRAME_CONFIG_H__
|
|
#define _BY_TINY_FRAME_CONFIG_H__
|
|
|
|
#define BY_TF_DEBUG (1)
|
|
|
|
#define BY_TF_UART_TX_PIN (UART3_MAP0_TX_B10)
|
|
#define BY_TF_UART_RX_PIN (UART3_MAP0_RX_B11)
|
|
#define BY_TF_UART_INDEX (UART_3)
|
|
#define BY_TF_UART_BAUDRATE (115200)
|
|
|
|
#define BY_TF_PARSE_BUFFER_SIZE (50)
|
|
|
|
/** 注释此项则为主机,否则为从机 **/
|
|
// #define BY_TF_DEVICE_SLAVE
|
|
|
|
#if defined(BY_TF_DEVICE_SLAVE)
|
|
/** 多从机通信时注意修改地址,避免冲突 **/
|
|
#define BY_TF_DEVICE_SLAVE_ADDRESS (0x0D)
|
|
#else
|
|
#define BY_TF_DEVICE_MASTER
|
|
#endif
|
|
|
|
#endif
|