mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-27 22:01:26 +03:00
Added AIRCOPY frequency value variable
This commit is contained in:
parent
1ac09b09f0
commit
ec7f30ed96
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -18,6 +18,9 @@
|
||||
#include "misc.h"
|
||||
#include "settings.h"
|
||||
|
||||
// the initial AIRCOPY frequency to use
|
||||
const uint32_t g_air_copy_freq = 41002500;
|
||||
|
||||
// the BK4819 has 2 bands it covers, 18MHz ~ 630MHz and 760MHz ~ 1300MHz
|
||||
const freq_band_table_t BX4819_band1 = { 1800000, 63000000};
|
||||
const freq_band_table_t BX4819_band2 = {84000000, 130000000};
|
||||
|
@ -19,11 +19,15 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "frequencies.h"
|
||||
|
||||
typedef struct {
|
||||
const uint32_t lower;
|
||||
const uint32_t upper;
|
||||
} freq_band_table_t;
|
||||
|
||||
extern const uint32_t g_air_copy_freq;
|
||||
|
||||
extern const freq_band_table_t BX4819_band1;
|
||||
extern const freq_band_table_t BX4819_band2;
|
||||
|
||||
|
@ -80,7 +80,7 @@ void BOOT_ProcessMode(boot_mode_t Mode)
|
||||
g_eeprom.key2_short_press_action = ACTION_OPT_NONE;
|
||||
g_eeprom.key2_long_press_action = ACTION_OPT_NONE;
|
||||
|
||||
RADIO_InitInfo(g_rx_vfo, FREQ_CHANNEL_LAST - 1, 41002500);
|
||||
RADIO_InitInfo(g_rx_vfo, FREQ_CHANNEL_LAST - 1, g_air_copy_freq);
|
||||
|
||||
g_rx_vfo->channel_bandwidth = BANDWIDTH_WIDE;
|
||||
g_rx_vfo->output_power = OUTPUT_POWER_LOW;
|
||||
|
Loading…
x
Reference in New Issue
Block a user