Reduce task's context size
Since RTC ans STK timestamps are now different, they don't need to be as big and be can safely reduce their size to 24 bits to save space
This commit is contained in:
parent
8540e2e21f
commit
b893a0283f
@ -165,3 +165,4 @@ static void callback_rtc(void)
|
|||||||
bkp_set_rtc_alam(1);
|
bkp_set_rtc_alam(1);
|
||||||
pwr_configure_bkp_write(false);
|
pwr_configure_bkp_write(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -47,10 +47,10 @@ enum TaskTrigger {
|
|||||||
* struct
|
* struct
|
||||||
*/
|
*/
|
||||||
struct TaskState {
|
struct TaskState {
|
||||||
uint32_t timestamp; //timestamp at wich to wakeup the task, if any
|
uint32_t timestamp:24; //timestamp at wich to wakeup the task, if any
|
||||||
uint8_t count:5; //task counter: active step of task
|
uint32_t count:5; //task counter: active step of task
|
||||||
enum TaskTrigger trigger:2; //triggers on wich to execute the task
|
enum TaskTrigger trigger:2; //triggers on wich to execute the task
|
||||||
uint8_t timeout_mode:1; //whether the timestamp is a timeout or a delay
|
uint32_t timeout_mode:1; //whether the timestamp is a timeout or a delay
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user