kopia lustrzana https://github.com/OpenRTX/OpenRTX
Remove old band and limits defines, now replaced by hwInfo_t
rodzic
01b4a98f85
commit
c653535e68
|
@ -23,16 +23,6 @@
|
||||||
|
|
||||||
#include "MK22F51212.h"
|
#include "MK22F51212.h"
|
||||||
|
|
||||||
/* Supported radio bands */
|
|
||||||
#define BAND_VHF
|
|
||||||
#define BAND_UHF
|
|
||||||
|
|
||||||
/* Band limits in Hz */
|
|
||||||
#define FREQ_LIMIT_VHF_LO 136000000
|
|
||||||
#define FREQ_LIMIT_VHF_HI 174000000
|
|
||||||
#define FREQ_LIMIT_UHF_LO 400000000
|
|
||||||
#define FREQ_LIMIT_UHF_HI 470000000
|
|
||||||
|
|
||||||
/* Screen dimensions */
|
/* Screen dimensions */
|
||||||
#define SCREEN_WIDTH 128
|
#define SCREEN_WIDTH 128
|
||||||
#define SCREEN_HEIGHT 64
|
#define SCREEN_HEIGHT 64
|
||||||
|
|
|
@ -69,12 +69,12 @@ void platform_init()
|
||||||
memset(&calibration, 0x00, sizeof(gdxCalibration_t));
|
memset(&calibration, 0x00, sizeof(gdxCalibration_t));
|
||||||
|
|
||||||
/* Initialise hardware information structure */
|
/* Initialise hardware information structure */
|
||||||
hwInfo.uhf_maxFreq = FREQ_LIMIT_UHF_HI/1000000;
|
hwInfo.vhf_maxFreq = 174;
|
||||||
hwInfo.uhf_minFreq = FREQ_LIMIT_UHF_LO/1000000;
|
hwInfo.vhf_minFreq = 136;
|
||||||
hwInfo.vhf_maxFreq = FREQ_LIMIT_VHF_HI/1000000;
|
|
||||||
hwInfo.vhf_minFreq = FREQ_LIMIT_VHF_LO/1000000;
|
|
||||||
hwInfo.uhf_band = 1;
|
|
||||||
hwInfo.vhf_band = 1;
|
hwInfo.vhf_band = 1;
|
||||||
|
hwInfo.uhf_maxFreq = 470;
|
||||||
|
hwInfo.uhf_minFreq = 400;
|
||||||
|
hwInfo.uhf_band = 1;
|
||||||
hwInfo.lcd_type = 0;
|
hwInfo.lcd_type = 0;
|
||||||
memcpy(hwInfo.name, "DM-1801", 7);
|
memcpy(hwInfo.name, "DM-1801", 7);
|
||||||
hwInfo.name[7] = '\0';
|
hwInfo.name[7] = '\0';
|
||||||
|
|
|
@ -23,16 +23,6 @@
|
||||||
|
|
||||||
#include "MK22F51212.h"
|
#include "MK22F51212.h"
|
||||||
|
|
||||||
/* Supported radio bands */
|
|
||||||
#define BAND_VHF
|
|
||||||
#define BAND_UHF
|
|
||||||
|
|
||||||
/* Band limits in Hz */
|
|
||||||
#define FREQ_LIMIT_VHF_LO 136000000
|
|
||||||
#define FREQ_LIMIT_VHF_HI 174000000
|
|
||||||
#define FREQ_LIMIT_UHF_LO 400000000
|
|
||||||
#define FREQ_LIMIT_UHF_HI 470000000
|
|
||||||
|
|
||||||
/* Screen dimensions */
|
/* Screen dimensions */
|
||||||
#define SCREEN_WIDTH 128
|
#define SCREEN_WIDTH 128
|
||||||
#define SCREEN_HEIGHT 64
|
#define SCREEN_HEIGHT 64
|
||||||
|
|
|
@ -68,12 +68,12 @@ void platform_init()
|
||||||
memset(&calibration, 0x00, sizeof(gdxCalibration_t));
|
memset(&calibration, 0x00, sizeof(gdxCalibration_t));
|
||||||
|
|
||||||
/* Initialise hardware information structure */
|
/* Initialise hardware information structure */
|
||||||
hwInfo.uhf_maxFreq = FREQ_LIMIT_UHF_HI/1000000;
|
hwInfo.vhf_maxFreq = 174;
|
||||||
hwInfo.uhf_minFreq = FREQ_LIMIT_UHF_LO/1000000;
|
hwInfo.vhf_minFreq = 136;
|
||||||
hwInfo.vhf_maxFreq = FREQ_LIMIT_VHF_HI/1000000;
|
|
||||||
hwInfo.vhf_minFreq = FREQ_LIMIT_VHF_LO/1000000;
|
|
||||||
hwInfo.uhf_band = 1;
|
|
||||||
hwInfo.vhf_band = 1;
|
hwInfo.vhf_band = 1;
|
||||||
|
hwInfo.uhf_maxFreq = 470;
|
||||||
|
hwInfo.uhf_minFreq = 400;
|
||||||
|
hwInfo.uhf_band = 1;
|
||||||
hwInfo.lcd_type = 0;
|
hwInfo.lcd_type = 0;
|
||||||
memcpy(hwInfo.name, "GD-77", 5);
|
memcpy(hwInfo.name, "GD-77", 5);
|
||||||
hwInfo.name[5] = '\0';
|
hwInfo.name[5] = '\0';
|
||||||
|
|
|
@ -31,16 +31,6 @@
|
||||||
/* Device has a channel selection knob */
|
/* Device has a channel selection knob */
|
||||||
#define HAS_ABSOLUTE_KNOB
|
#define HAS_ABSOLUTE_KNOB
|
||||||
|
|
||||||
/* Supported radio bands */
|
|
||||||
#define BAND_VHF
|
|
||||||
#define BAND_UHF
|
|
||||||
|
|
||||||
/* Band limits in Hz */
|
|
||||||
#define FREQ_LIMIT_VHF_LO 136000000
|
|
||||||
#define FREQ_LIMIT_VHF_HI 174000000
|
|
||||||
#define FREQ_LIMIT_UHF_LO 400000000
|
|
||||||
#define FREQ_LIMIT_UHF_HI 480000000
|
|
||||||
|
|
||||||
/* Screen dimensions */
|
/* Screen dimensions */
|
||||||
#define SCREEN_WIDTH 160
|
#define SCREEN_WIDTH 160
|
||||||
#define SCREEN_HEIGHT 128
|
#define SCREEN_HEIGHT 128
|
||||||
|
|
|
@ -29,16 +29,6 @@
|
||||||
/* Device supports an optional GPS chip */
|
/* Device supports an optional GPS chip */
|
||||||
#define HAS_GPS
|
#define HAS_GPS
|
||||||
|
|
||||||
/* Supported radio bands */
|
|
||||||
#define BAND_VHF
|
|
||||||
#define BAND_UHF
|
|
||||||
|
|
||||||
/* Band limits in Hz */
|
|
||||||
#define FREQ_LIMIT_VHF_LO 136000000
|
|
||||||
#define FREQ_LIMIT_VHF_HI 174000000
|
|
||||||
#define FREQ_LIMIT_UHF_LO 400000000
|
|
||||||
#define FREQ_LIMIT_UHF_HI 480000000
|
|
||||||
|
|
||||||
/* Screen dimensions */
|
/* Screen dimensions */
|
||||||
#define SCREEN_WIDTH 128
|
#define SCREEN_WIDTH 128
|
||||||
#define SCREEN_HEIGHT 64
|
#define SCREEN_HEIGHT 64
|
||||||
|
|
|
@ -61,14 +61,14 @@ void platform_init()
|
||||||
|
|
||||||
spi2_init();
|
spi2_init();
|
||||||
|
|
||||||
/* TODO temporary initialisation */
|
/* TODO: Hardcode hwInfo until we implement reading from flash */
|
||||||
memset(&hwInfo, 0x00, sizeof(hwInfo));
|
memset(&hwInfo, 0x00, sizeof(hwInfo));
|
||||||
hwInfo.uhf_maxFreq = FREQ_LIMIT_UHF_HI/1000000;
|
hwInfo.vhf_maxFreq = 174;
|
||||||
hwInfo.uhf_minFreq = FREQ_LIMIT_UHF_LO/1000000;
|
hwInfo.vhf_minFreq = 136;
|
||||||
hwInfo.vhf_maxFreq = FREQ_LIMIT_VHF_HI/1000000;
|
|
||||||
hwInfo.vhf_minFreq = FREQ_LIMIT_VHF_LO/1000000;
|
|
||||||
hwInfo.uhf_band = 1;
|
|
||||||
hwInfo.vhf_band = 1;
|
hwInfo.vhf_band = 1;
|
||||||
|
hwInfo.uhf_maxFreq = 480;
|
||||||
|
hwInfo.uhf_minFreq = 400;
|
||||||
|
hwInfo.uhf_band = 1;
|
||||||
hwInfo.lcd_type = 0;
|
hwInfo.lcd_type = 0;
|
||||||
memcpy(hwInfo.name, "MD-9600", 7);
|
memcpy(hwInfo.name, "MD-9600", 7);
|
||||||
hwInfo.name[8] = '\0';
|
hwInfo.name[8] = '\0';
|
||||||
|
|
|
@ -28,16 +28,6 @@
|
||||||
/* Device supports an optional GPS chip */
|
/* Device supports an optional GPS chip */
|
||||||
#define HAS_GPS
|
#define HAS_GPS
|
||||||
|
|
||||||
/* Supported radio bands */
|
|
||||||
#define BAND_VHF
|
|
||||||
#define BAND_UHF
|
|
||||||
|
|
||||||
/* Band limits in Hz */
|
|
||||||
#define FREQ_LIMIT_VHF_LO 136000000
|
|
||||||
#define FREQ_LIMIT_VHF_HI 174000000
|
|
||||||
#define FREQ_LIMIT_UHF_LO 400000000
|
|
||||||
#define FREQ_LIMIT_UHF_HI 480000000
|
|
||||||
|
|
||||||
/* Screen dimensions */
|
/* Screen dimensions */
|
||||||
#define SCREEN_WIDTH 160
|
#define SCREEN_WIDTH 160
|
||||||
#define SCREEN_HEIGHT 128
|
#define SCREEN_HEIGHT 128
|
||||||
|
|
|
@ -24,16 +24,6 @@
|
||||||
/* Device supports an optional GPS chip */
|
/* Device supports an optional GPS chip */
|
||||||
#define HAS_GPS
|
#define HAS_GPS
|
||||||
|
|
||||||
/* Supported radio bands */
|
|
||||||
#define BAND_VHF
|
|
||||||
#define BAND_UHF
|
|
||||||
|
|
||||||
/* Band limits in Hz */
|
|
||||||
#define FREQ_LIMIT_VHF_LO 136000000
|
|
||||||
#define FREQ_LIMIT_VHF_HI 174000000
|
|
||||||
#define FREQ_LIMIT_UHF_LO 400000000
|
|
||||||
#define FREQ_LIMIT_UHF_HI 480000000
|
|
||||||
|
|
||||||
/* Battery type */
|
/* Battery type */
|
||||||
#define BAT_LIPO_2S
|
#define BAT_LIPO_2S
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue