kopia lustrzana https://github.com/OpenRTX/OpenRTX
removed obsolete code
rodzic
fcf2dcc6a0
commit
ab21e6098a
|
@ -136,7 +136,7 @@ void M17FrameDecoder::decodeStream(const std::array< uint8_t, 46 >& data)
|
||||||
// Mark this segment as present
|
// Mark this segment as present
|
||||||
lsfSegmentMap |= 1 << segmentNum;
|
lsfSegmentMap |= 1 << segmentNum;
|
||||||
|
|
||||||
// Check if we have received all the five LICH segments
|
// Check if we have received all the six LICH segments
|
||||||
if(lsfSegmentMap == 0x3F)
|
if(lsfSegmentMap == 0x3F)
|
||||||
{
|
{
|
||||||
if(lsfFromLich.valid()) lsf = lsfFromLich;
|
if(lsfFromLich.valid()) lsf = lsfFromLich;
|
||||||
|
|
|
@ -97,12 +97,6 @@ void platform_init()
|
||||||
|
|
||||||
i2c_init(&i2c1, i2cSpeed);
|
i2c_init(&i2c1, i2cSpeed);
|
||||||
|
|
||||||
/* Set analog output for baseband signal to an idle level of 1.1V */
|
|
||||||
gpio_setMode(BASEBAND_TX, ANALOG);
|
|
||||||
RCC->APB1ENR |= RCC_APB1ENR_DACEN;
|
|
||||||
DAC->CR |= DAC_CR_EN1;
|
|
||||||
DAC->DHR12R1 = 1365;
|
|
||||||
|
|
||||||
nvm_init();
|
nvm_init();
|
||||||
audio_init();
|
audio_init();
|
||||||
adcStm32_init(&adc1);
|
adcStm32_init(&adc1);
|
||||||
|
|
Ładowanie…
Reference in New Issue