0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +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

View File

@ -19,7 +19,7 @@
#include <stdint.h>
#include "radio.h"
//#include "radio.h"
extern const uint32_t bx_start1_Hz;
extern const uint32_t bx_stop1_Hz;
@ -38,9 +38,31 @@ enum FREQUENCY_Band_t
BAND6_400MHz,
BAND7_470MHz
};
typedef enum FREQUENCY_Band_t FREQUENCY_Band_t;
#if 0
enum STEP_Setting_t {
STEP_2_5kHz = 0,
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 = 0,
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;
extern const uint32_t LowerLimitFrequencyBandTable[7];
extern const uint32_t MiddleFrequencyBandTable[7];
extern const uint32_t UpperLimitFrequencyBandTable[7];