Define constant for "dipswitch" positions

This commit is contained in:
John Stäck 2019-07-25 07:50:29 +02:00
parent 7b179d4343
commit 671dfe9b2c
5 changed files with 87 additions and 72 deletions

View file

@ -1,7 +1,8 @@
#ifndef __SETTINGS_H
#define __SETTINGS_H
#include <stdint.h>
// EEPROM addresses for settings
#define VERSION_ADDR 0
#define BREATH_THR_ADDR 2
@ -61,6 +62,15 @@
#define DAC_MODE_BREATH 0
#define DAC_MODE_PITCH 1
#define DIPSW_FASTBOOT 0
#define DIPSW_LEGACY 1
#define DIPSW_LEGACYBRACT 2
#define DIPSW_SLOWMIDI 3
#define DIPSW_GATEOPEN 4
#define DIPSW_SPKEYENABLE 5
#define DIPSW_BCASMODE 6
//"factory" values for settings
#define EEPROM_VERSION 32
#define BREATH_THR_FACTORY 1400
@ -112,6 +122,7 @@
bool readEEPROM();
void setBit(uint16_t &bitfield, const uint8_t pos, const uint16_t value);
#endif