OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
flags.h File Reference

Define flags for various features/options. More...

Go to the source code of this file.

Macros

#define OSCR_FLAGS_H_
#define LANG_EN   1
#define LANG_JA   2
#define LANG_MIN   1
#define LANG_MAX   1
#define REGN_AUTO   0 /* Auto/Global */
#define REGN_NA   1 /* North America */
#define REGN_EU   2 /* Europe */
#define REGN_AS   3 /* Asia */
#define REGN_AF   4 /* Africa */
#define REGN_OC   5 /* Oceania */
#define REGN_SA   6 /* South America */
#define REGN_AN   7 /* Antarctica (for completeness) */
#define REGN_MIN   0
#define REGN_MAX   7
#define UNQDIR_AUTO   0
#define UNQDIR_INCREMENT   1
#define UNQDIR_RTC   2
#define UNQDIR_BOTH   3
#define POWERSAVING_DISPLAY_DIM   1
#define POWERSAVING_DISPLAY_OFF   2
#define POWERSAVING_SLOWCLOCK   4
#define POWERSAVING_CARTBUS_OFF   8
#define PRFOPT_CRC32   1
#define PRFOPT_FILEWR   2
#define PRFOPT_FILERD   4
#define PRFOPT_SHRDFILE   8
#define PRFOPT_FAST64   16
#define PRFOPT_SPEEDORDEATH   32
#define RTCOPT_DS3231   1
#define RTCOPT_DS1307   2
#define OUTPUT_SERIAL   0
#define OUTPUT_SSD1306   1
#define OUTPUT_OS12864   2
#define SERIAL_ASCII   1
#define SERIAL_ANSI   2
#define LCD_MKS   1
#define LCD_BTT   2
#define LCD_SSRETRO   2
#define NPXL_AUTO   0
#define NPXL_NORMAL   1
#define NPXL_REVERSE   2
#define VLTSPC_NONE   0
#define VLTSPC_PROMPT   1
#define VLTSPC_TITLE   2
#define VLTSPC_BOTH   3
#define INPUT_SERIAL   0
#define INPUT_1BUTTON   1
#define INPUT_2BUTTON   2
#define INPUT_ROTARY   3
#define SMSOPT_SMS_ADAPTER_ALL   0
#define SMSOPT_SMS_ADAPTER_HW5   1
#define SMSOPT_SMS_ADAPTER_RAPHNET   1
#define SMSOPT_SMS_ADAPTER_RETRODE   2
#define SMSOPT_SMS_ADAPTER_RETRON   3
#define SMSOPT_GG_ADAPTER_ALL   0
#define SMSOPT_GG_ADAPTER_RETRODE   1
#define SMSOPT_GG_ADAPTER_HW5   2
#define SMSOPT_GG_ADAPTER_RETRON   2
#define SMSOPT_GG_ADAPTER_STARSHADE   2
#define SMSOPT_GG_ADAPTER_ALL   0
#define SMSOPT_GG_ADAPTER_RAPHNET   1

Detailed Description

Define flags for various features/options.

Define the preprocessor constants for various options.

Note
These are mainly for use in the config file.
Warning
As the updater uses these values, you should NOT change them, unless it is absolutely neccessary, such as when splitting a feature into two or more.
See also
core-types.h

Macro Definition Documentation

◆ INPUT_SERIAL

#define INPUT_SERIAL   0

Input Interfaces

◆ LANG_EN

#define LANG_EN   1

Language IDs

When adding new languages, use the ISO-639 2-character code.

See also
https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes

◆ LANG_MIN

#define LANG_MIN   1

Range of language IDs.

Preprocess define for the IDs of supported languages.

When adding/implementing a new language, update LANG_MAX.

Note
These probably shouldn't be here, but I placed them here so that adding a language is simple as reasonably possible.

◆ LCD_MKS

#define LCD_MKS   1

LCD Options

◆ NPXL_AUTO

#define NPXL_AUTO   0

NeoPixel Options

◆ OUTPUT_SERIAL

#define OUTPUT_SERIAL   0

Output Interfaces

◆ POWERSAVING_DISPLAY_DIM

#define POWERSAVING_DISPLAY_DIM   1

Power Saving

◆ PRFOPT_CRC32

#define PRFOPT_CRC32   1

Performance Optimization Flags

◆ REGN_AUTO

#define REGN_AUTO   0 /* Auto/Global */

Region IDs

The original order of these was decided based on simplifying the preprocessor statements.

◆ REGN_MIN

#define REGN_MIN   0

Range of region IDs.

Preprocess define for the IDs of supported regions.

◆ RTCOPT_DS3231

#define RTCOPT_DS3231   1

Performance Optimization Flags

◆ SERIAL_ASCII

#define SERIAL_ASCII   1

Serial Output Options

◆ SMSOPT_GG_ADAPTER_ALL [1/2]

#define SMSOPT_GG_ADAPTER_ALL   0

[Core] SMS - GG Adapter Types

[Core] SMS - SG-1000 Adapter Types

◆ SMSOPT_GG_ADAPTER_ALL [2/2]

#define SMSOPT_GG_ADAPTER_ALL   0

[Core] SMS - GG Adapter Types

[Core] SMS - SG-1000 Adapter Types

◆ SMSOPT_SMS_ADAPTER_ALL

#define SMSOPT_SMS_ADAPTER_ALL   0

[Core] SMS - SMS Adapter Types

◆ UNQDIR_AUTO

#define UNQDIR_AUTO   0

Unique Directory Methods

◆ VLTSPC_NONE

#define VLTSPC_NONE   0

Voltage Specifier Options