diff --git a/.gitignore b/.gitignore index a220ddd..bdc3590 100644 --- a/.gitignore +++ b/.gitignore @@ -6,12 +6,20 @@ *.o *.ko *.obj -*.elf - +*.e1f +*.axf +*.de +*.cyclo +*.list +*.mk +*.settings.xml +*.mk # Linker output *.ilk *.map *.exp +*.list +*.su # Precompiled Headers *.gch @@ -29,25 +37,51 @@ *.so.* *.dylib + # Executables *.exe *.out *.app *.i*86 *.x86_64 +*.dep +*.d +*.o +*.dp +*.lst +*.elf +*.build_log +*.build_log.htm + # Debug files *.dSYM/ *.su *.idb *.pdb +*.dbgconf +*.uvguix.lenovo +*.uvoptx +*.uvprojx +*.build_log.htm +*.htm +*.map +*.lnp +*.sct +*.crf +*.lst + # Kernel Module Compile Results *.mod* *.cmd +*.htm +*.html .tmp_versions/ modules.order Module.symvers Mkfile.old dkms.conf +*.cyclo +*.settings.* diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index b24c035..52d0748 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -290,7 +290,7 @@ static LmHandlerParams_t LmHandlerParams = /** * @brief Type of Event to generate application Tx */ -static TxEventType_t EventType = TX_ON_TIMER; +static TxEventType_t EventType = TX_ON_TIMER; //TX_ON_EVENT; /** * @brief Timer to handle the application Tx @@ -557,8 +557,8 @@ static void SendTxData(void) sensor_t sensor_data; UTIL_TIMER_Time_t nextTxIn = 0; //HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_RESET); /* PME OFF */ - HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_SET); /* PME ON */ - HAL_GPIO_WritePin(GPIOB, GPIO_PIN_2, GPIO_PIN_SET); /* LED ON */ + //HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_SET); /* PME ON */ + //HAL_GPIO_WritePin(GPIOB, GPIO_PIN_2, GPIO_PIN_SET); /* LED ON */ if (LmHandlerIsBusy() == false) { #ifdef CAYENNE_LPP @@ -664,8 +664,8 @@ static void SendTxData(void) UTIL_TIMER_SetPeriod(&TxTimer, MAX(nextTxIn, TxPeriodicity)); UTIL_TIMER_Start(&TxTimer); } - HAL_GPIO_WritePin(GPIOB, GPIO_PIN_2, GPIO_PIN_RESET); /* LED OFF */ - HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_RESET); /* PME OFF */ + //HAL_GPIO_WritePin(GPIOB, GPIO_PIN_2, GPIO_PIN_RESET); /* LED OFF */ + //HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_RESET); /* PME OFF */ /* USER CODE END SendTxData_1 */ } @@ -674,8 +674,11 @@ static void OnTxTimerEvent(void *context) /* USER CODE BEGIN OnTxTimerEvent_1 */ /* USER CODE END OnTxTimerEvent_1 */ + __HAL_RCC_GPIOB_CLK_ENABLE(); + HAL_GPIO_WritePin(GPIOB,GPIO_PIN_4,GPIO_PIN_SET); UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0); - + HAL_Delay(2000); + HAL_GPIO_WritePin(GPIOB,GPIO_PIN_4,GPIO_PIN_RESET); /*Wait for next tx slot*/ UTIL_TIMER_Start(&TxTimer); /* USER CODE BEGIN OnTxTimerEvent_2 */ diff --git a/README.md b/README.md index 69fde76..70d15d7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # STS_E5CC -E5CC port from STM32WL55JCIX \ No newline at end of file +E5CC port from STM32WL55JCIX + +2024-07-02 start of low power on CR2450 diff --git a/STM32CubeIDE/.cproject b/STM32CubeIDE/.cproject index c779788..de781fb 100644 --- a/STM32CubeIDE/.cproject +++ b/STM32CubeIDE/.cproject @@ -23,7 +23,7 @@