kopia lustrzana https://github.com/OpenRTX/OpenRTX
Aligning delays in MD-UV3x0 AT1846S_init to the original firmware's ones
rodzic
f1643a8748
commit
cfe2a609d5
|
@ -47,7 +47,7 @@ static inline void _reloadConfig()
|
||||||
void AT1846S_init()
|
void AT1846S_init()
|
||||||
{
|
{
|
||||||
i2c_writeReg16(0x30, 0x0001); /* Soft reset */
|
i2c_writeReg16(0x30, 0x0001); /* Soft reset */
|
||||||
delayMs(100);
|
delayMs(160);
|
||||||
|
|
||||||
i2c_writeReg16(0x30, 0x0004); // Set pdn_reg (power down pin)
|
i2c_writeReg16(0x30, 0x0004); // Set pdn_reg (power down pin)
|
||||||
|
|
||||||
|
@ -104,12 +104,12 @@ void AT1846S_init()
|
||||||
// and set rx_on
|
// and set rx_on
|
||||||
// and set mute when rxno
|
// and set mute when rxno
|
||||||
// and set xtal_mode to 26MHz/13MHz
|
// and set xtal_mode to 26MHz/13MHz
|
||||||
delayMs(100);
|
delayMs(160);
|
||||||
|
|
||||||
i2c_writeReg16(0x30, 0x40A6); /* Start calibration */
|
i2c_writeReg16(0x30, 0x40A6); /* Start calibration */
|
||||||
delayMs(100);
|
delayMs(160);
|
||||||
i2c_writeReg16(0x30, 0x4006); /* Stop calibration */
|
i2c_writeReg16(0x30, 0x4006); /* Stop calibration */
|
||||||
delayMs(100);
|
delayMs(160);
|
||||||
|
|
||||||
i2c_writeReg16(0x40, 0x0031);
|
i2c_writeReg16(0x40, 0x0031);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue