diff --git a/Core/Inc/platform.h b/Core/Inc/platform.h index f2a7e06..3ec1184 100644 --- a/Core/Inc/platform.h +++ b/Core/Inc/platform.h @@ -33,6 +33,7 @@ extern "C" { #if defined(STM32WLE5xx) #define USE_STS_WLE5xx +#define YUNHORN_STS_WLE5CCxx #endif /* USER CODE BEGIN EC */ diff --git a/Core/Inc/sys_conf.h b/Core/Inc/sys_conf.h index ea70373..de3a94d 100644 --- a/Core/Inc/sys_conf.h +++ b/Core/Inc/sys_conf.h @@ -47,12 +47,12 @@ extern "C" { /** * @brief Verbose level for all trace logs */ -#define VERBOSE_LEVEL VLEVEL_L +#define VERBOSE_LEVEL VLEVEL_H /** * @brief Enable trace logs */ -#define APP_LOG_ENABLED 0 +#define APP_LOG_ENABLED 1 /** * @brief Activate monitoring (probes) of some internal RF signals for debug purpose diff --git a/Core/Inc/yunhorn_sts_prd_conf.h b/Core/Inc/yunhorn_sts_prd_conf.h index 671e7f6..a3fc964 100644 --- a/Core/Inc/yunhorn_sts_prd_conf.h +++ b/Core/Inc/yunhorn_sts_prd_conf.h @@ -32,15 +32,20 @@ /* * MCU CORE SELECTION */ +#ifdef USE_STS_WLE5xx #define STS_USE_STM32WLE5 1U //STM32WLE5CCUX -//#define USE_STM32WL55 1U //STM32WL55JC1X +#elif defined(STM32WL55xx) +#define USE_STM32WL55 1U //STM32WL55JC1X +#endif /* * MODULE SELECTION */ //#define USE_OLED_SSD1306 //#define USE_TOF_VL53L1X +#if defined(TOF_1)||defined(TOF_2)||defined(TOF_3) #define STS_USE_TOF_VL53L0X 1U +#endif #define YUNHORN_STS_R5_ENABLED diff --git a/LoRaWAN/Target/radio_board_if.h b/LoRaWAN/Target/radio_board_if.h index fd4bbe8..ffaefd4 100644 --- a/LoRaWAN/Target/radio_board_if.h +++ b/LoRaWAN/Target/radio_board_if.h @@ -33,7 +33,7 @@ extern "C" { /* Exported defines ----------------------------------------------------------*/ // #ifdef MX_BOARD_PSEUDODRIVER -#define YUNHORN_STS_WLE5CCxx +//#define YUNHORN_STS_WLE5CCxx // #endif /* MX_BOARD_PSEUDODRIVER */ #if defined(USE_BSP_DRIVER) /* code generated by MX does not support BSP */ @@ -151,6 +151,13 @@ typedef enum RBI_SWITCH_RFO_LP = RADIO_SWITCH_RFO_LP, RBI_SWITCH_RFO_HP = RADIO_SWITCH_RFO_HP, } RBI_Switch_TypeDef; + +typedef enum +{ + RBI_RFO_LP_MAXPOWER = RADIO_RFO_LP_MAXPOWER, + RBI_RFO_HP_MAXPOWER = RADIO_RFO_HP_MAXPOWER, +} RBI_RFOMaxPowerConfig_TypeDef; + #elif defined(YUNHORN_STS_WLE5CCxx) typedef enum { diff --git a/STM32CubeIDE/.cproject b/STM32CubeIDE/.cproject index 9b9699d..0ec1551 100644 --- a/STM32CubeIDE/.cproject +++ b/STM32CubeIDE/.cproject @@ -26,7 +26,7 @@