OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
Settings.h
1/********************************************************************
2* Open Source Cartridge Reader *
3********************************************************************/
4#pragma once
5#ifndef OSCR_SETTINGS_H_
6#define OSCR_SETTINGS_H_
7
8#include "syslibinc.h"
9#include "config.h"
10
11namespace OSCR::Settings
12{
13 enum class MenuOption : uint8_t
14 {
15# if defined(ENABLE_RTC)
16 SetRTC,
17# endif /* ENABLE_RTC */
18
19# if defined(ENABLE_VSELECT)
20 Voltage,
21# endif /* ENABLE_VSELECT */
22
23# if defined(ENABLE_SELFTEST)
24 SelfTest,
25# endif /* ENABLE_SELFTEST */
26
27# if defined(OPTION_CLOCKGEN_CALIBRATION)
28 Calibration,
29# endif /* OPTION_CLOCKGEN_CALIBRATION */
30 About,
31 Back,
32 };
33
34 extern char const PROGMEM menuOptionSetRTC[];
35 extern char const PROGMEM menuOptionVoltage[];
36 extern char const PROGMEM menuOptionCalibration[];
37
38 extern char const * const PROGMEM menuOptions[];
39
40 extern uint8_t const kMenuOptionCount;
41
42 void menu();
43} /* namespace OSCR::Settings */
44
45#endif/* OSCR_SETTINGS_H_ */