0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 14:48:03 +03:00

Update RADIO_InitInfo() so that things match up rather than fixed numerical constants

This commit is contained in:
OneOfEleven
2023-10-02 10:05:15 +01:00
parent 3c7f496f3e
commit ec33203403
8 changed files with 29 additions and 37 deletions

29
radio.h
View File

@ -21,6 +21,7 @@
#include <stdint.h>
#include "dcs.h"
#include "frequencies.h"
enum {
MR_CH_BAND_MASK = 0x0F << 0,
@ -47,35 +48,8 @@ enum PTT_ID_t {
PTT_ID_EOT,
PTT_ID_BOTH
};
typedef enum PTT_ID_t PTT_ID_t;
#if 0
enum STEP_Setting_t
{
STEP_2_5kHz,
STEP_5_0kHz,
STEP_6_25kHz,
STEP_10_0kHz,
STEP_12_5kHz,
STEP_25_0kHz,
STEP_8_33kHz
};
#else
enum STEP_Setting_t
{
STEP_1_25kHz,
STEP_2_5kHz,
STEP_6_25kHz,
STEP_10_0kHz,
STEP_12_5kHz,
STEP_25_0kHz,
STEP_8_33kHz
};
#endif
typedef enum STEP_Setting_t STEP_Setting_t;
enum VfoState_t
{
VFO_STATE_NORMAL = 0,
@ -86,7 +60,6 @@ enum VfoState_t
VFO_STATE_ALARM,
VFO_STATE_VOLTAGE_HIGH
};
typedef enum VfoState_t VfoState_t;
typedef struct