mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-06-23 05:44:26 -04:00
EEPROM configuration
This commit is contained in:
parent
b3b1a9b253
commit
474f3ad4d2
13 changed files with 429 additions and 131 deletions
11
device.h
11
device.h
|
@ -3,6 +3,10 @@
|
|||
#ifndef DEVICE_CONFIGURATION
|
||||
#define DEVICE_CONFIGURATION
|
||||
|
||||
// Version info
|
||||
#define MAJ_VERSION 0x01
|
||||
#define MIN_VERSION 0x00
|
||||
|
||||
// CPU settings
|
||||
#define TARGET_CPU m1284p
|
||||
#define F_CPU 20000000UL
|
||||
|
@ -10,12 +14,12 @@
|
|||
|
||||
// Voltage references
|
||||
// TODO: Determine best defaults
|
||||
#define CONFIG_ADC_REF 255
|
||||
#define CONFIG_ADC_REF 128
|
||||
#define CONFIG_DAC_REF 128
|
||||
|
||||
// TODO: Change this back to default
|
||||
#define CONFIG_LED_INTENSITY 35
|
||||
//#define CONFIG_LED_INTENSITY 192
|
||||
#define CONFIG_LED_INTENSITY 37
|
||||
#define CONFIG_COM_LED_TIMEOUT_MS 40
|
||||
#define CONFIG_LED_UPDATE_INTERVAL_MS 40
|
||||
|
||||
|
@ -34,7 +38,8 @@
|
|||
|
||||
// CSMA Settings
|
||||
#define CONFIG_FULL_DUPLEX false // TODO: Actually implement fdx
|
||||
#define CONFIG_CSMA_P 255
|
||||
#define CONFIG_CSMA_P_DEFAULT 255
|
||||
#define CONFIG_CSMA_SLOTTIME_DEFAULT 20
|
||||
|
||||
#define AX25_MIN_FRAME_LEN 1
|
||||
#define AX25_MAX_FRAME_LEN 611
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue