FreeRTOS: Task monitoring.

This commit is contained in:
RedHawk
2023-05-12 17:23:27 +03:00
parent 3012ee1b20
commit feb2a3d08d
2 changed files with 25 additions and 1 deletions

View File

@@ -29,3 +29,16 @@ int main(void)
return 1;
}
extern "C"
{
void
vConfigureTimerForRunTimeStats (void)
{
Chip_SCT_Init (LPC_SCT1);
LPC_SCT1->CONFIG = SCT_CONFIG_32BIT_COUNTER;
LPC_SCT1->CTRL_U = SCT_CTRL_PRE_L (255)
| SCT_CTRL_CLRCTR_L; // set prescaler to 256 (255 +
// 1), and start timer
}
}