mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-08 15:12:39 -04:00
Merge remote-tracking branch 'upstream/master'
Conflicts: firmware/application/Makefile firmware/application/core_control.cpp firmware/application/touch.cpp firmware/application/ui_debug.cpp firmware/application/ui_debug.hpp firmware/application/ui_navigation.cpp firmware/baseband/baseband_thread.cpp
This commit is contained in:
commit
1b0da68d65
252 changed files with 10752 additions and 7183 deletions
|
@ -29,9 +29,8 @@ using namespace hackrf::one;
|
|||
|
||||
#include "clock_manager.hpp"
|
||||
|
||||
#include "i2c_pp.hpp"
|
||||
|
||||
#include "touch_adc.hpp"
|
||||
#include "audio.hpp"
|
||||
|
||||
namespace portapack {
|
||||
|
||||
|
@ -51,8 +50,6 @@ I2C i2c0(&I2CD0);
|
|||
SPI ssp0(&SPID1);
|
||||
SPI ssp1(&SPID2);
|
||||
|
||||
wolfson::wm8731::WM8731 audio_codec { i2c0, portapack::wm8731_i2c_address };
|
||||
|
||||
si5351::Si5351 clock_generator {
|
||||
i2c0, hackrf::one::si5351_i2c_address
|
||||
};
|
||||
|
@ -134,9 +131,8 @@ void init() {
|
|||
clock_manager.set_reference_ppb(persistent_memory::correction_ppb());
|
||||
clock_manager.run_at_full_speed();
|
||||
|
||||
clock_manager.start_audio_pll();
|
||||
audio_codec.init();
|
||||
|
||||
audio::init();
|
||||
|
||||
clock_manager.enable_first_if_clock();
|
||||
clock_manager.enable_second_if_clock();
|
||||
clock_manager.enable_codec_clocks();
|
||||
|
@ -149,7 +145,7 @@ void shutdown() {
|
|||
display.shutdown();
|
||||
|
||||
radio::disable();
|
||||
audio_codec.reset();
|
||||
audio::shutdown();
|
||||
clock_manager.shutdown();
|
||||
|
||||
power.shutdown();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue