@ -13,11 +13,11 @@ uint8_t ee_KeyerMode EEMEM = 1; // Iambic A, Iambic B oder Ultimati
uint8_t ee_SidetoneEnabled EEMEM = 1 ; // Mithörton eingeschaltet
uint8_t ee_WpMBpM EEMEM = 0 ; // WpM oder BpM Anzeige
uint8_t ee_Reverse EEMEM = 0 ; // linkes/rechtes Paddle vertauschen
uint8_t ee_ WinkeyerEnabled EEMEM = 0 ; // Winkeyer Emulation
uint8_t ee_ SpeedRatioEnabled EEMEM = 0 ; // Ratio von der Geschwindigkeit abhängig
uint8_t ee_Ratio EEMEM = 30 ; // Punkt/Strich Verhältnis 1:3
uint8_t ee_Memory EEMEM = 0 ; // Punkt/Strich Speicher
uint16_t ee_SidetoneFreq EEMEM = 600 ; // Frequenz des Mithörtons
uint8_t ee_WpM EEMEM = 12 ; // WpM
uint8_t ee_WpM EEMEM = 12 ; // Geschwindigkeit WpM
uint8_t ee_RiseTime EEMEM = 5 ; // Anstiegszeit Sinuston
uint8_t ee_RiseTimeCounter EEMEM = 5 ; // Anzahl Sinusschwingungen für den Anstieg
uint8_t ee_DebounceTime EEMEM = 6 ; // Entprellzeit für Straight Key Eingang
@ -116,7 +116,7 @@ void WriteEEprom(void)
eeprom_write_byte ( & ee_SidetoneEnabled , bConfig . SidetoneEnabled ) ;
eeprom_write_byte ( & ee_WpMBpM , bConfig . WpMBpM ) ;
eeprom_write_byte ( & ee_Reverse , bConfig . Reverse ) ;
eeprom_write_byte ( & ee_ WinkeyerEnabled, bConfig . Winkeyer Enabled) ;
eeprom_write_byte ( & ee_ SpeedRatioEnabled, bConfig . SpeedRatio Enabled) ;
eeprom_write_byte ( & ee_Ratio , bConfig . Ratio ) ;
eeprom_write_byte ( & ee_Memory , bConfig . Memory ) ;
eeprom_write_byte ( & ee_RiseTime , bConfig . RiseTime ) ;
@ -153,7 +153,7 @@ void SetEEprom(void)
bConfig . SidetoneEnabled = 1 ;
bConfig . WpMBpM = 1 ;
bConfig . Reverse = 0 ;
bConfig . Winkeyer Enabled = 0 ;
bConfig . SpeedRatio Enabled = 0 ;
bConfig . Ratio = 30 ;
bConfig . Memory = 0 ;
bConfig . RiseTime = 5 ;
@ -182,30 +182,13 @@ void ReadEEprom(void)
bConfig . SidetoneEnabled = eeprom_read_byte ( & ee_SidetoneEnabled ) ;
bConfig . WpMBpM = eeprom_read_byte ( & ee_WpMBpM ) ;
bConfig . Reverse = eeprom_read_byte ( & ee_Reverse ) ;
bConfig . WinkeyerEnabled = eeprom_read_byte ( & ee_Winkeyer Enabled) ;
bConfig . SpeedRatioEnabled = eeprom_read_byte ( & ee_SpeedRatio Enabled) ;
bConfig . Ratio = eeprom_read_byte ( & ee_Ratio ) ;
bConfig . Memory = eeprom_read_byte ( & ee_Memory ) ;
bConfig . RiseTime = eeprom_read_byte ( & ee_RiseTime ) ;
bConfig . RiseTimeCounter = eeprom_read_byte ( & ee_RiseTimeCounter ) ;
bConfig . DebounceTime = eeprom_read_byte ( & ee_DebounceTime ) ;
IntEnable ( ) ;
if ( bConfig . WpM > 50 ) {
bConfig . WpM = 15 ;
WriteEEpromWpM ( ) ;
}
if ( bConfig . RiseTime > 10 ) {
bConfig . RiseTime = 10 ;
WriteEEprom ( ) ;
}
if ( bConfig . RiseTimeCounter > 6 ) {
bConfig . RiseTimeCounter = 6 ;
WriteEEprom ( ) ;
}
if ( bConfig . DebounceTime > 22 ) {
bConfig . DebounceTime = 25 ;
WriteEEprom ( ) ;
}
}
/** @brief Aktuelle Einstellungen über serielle Schnittstelle ausgeben
* @ param none
@ -231,7 +214,7 @@ void SerialInfo(void)
SerialWriteString ( sdebug ) ;
sprintf ( sdebug , " Memory : %i \r \n " , bConfig . Memory ) ;
SerialWriteString ( sdebug ) ;
sprintf ( sdebug , " Winkeyer : %i\r \n " , bConfig . Winkeyer Enabled) ;
sprintf ( sdebug , " SpeedRatio : %i\r \n " , bConfig . SpeedRatio Enabled) ;
SerialWriteString ( sdebug ) ;
sprintf ( sdebug , " RiseTime : %i \r \n " , bConfig . RiseTime ) ;
SerialWriteString ( sdebug ) ;