guanjiao
2018-05-12 7bd852c98c52c306e3628acedc33149ebee3cff6
format all the code
已修改17个文件
116 ■■■■■ 文件已修改
源码/核心板/Src/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/stm32f10x_conf.h 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_usart.h 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/decadriver/deca_device.c 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/decadriver/deca_device_api.h 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/decadriver/deca_param_types.h 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/decadriver/deca_params_init.c 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/decadriver/deca_range_tables.c 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/decadriver/deca_regs.h 66 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/main.c 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/platform/deca_mutex.c 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/platform/deca_spi.c 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/platform/lcd.c 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/platform/port.c 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/platform/port.h 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/platform/syscalls.c 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/stm32f10x_it.c 补丁 | 查看 | 原始文档 | blame | 历史
源码/核心板/Src/stm32f10x_it.h 补丁 | 查看 | 原始文档 | blame | 历史
Ô´Âë/ºËÐİå/Src/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/stm32f10x_conf.h
Ô´Âë/ºËÐİå/Src/Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_usart.h
Ô´Âë/ºËÐİå/Src/decadriver/deca_device.c
@@ -416,8 +416,10 @@
    case DWT_PLEN_512  :
    case DWT_PLEN_256  :
    case DWT_PLEN_128  :
    case DWT_PLEN_64   : break ; // all okay
    default            : return DWT_ERROR ; // not a good preamble length parameter
    case DWT_PLEN_64   :
        break ; // all okay
    default            :
        return DWT_ERROR ; // not a good preamble length parameter
    }
    if(config->phrMode > DWT_PHRMODE_EXT)
