init работает

This commit is contained in:
2026-04-12 10:50:01 +03:00
commit 76bbd4a539
1010 changed files with 600193 additions and 0 deletions

30
Core/Clock/menu.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef MENU_H
#define MENU_H
#include <stdint.h>
#include <stdbool.h>
#include "main.h"
typedef enum {
BUTTON_UP,
BUTTON_DOWN,
BUTTON_SELECT,
BUTTON_BACK,
BUTTON_COUNT
} Button_Type;
typedef enum {
STATE_CLOCK, // режим часов
STATE_MAIN_MENU, // главное меню (выбор пункта)
STATE_SET_TIME, // настройка времени
STATE_SET_DUTY, // настройка яркости
STATE_RESET_CONFIRM // подтверждение сброса
} SystemState;
// Чтение кнопки (реализуется в main.c или hal)
int ReadButton(int btn);
void Menu_Init(void);
void Menu_Process(void);
#endif