Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file keyboard.c:
- static void keyboardTask(void *pvParameters) {
- UNUSED(pvParameters);
- KyboardCommand command;
- wdtHandle_t wdtHandle = wdtRegister(WatchdogTimeout, keyboardStart, keyboardStop);
- keyboardBrightnessLoad();
- commandQueue = xQueueCreate(CommandQueueuLength, sizeof(KyboardCommand));
- configASSERT(commandQueue);
- while(true) {
- wdtUpdateState(wdtHandle, WdtStateAsleep);
- xQueueReceive(commandQueue, &command, portMAX_DELAY);
- wdtUpdateState(wdtHandle, WdtStateAlive);
- switch(command) {
- default:
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement