diff options
author | Alexander <trotsenkoa@gmail.com> | 2022-06-29 11:03:02 +0300 |
---|---|---|
committer | Alexander <trotsenkoa@gmail.com> | 2022-06-29 11:03:02 +0300 |
commit | 1702ce6ce430a66bb7af51644b91b7c196e719d9 (patch) | |
tree | 6039acbdf047873d32aaf55969286c5f0d55958f /Libraries/NixieDriver/nixie_driver_task.c |
Создаю новый репозиторий. Программа для версии NixieClock_v2. Работает, часы тикают. Есть проблема, что скачет вторая сеносрная кнопка (она в другом канале). Поэтому на нее собираюсь сделать антидребезг.
Diffstat (limited to 'Libraries/NixieDriver/nixie_driver_task.c')
-rw-r--r-- | Libraries/NixieDriver/nixie_driver_task.c | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/Libraries/NixieDriver/nixie_driver_task.c b/Libraries/NixieDriver/nixie_driver_task.c new file mode 100644 index 0000000..18e554c --- /dev/null +++ b/Libraries/NixieDriver/nixie_driver_task.c @@ -0,0 +1,88 @@ +#include "nixie_driver_task.h" +#include "nixie_driver_config.h" +#include "nixie_driver_process.h" + +// FreeRTOS includes +#include "FreeRTOS.h" +#include "task.h" +#include "queue.h" +#include "semphr.h" + + +// ---------------------------------------------------------------------------- +// +// ---------------------------------------------------------------------------- +void NixieDriverInit ( void ) +{ + NixieDriverInitProcess (); + NixieDriverConfig (); +} + + +// ---------------------------------------------------------------------------- +// - , ? +// ---------------------------------------------------------------------------- +void ProcessFSM_NixieDriver ( void ) +{ + vTaskDelay (500); +} + + +// ---------------------------------------------------------------------------- +// , NixieClockSimply +// ---------------------------------------------------------------------------- +void NixieDriver_Task ( void *pvParameters ) +{ + while(1)ProcessFSM_NixieDriver (); + //vTaskDelete(NULL); +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + |