Question
How to add new sequencer
Hello everyone, I am working with 3 stm32wl55JC module. 1 is receiver the other 2 is transmitter. The code has
UTIL_SEQ_RegTask((1 << CFG_SEQ_Task_Sensor_Process), 0, Sensor_Process);I want to add another task which needs to work as endless loop. The task is accelerometer and it works at 20Hz.
UTIL_TIMER_Create(&accelMovementTimer,0xFFFFFFFF,UTIL_TIMER_PERIODIC,movement_Process,NULL);
UTIL_TIMER_SetPeriod(&accelMovementTimer,10); //10ms
UTIL_TIMER_Start(&accelMovementTimer);I can get this task work with timer but I want to use sequencer. So I added this on utilities_def.h
typedef enum
{
CFG_SEQ_Task_Sensor_Process,
/* USER CODE BEGIN CFG_SEQ_Task_Id_t */
CFG_SEQ_Task_movement_Process,
/* USER CODE END CFG_SEQ_Task_Id_t */
CFG_SEQ_Task_NBR
} CFG_SEQ_Task_Id_t;and this line on subghz_phy_app.c
UTIL_SEQ_RegTask((1 << CFG_SEQ_Task_movement_Process), 0, movement_Process);My question is how can I add this task properly ?
