Config mode (#1433)

* Allow code to run without a token
* Reverted submodule change by mistake
* WIP force tcxo
* Added check to hide if not an R9
* Fixed comments
* Updated name
* Fixed crashing on TCXO switching
* Fixed the reboot issue
* Updated boot order
* Cleaned up comments
* added new recovery mode
* added IO
* implemented cpld mode change
* whitespace change
* renamed config mode
* inverted logic
* removed r9 dependency
* added disable external tcxo option to config mode
* fixed CLKIN detection for r9
* integrated tcxo setting into clock selection
Co-authored-by @jLynx
This commit is contained in:
Bernd Herzog 2023-09-04 17:46:07 +02:00 committed by GitHub
parent 4819a2f4e2
commit 62310ad9a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 236 additions and 8 deletions

View file

@ -115,6 +115,7 @@ Continuous (Fox-oring)
#include "portapack.hpp"
#include "portapack_shared_memory.hpp"
#include "config_mode.hpp"
#include "message_queue.hpp"
@ -161,9 +162,17 @@ static void event_loop() {
}
int main(void) {
if (config_mode_should_enter()) {
config_mode_clear();
config_mode_run();
}
config_mode_set();
first_if.init(); /* To avoid initial short Ant_DC_Bias pulse ,we need quick set up GP01_RFF507X =1 */
if (portapack::init()) {
portapack::display.init();
config_mode_clear();
// sdcStart(&SDCD1, nullptr); // Commented out as now happens in portapack.cpp