From d39d11abad49a1f96ac996150ed53350d4cb9f60 Mon Sep 17 00:00:00 2001 From: gaoyang3513 Date: Tue, 23 Jul 2024 22:03:19 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=20=E8=A7=A3=E5=86=B3=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CMSIS/GD/GD32W51x/Include/gd32w51x.h | 2 +- .../Uart_PingPong/ebyte/ebyte_port.h | 8 +- .../IAR_for_Stm8/Uart_PingPong/main.c | 52 +++--- .../2_Ebyte_Board_Support/E15-EVB02/board.c | 154 +++++++++--------- .../E15-EVB02/board_mini_printf.c | 6 +- .../E48xMx/radio_hal.h | 1 + NSPE/WIFI_IOT/bsp/drivers/CMakeLists.txt | 58 +++---- 7 files changed, 142 insertions(+), 139 deletions(-) diff --git a/NSPE/Firmware/CMSIS/GD/GD32W51x/Include/gd32w51x.h b/NSPE/Firmware/CMSIS/GD/GD32W51x/Include/gd32w51x.h index 7faf48b..61ee23c 100644 --- a/NSPE/Firmware/CMSIS/GD/GD32W51x/Include/gd32w51x.h +++ b/NSPE/Firmware/CMSIS/GD/GD32W51x/Include/gd32w51x.h @@ -194,7 +194,7 @@ typedef enum IRQn /* enum definitions */ typedef enum {DISABLE = 0, ENABLE = !DISABLE} EventStatus, ControlStatus; -typedef enum {RESET = 0, SET = !RESET} FlagStatus; +typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus, BitStatus, BitAction; typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrStatus; /* bit operations */ diff --git a/NSPE/WIFI_IOT/bsp/drivers/0_Project/IAR_for_Stm8/Uart_PingPong/ebyte/ebyte_port.h b/NSPE/WIFI_IOT/bsp/drivers/0_Project/IAR_for_Stm8/Uart_PingPong/ebyte/ebyte_port.h index 0d20871..c140b8c 100755 --- a/NSPE/WIFI_IOT/bsp/drivers/0_Project/IAR_for_Stm8/Uart_PingPong/ebyte/ebyte_port.h +++ b/NSPE/WIFI_IOT/bsp/drivers/0_Project/IAR_for_Stm8/Uart_PingPong/ebyte/ebyte_port.h @@ -1,4 +1,9 @@ +#ifndef __EBYTE_PORT_H +#define __EBYTE_PORT_H + +#include #include "ebyte_conf.h" + //#include "stm8l15x.h" //typedef unsigned char uint8e_t; //typedef unsigned short uint16e_t; @@ -24,5 +29,4 @@ void Ebyte_Port_SpiCsIoControl( uint8e_t cmd ); uint8e_t Ebyte_Port_BusyIoRead( void ); uint8e_t Ebyte_Port_SpiTransmitAndReceivce( uint8e_t send ); - - +#endif /* __EBYTE_PORT_H */ diff --git a/NSPE/WIFI_IOT/bsp/drivers/0_Project/IAR_for_Stm8/Uart_PingPong/main.c b/NSPE/WIFI_IOT/bsp/drivers/0_Project/IAR_for_Stm8/Uart_PingPong/main.c index 4483984..bdc5bf8 100755 --- a/NSPE/WIFI_IOT/bsp/drivers/0_Project/IAR_for_Stm8/Uart_PingPong/main.c +++ b/NSPE/WIFI_IOT/bsp/drivers/0_Project/IAR_for_Stm8/Uart_PingPong/main.c @@ -22,7 +22,7 @@ #include "ebyte_core.h" #include "ebyte_kfifo.h" #include "ebyte_debug.h" - + void Task_Transmit( void ); void Task_Button( void ); @@ -58,7 +58,7 @@ static BSP_BTN_EVENT_t BTN_Event; int main( void ) { /* 板载硬件资源 初始化 */ - Ebyte_BSP_Init(); +// Ebyte_BSP_Init(); /* (可选) 串口中断接收FIFO 可根据需要自行处理 */ Ebyte_FIFO_Init( &hfifo, EBYTE_FIFO_SIZE ); @@ -66,13 +66,13 @@ int main( void ) /* EBYTE 无线模块初始化 */ Ebyte_RF.Init(); /* 启用无线模块接收 */ - Ebyte_RF.EnterReceiveMode( 0 ); + Ebyte_RF.EnterReceiveMode( 0 ); /* MCU 开全局中断 */ Ebyte_BSP_GlobalIntEnable(); DEBUG( "Start PingPong.....\r\n" ); DEBUG( "Please push button1 or button2.....\r\n" ); - + while( 1 ) { /* 按键事件响应 */ @@ -83,7 +83,7 @@ int main( void ) /* 任务:EBYTE驱动库必须的周期执行任务 客户无需修改 */ Ebyte_RF.StartPollTask(); - + } } @@ -116,7 +116,7 @@ void Task_Transmit( void ) /* PC特殊指令响应 */ if( Ebyte_DEBUG_CommandEcho( TxBuffer,length, PcEchoBuffer, &pcEchoLength ) ) { - Ebyte_BSP_UartTransmit( PcEchoBuffer , pcEchoLength); + Ebyte_BSP_UartTransmit( PcEchoBuffer , pcEchoLength); } /* 非特殊指令则无线透传 */ else @@ -125,19 +125,19 @@ void Task_Transmit( void ) Ebyte_RF.Send( TxBuffer, length, 0 ); /* 启用无线模块继续接收 */ - Ebyte_RF.EnterReceiveMode( 0 ); + Ebyte_RF.EnterReceiveMode( 0 ); } - + /* 每发完一帧就减少帧计数 串口中断可能已经写入了多帧 */ if( Uart_isRecvReady ) Uart_isRecvReady --; if( FIFO_isTimeCheckReady ) FIFO_isTimeCheckReady = 0; Ebyte_BSP_LedControl( BSP_LED_1, OFF ); } - + /* 接收完成回调函数检测到了 ping 命令 回复 pong */ if( Callback_isPingCheckReady ) - { + { if( PC_isConnected ) { pongLength = 5; @@ -145,13 +145,13 @@ void Task_Transmit( void ) DEBUG( "\r\n Echo : pong \r\n" ); pongLength = 4; } - + /* 启用无线模块进行发送 */ Ebyte_RF.Send( BufferPong, pongLength, 0 ); /* 启用无线模块继续接收 */ - Ebyte_RF.EnterReceiveMode( 0 ); - + Ebyte_RF.EnterReceiveMode( 0 ); + Callback_isPingCheckReady = 0; } } @@ -163,20 +163,20 @@ void Task_Button( void ) { uint8_t pcEchoLength = 0; uint8_t pingLength = 0; - + if( ! Ebyte_BTN_FIFO_Pop( &BSP_BTN_FIFO, &BTN_Event ) ) { switch( BTN_Event ) { /* 按键1 短按 */ - case BTN_1_SHORT: + case BTN_1_SHORT: Ebyte_BSP_LedControl( BSP_LED_1, ON ); - + if( PC_isConnected ) { /* 通知PC */ Ebyte_DEBUG_CommandEcho( (uint8_t*)SimulatedCommandsButton1, EBYTE_CMD_PACKAGE_LENGTH , PcEchoBuffer, &pcEchoLength ); - Ebyte_BSP_UartTransmit( PcEchoBuffer , pcEchoLength); + Ebyte_BSP_UartTransmit( PcEchoBuffer , pcEchoLength); BufferPing[4] = 0x01; pingLength = 5; }else @@ -184,25 +184,25 @@ void Task_Button( void ) DEBUG( "\r\n Send Command : ping \r\n" ); pingLength = 4; } - + /* 发送 ping */ Ebyte_RF.Send( BufferPing, pingLength, 0 ); Ebyte_RF.EnterReceiveMode( 0 ); - + Ebyte_BSP_LedControl( BSP_LED_1, OFF ); break; - /* 按键1 长按 */ + /* 按键1 长按 */ case BTN_1_LONG: Ebyte_BSP_LedControl( BSP_LED_1, TOGGLE ); break; - /* 按键2 短按 */ + /* 按键2 短按 */ case BTN_2_SHORT: Ebyte_BSP_LedControl( BSP_LED_2, ON ); if( PC_isConnected ) { /* 通知PC */ Ebyte_DEBUG_CommandEcho( (uint8_t*)SimulatedCommandsButton2, EBYTE_CMD_PACKAGE_LENGTH , PcEchoBuffer, &pcEchoLength ); - Ebyte_BSP_UartTransmit( PcEchoBuffer , pcEchoLength); + Ebyte_BSP_UartTransmit( PcEchoBuffer , pcEchoLength); BufferPing[4] = 0x02; pingLength = 5; }else @@ -210,14 +210,14 @@ void Task_Button( void ) DEBUG( "\r\n Send Command : ping \r\n" ); pingLength = 4; } - + /* 发送 ping */ Ebyte_RF.Send( BufferPing, pingLength, 0 ); Ebyte_RF.EnterReceiveMode( 0 ); - - Ebyte_BSP_LedControl( BSP_LED_2, OFF ); + + Ebyte_BSP_LedControl( BSP_LED_2, OFF ); break; - /* 按键2 长按 */ + /* 按键2 长按 */ case BTN_2_LONG: Ebyte_BSP_LedControl( BSP_LED_2, TOGGLE ); break; diff --git a/NSPE/WIFI_IOT/bsp/drivers/2_Ebyte_Board_Support/E15-EVB02/board.c b/NSPE/WIFI_IOT/bsp/drivers/2_Ebyte_Board_Support/E15-EVB02/board.c index 104578f..fc97df4 100755 --- a/NSPE/WIFI_IOT/bsp/drivers/2_Ebyte_Board_Support/E15-EVB02/board.c +++ b/NSPE/WIFI_IOT/bsp/drivers/2_Ebyte_Board_Support/E15-EVB02/board.c @@ -20,6 +20,7 @@ */ #include "board.h" +#include "ebyte_port.h" #include "ebyte_conf.h" BSP_BTN_FIFO_t BSP_BTN_FIFO; @@ -33,21 +34,21 @@ volatile uint32_t Ebyte_TimerDelayCounter = 0; */ void Ebyte_BSP_HSI_Init(void) { - /* 内部 16M HSI 时钟 */ - CLK_SYSCLKSourceConfig( CLK_SYSCLKSource_HSI ); - - /* 1分频 16M/1 */ - CLK_SYSCLKDivConfig( CLK_SYSCLKDiv_1 ); +// /* 内部 16M HSI 时钟 */ +// CLK_SYSCLKSourceConfig( CLK_SYSCLKSource_HSI ); +// +// /* 1分频 16M/1 */ +// CLK_SYSCLKDivConfig( CLK_SYSCLKDiv_1 ); } void Ebyte_BSP_E48xGPIO_Init(void) { // GPIO_Init( BSP_GPIO_PORT_E48_GP0, BSP_GPIO_PIN_E48_GP0, GPIO_Mode_In_PU_No_IT ); - GPIO_Init( BSP_GPIO_PORT_E48_NIRQ, BSP_GPIO_PIN_E48_NIRQ, GPIO_Mode_In_PU_No_IT ); - GPIO_Init( BSP_GPIO_PORT_E48_GP3, BSP_GPIO_PIN_E48_GP3, GPIO_Mode_In_PU_No_IT ); - GPIO_Init( BSP_GPIO_PORT_E48_GP4, BSP_GPIO_PIN_E48_GP4, GPIO_Mode_In_FL_No_IT ); - GPIO_Init( BSP_GPIO_PORT_E48_GP5, BSP_GPIO_PIN_E48_GP5, GPIO_Mode_In_PU_No_IT ); +// GPIO_Init( BSP_GPIO_PORT_E48_NIRQ, BSP_GPIO_PIN_E48_NIRQ, GPIO_Mode_In_PU_No_IT ); +// GPIO_Init( BSP_GPIO_PORT_E48_GP3, BSP_GPIO_PIN_E48_GP3, GPIO_Mode_In_PU_No_IT ); +// GPIO_Init( BSP_GPIO_PORT_E48_GP4, BSP_GPIO_PIN_E48_GP4, GPIO_Mode_In_FL_No_IT ); +// GPIO_Init( BSP_GPIO_PORT_E48_GP5, BSP_GPIO_PIN_E48_GP5, GPIO_Mode_In_PU_No_IT ); } /* ! * @brief 初始化所有IO @@ -56,16 +57,16 @@ void Ebyte_BSP_E48xGPIO_Init(void) */ void Ebyte_BSP_GPIO_Init(void) { - /* 无线模块状态控制 */ - Ebyte_BSP_E48xGPIO_Init(); - /* LED */ - GPIO_Init( BSP_GPIO_PORT_LED_1, BSP_GPIO_PIN_LED_1, GPIO_Mode_Out_PP_Low_Slow ); - GPIO_Init( BSP_GPIO_PORT_LED_2, BSP_GPIO_PIN_LED_2, GPIO_Mode_Out_PP_Low_Slow ); - - /* 按键 */ - GPIO_Init( BSP_GPIO_PORT_BUTTON_1, BSP_GPIO_PIN_BUTTON_1, GPIO_Mode_In_PU_No_IT ); - - GPIO_Init( BSP_GPIO_PORT_BUTTON_2, BSP_GPIO_PIN_BUTTON_2, GPIO_Mode_In_PU_No_IT ); +// /* 无线模块状态控制 */ +// Ebyte_BSP_E48xGPIO_Init(); +// /* LED */ +// GPIO_Init( BSP_GPIO_PORT_LED_1, BSP_GPIO_PIN_LED_1, GPIO_Mode_Out_PP_Low_Slow ); +// GPIO_Init( BSP_GPIO_PORT_LED_2, BSP_GPIO_PIN_LED_2, GPIO_Mode_Out_PP_Low_Slow ); +// +// /* 按键 */ +// GPIO_Init( BSP_GPIO_PORT_BUTTON_1, BSP_GPIO_PIN_BUTTON_1, GPIO_Mode_In_PU_No_IT ); +// +// GPIO_Init( BSP_GPIO_PORT_BUTTON_2, BSP_GPIO_PIN_BUTTON_2, GPIO_Mode_In_PU_No_IT ); } /* ! @@ -75,24 +76,24 @@ void Ebyte_BSP_GPIO_Init(void) */ void Ebyte_BSP_UART_Init( void ) { - /* 时钟 */ - CLK_PeripheralClockConfig( BSP_USER_UART_CLOCK, ENABLE); - - /* GPIO */ - GPIO_ExternalPullUpConfig( BSP_GPIO_PORT_UART_TX, BSP_GPIO_PIN_UART_TX, ENABLE ); - GPIO_ExternalPullUpConfig( BSP_GPIO_PORT_UART_RX, BSP_GPIO_PIN_UART_RX, ENABLE ); - - /* 端口重映射 */ - SYSCFG_REMAPPinConfig( REMAP_Pin_USART1TxRxPortA, ENABLE ); - - /* 基础参数配置 E15-EVB02默认波特率9600 8N1 */ - USART_Init( BSP_USER_UART, BSP_USER_UART_BAUDRATE, USART_WordLength_8b, USART_StopBits_1, BSP_USER_UART_PARITY, (USART_Mode_TypeDef)(USART_Mode_Rx | USART_Mode_Tx ));//允许接收和发送 - - /* 打开接收中断 */; - USART_ITConfig( BSP_USER_UART, USART_IT_RXNE, ENABLE ); - - /* 串口 使能 */ - USART_Cmd( BSP_USER_UART, ENABLE); +// /* 时钟 */ +// CLK_PeripheralClockConfig( BSP_USER_UART_CLOCK, ENABLE); +// +// /* GPIO */ +// GPIO_ExternalPullUpConfig( BSP_GPIO_PORT_UART_TX, BSP_GPIO_PIN_UART_TX, ENABLE ); +// GPIO_ExternalPullUpConfig( BSP_GPIO_PORT_UART_RX, BSP_GPIO_PIN_UART_RX, ENABLE ); +// +// /* 端口重映射 */ +// SYSCFG_REMAPPinConfig( REMAP_Pin_USART1TxRxPortA, ENABLE ); +// +// /* 基础参数配置 E15-EVB02默认波特率9600 8N1 */ +// USART_Init( BSP_USER_UART, BSP_USER_UART_BAUDRATE, USART_WordLength_8b, USART_StopBits_1, BSP_USER_UART_PARITY, (USART_Mode_TypeDef)(USART_Mode_Rx | USART_Mode_Tx ));//允许接收和发送 +// +// /* 打开接收中断 */; +// USART_ITConfig( BSP_USER_UART, USART_IT_RXNE, ENABLE ); +// +// /* 串口 使能 */ +// USART_Cmd( BSP_USER_UART, ENABLE); } void Ebyte_BSP_ThreeLinesSPI_Init() @@ -105,26 +106,26 @@ void Ebyte_BSP_ThreeLinesSPI_Init() */ void Ebyte_BSP_SPI_Init( void ) { - /* 时钟 */ - CLK_PeripheralClockConfig( CLK_Peripheral_SPI1, ENABLE); - - /* GPIO */ - GPIO_Init( BSP_GPIO_PORT_SPI_NSS, BSP_GPIO_PIN_SPI_NSS, GPIO_Mode_Out_PP_High_Slow); //片选 CS - GPIO_ExternalPullUpConfig( BSP_GPIO_PORT_SPI_SCK, BSP_GPIO_PIN_SPI_MOSI | BSP_GPIO_PIN_SPI_MISO | BSP_GPIO_PIN_SPI_SCK, ENABLE); // MOSI MISO SCK - - /* 参数配置 */ - SPI_Init( BSP_RF_SPI, - SPI_FirstBit_MSB, //从高位开始传输 - SPI_BaudRatePrescaler_8, //16M/2 SCK速率 - SPI_Mode_Master, //主机模式 - SPI_CPOL_Low, //根据 CPOL=0 - SPI_CPHA_1Edge, //根据 CPHA=0 第一个时钟边沿采样数据 - SPI_Direction_2Lines_FullDuplex, //全双工 - SPI_NSS_Soft, //软件控制从机CS片选 - 0x07); //CRC参数 - - /* 使能 */ - SPI_Cmd( BSP_RF_SPI, ENABLE ); +// /* 时钟 */ +// CLK_PeripheralClockConfig( CLK_Peripheral_SPI1, ENABLE); +// +// /* GPIO */ +// GPIO_Init( BSP_GPIO_PORT_SPI_NSS, BSP_GPIO_PIN_SPI_NSS, GPIO_Mode_Out_PP_High_Slow); //片选 CS +// GPIO_ExternalPullUpConfig( BSP_GPIO_PORT_SPI_SCK, BSP_GPIO_PIN_SPI_MOSI | BSP_GPIO_PIN_SPI_MISO | BSP_GPIO_PIN_SPI_SCK, ENABLE); // MOSI MISO SCK +// +// /* 参数配置 */ +// SPI_Init( BSP_RF_SPI, +// SPI_FirstBit_MSB, //从高位开始传输 +// SPI_BaudRatePrescaler_8, //16M/2 SCK速率 +// SPI_Mode_Master, //主机模式 +// SPI_CPOL_Low, //根据 CPOL=0 +// SPI_CPHA_1Edge, //根据 CPHA=0 第一个时钟边沿采样数据 +// SPI_Direction_2Lines_FullDuplex, //全双工 +// SPI_NSS_Soft, //软件控制从机CS片选 +// 0x07); //CRC参数 +// +// /* 使能 */ +// SPI_Cmd( BSP_RF_SPI, ENABLE ); } /* ! @@ -136,11 +137,11 @@ void Ebyte_BSP_SPI_Init( void ) */ uint8_t Ebyte_BSP_SpiTransAndRecv( uint8_t data ) { - BSP_RF_SPI->DR = data; - while ((BSP_RF_SPI->SR & SPI_FLAG_TXE) == RESET); - - while ((BSP_RF_SPI->SR & SPI_FLAG_RXNE) == RESET); - return BSP_RF_SPI->DR; +// BSP_RF_SPI->DR = data; +// while ((BSP_RF_SPI->SR & SPI_FLAG_TXE) == RESET); +// +// while ((BSP_RF_SPI->SR & SPI_FLAG_RXNE) == RESET); +// return BSP_RF_SPI->DR; } /* ! @@ -152,18 +153,18 @@ uint8_t Ebyte_BSP_SpiTransAndRecv( uint8_t data ) */ void Ebyte_BSP_TIMER_Init( void ) { - /* 时钟 */ - CLK_PeripheralClockConfig( CLK_Peripheral_TIM3, ENABLE); - - /* 参数 */ - TIM3_TimeBaseInit( TIM3_Prescaler_128 , TIM3_CounterMode_Up, 124); - - /* 允许中断 */ - TIM3_ClearFlag(TIM3_FLAG_Update); - TIM3_ITConfig(TIM3_IT_Update, ENABLE); - - /* 使能 */ - TIM3_Cmd(ENABLE); +// /* 时钟 */ +// CLK_PeripheralClockConfig( CLK_Peripheral_TIM3, ENABLE); +// +// /* 参数 */ +// TIM3_TimeBaseInit( TIM3_Prescaler_128 , TIM3_CounterMode_Up, 124); +// +// /* 允许中断 */ +// TIM3_ClearFlag(TIM3_FLAG_Update); +// TIM3_ITConfig(TIM3_IT_Update, ENABLE); +// +// /* 使能 */ +// TIM3_Cmd(ENABLE); } /* ! @@ -190,16 +191,11 @@ void Ebyte_BSP_Init( void ) /* SPI接口 初始化 */ Ebyte_BSP_SPI_Init(); - /* 定时器 初始化 */ Ebyte_BSP_TIMER_Init(); /* 按键事件队列 初始化 */ Ebyte_BTN_FIFO_Init( &BSP_BTN_FIFO ); - - - - } /* ! diff --git a/NSPE/WIFI_IOT/bsp/drivers/2_Ebyte_Board_Support/E15-EVB02/board_mini_printf.c b/NSPE/WIFI_IOT/bsp/drivers/2_Ebyte_Board_Support/E15-EVB02/board_mini_printf.c index 52f75ad..9db0853 100755 --- a/NSPE/WIFI_IOT/bsp/drivers/2_Ebyte_Board_Support/E15-EVB02/board_mini_printf.c +++ b/NSPE/WIFI_IOT/bsp/drivers/2_Ebyte_Board_Support/E15-EVB02/board_mini_printf.c @@ -1,4 +1,6 @@ +#include #include "stdarg.h" +#include "gd32w51x.h" //#include "stm8l15x_usart.h" #include "board_mini_printf.h" @@ -9,8 +11,8 @@ */ static void send_uart_data(uint8_t data) { - while (USART_GetFlagStatus(USART1, USART_FLAG_TXE) == RESET); - USART_SendData8(USART1,data); +// while (USART_GetFlagStatus(USART1, USART_FLAG_TXE) == RESET); +// USART_SendData8(USART1,data); } /* diff --git a/NSPE/WIFI_IOT/bsp/drivers/3_Ebyte_WirelessModule_Drivers/E48xMx/radio_hal.h b/NSPE/WIFI_IOT/bsp/drivers/3_Ebyte_WirelessModule_Drivers/E48xMx/radio_hal.h index de349b6..1fb0051 100755 --- a/NSPE/WIFI_IOT/bsp/drivers/3_Ebyte_WirelessModule_Drivers/E48xMx/radio_hal.h +++ b/NSPE/WIFI_IOT/bsp/drivers/3_Ebyte_WirelessModule_Drivers/E48xMx/radio_hal.h @@ -5,6 +5,7 @@ #define __RADIO_HAL_H //#include "stm8l15x.h" +#include "gd32w51x.h" #include "ebyte_port.h" diff --git a/NSPE/WIFI_IOT/bsp/drivers/CMakeLists.txt b/NSPE/WIFI_IOT/bsp/drivers/CMakeLists.txt index 1de221e..03a20f2 100644 --- a/NSPE/WIFI_IOT/bsp/drivers/CMakeLists.txt +++ b/NSPE/WIFI_IOT/bsp/drivers/CMakeLists.txt @@ -9,7 +9,7 @@ target_sources(cmt2310 0_Project/IAR_for_Stm8/Uart_PingPong/ebyte/ebyte_callback.c 0_Project/IAR_for_Stm8/Uart_PingPong/ebyte/ebyte_core.c 0_Project/IAR_for_Stm8/Uart_PingPong/ebyte/ebyte_port.c - 0_Project/IAR_for_Stm8/Uart_PingPong/stm8l15x_it.c +# 0_Project/IAR_for_Stm8/Uart_PingPong/stm8l15x_it.c 0_Project/IAR_for_Stm8/Uart_PingPong/main.c 1_Middleware/Kfifo/ebyte_kfifo.c 1_Middleware/Produce/ebyte_debug.c @@ -26,34 +26,34 @@ target_sources(cmt2310 3_Ebyte_WirelessModule_Drivers/E48xMx/radio_mac.c 3_Ebyte_WirelessModule_Drivers/E48xMx/radio_spi.c 3_Ebyte_WirelessModule_Drivers/E48xMx/ebyte_e48x.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_tim5.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_tim1.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_rst.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_comp.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_tim4.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_i2c.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_itc.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_tim3.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_irtim.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_beep.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_aes.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_tim2.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_iwdg.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_adc.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_rtc.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_exti.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_gpio.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_lcd.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_wwdg.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_flash.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_pwr.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_spi.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_syscfg.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_clk.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_usart.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_dac.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_wfe.c - 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_dma.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_tim5.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_tim1.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_rst.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_comp.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_tim4.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_i2c.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_itc.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_tim3.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_irtim.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_beep.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_aes.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_tim2.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_iwdg.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_adc.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_rtc.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_exti.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_gpio.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_lcd.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_wwdg.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_flash.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_pwr.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_spi.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_syscfg.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_clk.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_usart.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_dac.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_wfe.c +# 4_STM8_L15x_StdPeriph_Drivers/src/stm8l15x_dma.c ) target_include_directories(cmt2310