Temporary hand-filled hwInfo for MD-9600
This commit is contained in:
parent
a15159e7ce
commit
f9570f3636
12
meson.build
12
meson.build
|
|
@ -124,6 +124,7 @@ stm32f405_src = ['platform/mcu/STM32F4xx/boot/startup.cpp',
|
|||
'platform/mcu/STM32F4xx/drivers/usb_vcom.c',
|
||||
'platform/mcu/STM32F4xx/drivers/delays.cpp',
|
||||
'platform/mcu/STM32F4xx/drivers/rtc.c',
|
||||
'platform/mcu/STM32F4xx/drivers/SPI2.c',
|
||||
'platform/mcu/CMSIS/Device/ST/STM32F4xx/Source/system_stm32f4xx.c']
|
||||
|
||||
stm32f405_inc = ['platform/mcu/CMSIS/Include',
|
||||
|
|
@ -224,8 +225,15 @@ mduv3x0_def = def + stm32f405_def + {'PLATFORM_MDUV3x0': '', 'timegm': 'mktime'}
|
|||
## TYT MD-9600
|
||||
##
|
||||
md9600_src = src + stm32f405_src + ['platform/targets/MD-9600/platform.c',
|
||||
'platform/drivers/tones/toneGenerator_MDx.cpp',
|
||||
'platform/drivers/keyboard/keyboard_MD9600.c']
|
||||
'platform/drivers/display/ST7567_MD9600.c',
|
||||
'platform/drivers/keyboard/keyboard_MD9600.c',
|
||||
'platform/drivers/tones/toneGenerator_MDx.c',
|
||||
'platform/drivers/NVM/nvmem_MD9600.c',
|
||||
'platform/drivers/baseband/radio_MD9600.c',
|
||||
'platform/drivers/NVM/W25Qx.c',
|
||||
'platform/drivers/ADC/ADC1_MDx.c',
|
||||
'platform/drivers/GPS/GPS_MDx.cpp',
|
||||
'platform/drivers/NVM/spiFlash_MD9600.c']
|
||||
|
||||
md9600_inc = inc + stm32f405_inc + ['platform/targets/MD-9600']
|
||||
md9600_def = def + stm32f405_def + {'PLATFORM_MD9600': ''}
|
||||
|
|
|
|||
|
|
@ -61,8 +61,17 @@ void platform_init()
|
|||
|
||||
spi2_init();
|
||||
|
||||
|
||||
/* TODO temporary initialisation */
|
||||
memset(&hwInfo, 0x00, sizeof(hwInfo));
|
||||
hwInfo.uhf_maxFreq = FREQ_LIMIT_UHF_HI/1000000;
|
||||
hwInfo.uhf_minFreq = FREQ_LIMIT_UHF_LO/1000000;
|
||||
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.lcd_type = 0;
|
||||
memcpy(hwInfo.name, "MD-9600", 7);
|
||||
hwInfo.name[8] = '\0';
|
||||
|
||||
nvm_init(); /* Initialise non volatile memory manager */
|
||||
toneGen_init(); /* Initialise tone generator */
|
||||
|
|
|
|||
Loading…
Reference in New Issue