@@ -1361,7 +1363,8 @@
    dwt_writetodevice(OTP_IF_ID, OTP_CTRL+1,1,wr_buf);
    // Load data
    switch(mode&0x0f) {
    switch(mode & 0x0f)
    {
    case 0x0 :
        mr =0x0000;
        mra=0x0000;
Ô´Âë/ºËÐİå/Src/decadriver/deca_device_api.h
@@ -167,7 +167,8 @@
#define DWT_OPSET_TIGHT   0x1
#define DWT_OPSET_DEFLT   0x2
typedef struct{
typedef struct
{
    uint32 status;      //initial value of register as ISR is entered
    uint8  event;        //event type
@@ -179,7 +180,8 @@
}dwt_callback_data_t;
typedef enum {
typedef enum
{
     CHAN_CTRL_TXCHAN_1 = 0x01,    /* Selects the transmit channel 1 */
     CHAN_CTRL_TXCHAN_2 = 0x02,    /* Selects the transmit channel 2 */
     CHAN_CTRL_TXCHAN_3 = 0x03,    /* Selects the transmit channel 3 */
Ô´Âë/ºËÐİå/Src/decadriver/deca_param_types.h
@@ -27,7 +27,8 @@
#define PCODES 25 //supported preamble codes
typedef struct {
typedef struct
{
        uint32 lo32;
        uint16 target[NUM_PRF];
} agc_cfg_struct ;
Ô´Âë/ºËÐİå/Src/decadriver/deca_params_init.c
@@ -122,7 +122,8 @@
        }
};
const uint16 lde_replicaCoeff[PCODES] = {
const uint16 lde_replicaCoeff[PCODES] =
{
    // 0
    (int)(0.0 * 65536),
Ô´Âë/ºËÐİå/Src/decadriver/deca_range_tables.c
Ô´Âë/ºËÐİå/Src/decadriver/deca_regs.h
@@ -381,7 +381,7 @@
/****************************************************************************//**
 * @brief Bit definitions for register RX_TTCKI
 *      The value here is the interval over which the timing offset reported
 *      in the RXTOFS field of Register file: 0x14 Â– RX_TTCKO is measured.
 *      in the RXTOFS field of Register file: 0x14 ?RX_TTCKO is measured.
 *      The clock offset is calculated by dividing RXTTCKI by RXTOFS.
 *      The value in RXTTCKI will take just one of two values depending on the PRF: 0x01F00000 @ 16 MHz PRF,
 *      and 0x01FC0000 @ 64 MHz PRF.
@@ -767,10 +767,10 @@
#define GIMOD8  GIRQx8  /* Value 0 = Level, 1 = Edge. */
/* offset from EXT_SYNC_ID in bytes */
#define GPIO_IBES_OFFSET        0x1C    /* sub-register 0x1C is the GPIO interrupt Â“Both Edge” selection register */
#define GPIO_IBES_OFFSET        0x1C    /* sub-register 0x1C is the GPIO interrupt æƒoth Edge?selection register */
#define GPIO_IBES_LEN           (4)
#define GPIO_IBES_MASK          GPIO_IRQE_MASK  /*  */
#define GIBES0  GIRQx0  /* GPIO IRQ Â“Both Edge” selection for GPIO0 input. Value 0 = GPIO_IMODE register selects the edge. Value 1 = Both edges trigger the interrupt. */
#define GIBES0  GIRQx0  /* GPIO IRQ æƒoth Edge?selection for GPIO0 input. Value 0 = GPIO_IMODE register selects the edge. Value 1 = Both edges trigger the interrupt. */
#define GIBES1  GIRQx1  /*  */
#define GIBES2  GIRQx2  /*  */
#define GIBES3  GIRQx3  /*  */
@@ -831,20 +831,20 @@
/* offset from DRX_CONF_ID in bytes */
#define DRX_TUNE0b_OFFSET       (0x02)  /* sub-register 0x02 is a 16-bit tuning register. */
#define DRX_TUNE0b_LEN          (2)
#define DRX_TUNE0b_MASK         0xFFFF  /* 7.2.40.2 Sub-Register 0x27:02 Â– DRX_TUNE0b */
#define DRX_TUNE0b_MASK         0xFFFF  /* 7.2.40.2 Sub-Register 0x27:02 ?DRX_TUNE0b */
/* offset from DRX_CONF_ID in bytes */
#define DRX_TUNE1a_OFFSET       0x04    /* 7.2.40.3 Sub-Register 0x27:04 Â– DRX_TUNE1a */
#define DRX_TUNE1a_OFFSET       0x04    /* 7.2.40.3 Sub-Register 0x27:04 ?DRX_TUNE1a */
#define DRX_TUNE1a_LEN          (2)
#define DRX_TUNE1a_MASK         0xFFFF
/* offset from DRX_CONF_ID in bytes */
#define DRX_TUNE1b_OFFSET       0x06    /* 7.2.40.4 Sub-Register 0x27:06 Â– DRX_TUNE1b */
#define DRX_TUNE1b_OFFSET       0x06    /* 7.2.40.4 Sub-Register 0x27:06 ?DRX_TUNE1b */
#define DRX_TUNE1b_LEN          (2)
#define DRX_TUNE1b_MASK         0xFFFF
/* offset from DRX_CONF_ID in bytes */
#define DRX_TUNE2_OFFSET        0x08    /* 7.2.40.5 Sub-Register 0x27:08 Â– DRX_TUNE2 */
#define DRX_TUNE2_OFFSET        0x08    /* 7.2.40.5 Sub-Register 0x27:08 ?DRX_TUNE2 */
#define DRX_TUNE2_LEN           (4)
#define DRX_TUNE2_MASK          0xFFFFFFFFUL
@@ -852,17 +852,17 @@
/* WARNING: Please do NOT set DRX_SFDTOC to zero (disabling SFD detection timeout)
 * since this risks IC malfunction due to prolonged receiver activity in the event of false preamble detection.
 */
#define DRX_SFDTOC_OFFSET       0x20    /* 7.2.40.7 Sub-Register 0x27:20 Â– DRX_SFDTOC */
#define DRX_SFDTOC_OFFSET       0x20    /* 7.2.40.7 Sub-Register 0x27:20 ?DRX_SFDTOC */
#define DRX_SFDTOC_LEN          (2)
#define DRX_SFDTOC_MASK         0xFFFF
/* offset from DRX_CONF_ID in bytes */
#define DRX_PRETOC_OFFSET       0x24    /* 7.2.40.9 Sub-Register 0x27:24 Â– DRX_PRETOC */
#define DRX_PRETOC_OFFSET       0x24    /* 7.2.40.9 Sub-Register 0x27:24 ?DRX_PRETOC */
#define DRX_PRETOC_LEN          (2)
#define DRX_PRETOC_MASK         0xFFFF
/* offset from DRX_CONF_ID in bytes */
#define DRX_DRX_TUNE4HOFFSET    0x26    /* 7.2.40.10 Sub-Register 0x27:26 Â– DRX_TUNE4H */
#define DRX_DRX_TUNE4HOFFSET    0x26    /* 7.2.40.10 Sub-Register 0x27:26 ?DRX_TUNE4H */
#define DRX_DRX_TUNE4H_LEN      (2)
#define DRX_DRX_TUNE4H_MASK     0xFFFF
@@ -871,7 +871,7 @@
/****************************************************************************//**
 * @brief Bit definitions for register  RF_CONF
 * Analog RF Configuration block
 * Refer to section 7.2.41 Register file: 0x28 Â– Analog RF configuration block
 * Refer to section 7.2.41 Register file: 0x28 ?Analog RF configuration block
**/
#define RF_CONF_ID              0x28            /* Analog RF Configuration */
#define RF_CONF_LEN             (58)
@@ -889,12 +889,12 @@
#define RF_TXCTRL_LEN           (4)
#define RF_TXCTRL_TXMTUNE_MASK  0x000001E0UL    /* Transmit mixer tuning register */
#define RF_TXCTRL_TXTXMQ_MASK   0x00000E00UL    /* Transmit mixer Q-factor tuning register */
#define RF_TXCTRL_CH1           0x00005C40UL    /* 32-bit value to program to Sub-Register 0x28:0C Â– RF_TXCTRL */
#define RF_TXCTRL_CH2           0x00045CA0UL    /* 32-bit value to program to Sub-Register 0x28:0C Â– RF_TXCTRL */
#define RF_TXCTRL_CH3           0x00086CC0UL    /* 32-bit value to program to Sub-Register 0x28:0C Â– RF_TXCTRL */
#define RF_TXCTRL_CH4           0x00045C80UL    /* 32-bit value to program to Sub-Register 0x28:0C Â– RF_TXCTRL */
#define RF_TXCTRL_CH5           0x001E3FE0UL    /* 32-bit value to program to Sub-Register 0x28:0C Â– RF_TXCTRL */
#define RF_TXCTRL_CH7           0x001E7DE0UL    /* 32-bit value to program to Sub-Register 0x28:0C Â– RF_TXCTRL */
#define RF_TXCTRL_CH1           0x00005C40UL    /* 32-bit value to program to Sub-Register 0x28:0C ?RF_TXCTRL */
#define RF_TXCTRL_CH2           0x00045CA0UL    /* 32-bit value to program to Sub-Register 0x28:0C ?RF_TXCTRL */
#define RF_TXCTRL_CH3           0x00086CC0UL    /* 32-bit value to program to Sub-Register 0x28:0C ?RF_TXCTRL */
#define RF_TXCTRL_CH4           0x00045C80UL    /* 32-bit value to program to Sub-Register 0x28:0C ?RF_TXCTRL */
#define RF_TXCTRL_CH5           0x001E3FE0UL    /* 32-bit value to program to Sub-Register 0x28:0C ?RF_TXCTRL */
#define RF_TXCTRL_CH7           0x001E7DE0UL    /* 32-bit value to program to Sub-Register 0x28:0C ?RF_TXCTRL */
/* offset from TX_CAL_ID in bytes */
#define RF_STATUS_OFFSET        0x2C    /*  */
@@ -909,24 +909,24 @@
/****************************************************************************//**
 * @brief Bit definitions for register TX_CAL
 * Refer to section 7.2.43 Register file: 0x2A Â– Transmitter Calibration block
 * Refer to section 7.2.43 Register file: 0x2A ?Transmitter Calibration block
**/
#define TX_CAL_ID               0x2A            /* Transmitter calibration block */
#define TX_CAL_LEN              (52)
/* offset from TX_CAL_ID in bytes */
#define TC_SARL_SAR_C                (0)         /* SAR control */
//#define TC_SARL_OFFSET            0x03            /* Transmitter Calibration Â– Latest SAR readings. RO */
//#define TC_SARL_OFFSET            0x03            /* Transmitter Calibration ?Latest SAR readings. RO */
//#define TC_SARL_LEN               (2)
/*cause bug in register block TX_CAL, we need to read 1 byte in a time*/
#define TC_SARL_SAR_LVBAT_OFFSET    (3)         /* Latest SAR reading for Voltage level */
#define TC_SARL_SAR_LTEMP_OFFSET    (4)         /* Latest SAR reading for Temperature level */
/* offset from TX_CAL_ID in bytes */
//#define TC_SARW_OFFSET            0x06            /* Transmitter Calibration Â– SAR readings at last Wake-Up */
//#define TC_SARW_OFFSET            0x06            /* Transmitter Calibration ?SAR readings at last Wake-Up */
//#define TC_SARW_LEN           (2)
#define TC_SARW_SAR_WTEMP_OFFSET    0x06            /* SAR reading of Temperature level taken at last wakeup event */
#define TC_SARW_SAR_WVBAT_OFFSET    0x07            /* SAR reading of Voltage level taken at last wakeup event */
/* offset from TX_CAL_ID in bytes */
#define TC_PGDELAY_OFFSET       0x0B            /* Transmitter Calibration Â– Pulse Generator Delay */
#define TC_PGDELAY_OFFSET       0x0B            /* Transmitter Calibration ?Pulse Generator Delay */
#define TC_PGDELAY_LEN          (1)
#define TC_PGDELAY_CH1          0xC9            /* Recommended value for channel 1 */
#define TC_PGDELAY_CH2          0xC2            /* Recommended value for channel 2 */
@@ -935,14 +935,14 @@
#define TC_PGDELAY_CH5          0xC0            /* Recommended value for channel 5 */
#define TC_PGDELAY_CH7          0x93            /* Recommended value for channel 7 */
/* offset from TX_CAL_ID in bytes */
#define TC_PGTEST_OFFSET        0x0C            /* Transmitter Calibration Â– Pulse Generator Test */
#define TC_PGTEST_OFFSET        0x0C            /* Transmitter Calibration ?Pulse Generator Test */
#define TC_PGTEST_LEN           (1)
#define TC_PGTEST_NORMAL        0x00            /* Normal operation */
#define TC_PGTEST_CW            0x13            /* Continuous Wave (CW) Test Mode */
/****************************************************************************//**
 * @brief Bit definitions for register
 * Refer to section 7.2.44 Register file: 0x2B Â– Frequency synthesiser control block
 * Refer to section 7.2.44 Register file: 0x2B ?Frequency synthesiser control block
**/
#define FS_CTRL_ID              0x2B            /* Frequency synthesiser control block */
#define FS_CTRL_LEN             (21)
@@ -950,7 +950,7 @@
#define FS_RES1_OFFSET          0x00            /* reserved area. Please take care not to write to this area as doing so may cause the DW1000 to malfunction. */
#define FS_RES1_LEN             (7)
/* offset from FS_CTRL_ID in bytes */
#define FS_PLLCFG_OFFSET        0x07            /* Frequency synthesiser Â– PLL configuration */
#define FS_PLLCFG_OFFSET        0x07            /* Frequency synthesiser ?PLL configuration */
#define FS_PLLCFG_LEN           (5)
#define FS_PLLCFG_CH1           0x09000407UL    /* Operating Channel 1 */
#define FS_PLLCFG_CH2           0x08400508UL    /* Operating Channel 2 (same as 4) */
@@ -959,7 +959,7 @@
#define FS_PLLCFG_CH5           0x0800041DUL    /* Operating Channel 5 (same as 7) */
#define FS_PLLCFG_CH7           0x0800041DUL    /* Operating Channel 7 (same as 5) */
/* offset from FS_CTRL_ID in bytes */
#define FS_PLLTUNE_OFFSET       0x0B            /* Frequency synthesiser Â– PLL Tuning */
#define FS_PLLTUNE_OFFSET       0x0B            /* Frequency synthesiser ?PLL Tuning */
#define FS_PLLTUNE_LEN          (1)
#define FS_PLLTUNE_CH1          0x1E    /* Operating Channel 1 */
#define FS_PLLTUNE_CH2          0x26    /* Operating Channel 2 (same as 4) */
@@ -971,9 +971,9 @@
#define FS_RES2_OFFSET          0x0C    /* reserved area. Please take care not to write to this area as doing so may cause the DW1000 to malfunction. */
#define FS_RES2_LEN             (2)
/* offset from FS_CTRL_ID in bytes */
#define FS_XTALT_OFFSET         0x0E    /* Frequency synthesiser Â– Crystal trim */
#define FS_XTALT_OFFSET         0x0E    /* Frequency synthesiser ?Crystal trim */
#define FS_XTALT_LEN            (1)
#define FS_XTALT_MASK           0x1F    /* Crystal Trim. Crystals may be trimmed using this register setting to tune out errors, see 8.1 Â– IC Calibration Â– Crystal Oscillator Trim. */
#define FS_XTALT_MASK           0x1F    /* Crystal Trim. Crystals may be trimmed using this register setting to tune out errors, see 8.1 ?IC Calibration ?Crystal Oscillator Trim. */
#define FS_XTALT_MIDRANGE       0x10
/* offset from FS_CTRL_ID in bytes */
#define FS_RES3_OFFSET          0x0F    /* reserved area. Please take care not to write to this area as doing so may cause the DW1000 to malfunction. */
@@ -990,7 +990,7 @@
#define AON_WCFG_MASK           0x09CB  /* access mask to AON_WCFG register*/
#define AON_WCFG_ONW_RADC       0x0001  /* On Wake-up Run the (temperature and voltage) Analog-to-Digital Convertors */
#define AON_WCFG_ONW_RX         0x0002  /* On Wake-up turn on the Receiver */
#define AON_WCFG_ONW_LEUI       0x0008  /* On Wake-up load the EUI from OTP memory into Register file: 0x01 Â– Extended Unique Identifier. */
#define AON_WCFG_ONW_LEUI       0x0008  /* On Wake-up load the EUI from OTP memory into Register file: 0x01 ?Extended Unique Identifier. */
#define AON_WCFG_ONW_LDC        0x0040  /* On Wake-up load configurations from the AON memory into the host interface register set */
#define AON_WCFG_ONW_L64P       0x0080  /* On Wake-up load the Length64 receiver operating parameter set */
#define AON_WCFG_PRES_SLEEP     0x0100  /* Preserve Sleep. This bit determines what the DW1000 does with respect to the ARXSLP and ATXSLP sleep controls */
@@ -1034,7 +1034,7 @@
/****************************************************************************//**
 * @brief Bit definitions for register OTP_IF
 * Refer to section 7.2.46 Register file: 0x2D Â– OTP Memory Interface
 * Refer to section 7.2.46 Register file: 0x2D ?OTP Memory Interface
**/
#define OTP_IF_ID               0x2D            /* One Time Programmable Memory Interface */
#define OTP_IF_LEN              (18)
@@ -1076,8 +1076,8 @@
/****************************************************************************//**
 * @brief Bit definitions for register LDE_IF
 * Refer to section 7.2.47 Register file: 0x2E Â– Leading Edge Detection Interface
 * PLEASE NOTE: Other areas within the address space of Register file: 0x2E Â– Leading Edge Detection Interface
 * Refer to section 7.2.47 Register file: 0x2E ?Leading Edge Detection Interface
 * PLEASE NOTE: Other areas within the address space of Register file: 0x2E ?Leading Edge Detection Interface
 * are reserved. To ensure proper operation of the LDE algorithm (i.e. to avoid loss of performance or a malfunction),
 * care must be taken not to write to any byte locations other than those defined in the sub-sections below.
**/
@@ -1168,11 +1168,11 @@
#define EVC_TXFS_MASK           0x0FFF
/* offset from DIG_DIAG_ID in bytes */
#define EVC_HPW_OFFSET          0x18        /* The EVC_HPW field is a 12-bit counter of Â“Half Period Warnings”. */
#define EVC_HPW_OFFSET          0x18        /* The EVC_HPW field is a 12-bit counter of æŒalf Period Warnings? */
#define EVC_HPW_LEN             (2)
#define EVC_HPW_MASK            0x0FFF
/* offset from DIG_DIAG_ID in bytes */
#define EVC_TPW_OFFSET          0x1A        /* The EVC_TPW field is a 12-bit counter of Â“Transmitter Power-Up Warnings”. */
#define EVC_TPW_OFFSET          0x1A        /* The EVC_TPW field is a 12-bit counter of æŸransmitter Power-Up Warnings? */
#define EVC_TPW_LEN             (2)
#define EVC_TPW_MASK            0x0FFF
Ô´Âë/ºËÐİå/Src/main.c
@@ -32,7 +32,8 @@
#define RNG_DELAY_MS 100
/* Default communication configuration. We use here EVK1000's default mode (mode 3). */
static dwt_config_t config = {
static dwt_config_t config =
{
    2,               /* Channel number. */
    DWT_PRF_64M,     /* Pulse repetition frequency. */
    DWT_PLEN_1024,   /* Preamble length. */
@@ -322,7 +323,9 @@
                                                dID=ANCHOR_ID;
                                                printf("ANCHOR_ID: %2.0f        ", dID);
                        printf("Distance: %5.0f cm\n", (double)dist[TAG_ID]);
                                            }else{
                    }
                    else
                    {
                                                send[2] = ANCHOR_ID;
                                                send[3] = TAG_ID;
                                                
@@ -343,7 +346,9 @@
                                time32_reset = 0;
                                GPIO_Toggle(GPIOA,LED_PIN);//LED闪烁
                                jumptime = 0;
            }else{
                }
                else
                {
                            jumptime =5;//如果通讯失败,将间隔时间增加5ms,避开因为多标签同时发送引起的冲突。
                        }
        }
@@ -357,7 +362,9 @@
        /* Execute a delay between ranging exchanges. */
        deca_sleep(RNG_DELAY_MS+jumptime);//休眠固定时间
    }
    }else{
    }
    else
    {
        while (1)//接收模式(ANCHOR基站)
    {
        /* Clear reception timeout to start next ranging process. */
@@ -475,7 +482,9 @@
                                                dID=ANCHOR_ID;
                                                printf("ANCHOR_ID: %2.0f        ", dID);
                        printf("Distance: %5.0f cm\n", (double)dist[TAG_ID]);
                                            }else{
                            }
                            else
                            {
                                                send[2] = ANCHOR_ID;
                                                send[3] = TAG_ID;
                                                
Ô´Âë/ºËÐİå/Src/platform/deca_mutex.c
@@ -52,7 +52,8 @@
{
    decaIrqStatus_t s = port_GetEXT_IRQStatus();
    if(s) {
    if(s)
    {
        port_DisableEXT_IRQ(); //disable the external interrupt line
    }
    return s ;   // return state before disable, value is used to re-enable in decamutexoff call
@@ -75,7 +76,8 @@
 */
void decamutexoff(decaIrqStatus_t s)        // put a function here that re-enables the interrupt at the end of the critical section
{
    if(s) { //need to check the port state as we can't use level sensitive interrupt on the STM ARM
    if(s)   //need to check the port state as we can't use level sensitive interrupt on the STM ARM
    {
        port_EnableEXT_IRQ();
    }
}
Ô´Âë/ºËÐİå/Src/platform/deca_spi.c
Ô´Âë/ºËÐİå/Src/platform/lcd.c
Ô´Âë/ºËÐİå/Src/platform/port.c
@@ -536,7 +536,9 @@
{
    Work_Mode = 0;//TX
    GPIO_Toggle(GPIOA,LED_PIN);
}else{
    }
    else
    {
    Work_Mode = 1; //RX
}
    TAG_ID = 0;
Ô´Âë/ºËÐİå/Src/platform/port.h
Ô´Âë/ºËÐİå/Src/platform/syscalls.c
Ô´Âë/ºËÐİå/Src/stm32f10x_it.c
Ô´Âë/ºËÐİå/Src/stm32f10x_it.h