init работает
This commit is contained in:
26
Core/Clock/clock_manager.h
Normal file
26
Core/Clock/clock_manager.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef CLOCK_MANAGER_H
|
||||
#define CLOCK_MANAGER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "main.h" // где определен time_t
|
||||
|
||||
// Инициализация
|
||||
void ClockManager_Init(void);
|
||||
|
||||
// Получить текущее время из RTC
|
||||
time_t ClockManager_GetTime(void);
|
||||
|
||||
// Установить время в RTC
|
||||
void ClockManager_SetTime(uint8_t hour, uint8_t min, uint8_t sec);
|
||||
|
||||
// Получить яркость (0-10)
|
||||
uint8_t ClockManager_GetDuty(void);
|
||||
|
||||
// Установить яркость (0-10) и сохранить
|
||||
void ClockManager_SetDuty(uint8_t value);
|
||||
|
||||
// Сброс времени на 00:00:00
|
||||
void ClockManager_ResetTime(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user