Skip to content

Commit

Permalink
init SPI and LCD in middle of Si5351 start generation and AIC3204 sta…
Browse files Browse the repository at this point in the history
…rtup from SI clock, this give more time for stable start
  • Loading branch information
DiSlord Live committed Jul 17, 2022
1 parent f87f7c7 commit 16ca5a0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3393,19 +3393,19 @@ int main(void)
#endif

/*
* I2C bus
* restore config and calibration 0 slot from flash memory, also if need use backup data
*/
i2c_start();
load_settings();

/*
* SPI bus and LCD Initialize
* I2C bus
*/
lcd_init();
i2c_start();

/*
* restore config and calibration 0 slot from flash memory, also if need use backup data
* Start si5351
*/
load_settings();
si5351_init();

/*
* Set frequency offset
Expand All @@ -3419,19 +3419,19 @@ int main(void)
shell_init_connection();

/*
* Start si5351
* SPI bus and LCD Initialize
*/
si5351_init();
lcd_init();

/*
* I2S Initialize
* tlv320aic Initialize (audio codec)
*/
initI2S(rx_buffer, ARRAY_COUNT(rx_buffer));
tlv320aic3204_init();

/*
* tlv320aic Initialize (audio codec)
* I2S Initialize
*/
tlv320aic3204_init();
initI2S(rx_buffer, ARRAY_COUNT(rx_buffer));

/*
* SD Card init (if inserted) allow fix issues
Expand Down

0 comments on commit 16ca5a0

Please sign in to comment.