mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-25 07:10:43 -04:00
Merge remote-tracking branch 'upstream/master'
Conflicts: firmware/Makefile firmware/application/Makefile firmware/application/event_m0.cpp firmware/application/ui_setup.cpp firmware/application/ui_setup.hpp firmware/baseband/baseband_thread.cpp firmware/baseband/baseband_thread.hpp firmware/bootstrap/CMakeLists.txt firmware/common/message.hpp firmware/common/portapack_shared_memory.hpp hardware/.gitignore
This commit is contained in:
commit
fdfa7c9776
138 changed files with 17603 additions and 1930 deletions
|
@ -27,10 +27,6 @@
|
|||
|
||||
#include "message_queue.hpp"
|
||||
|
||||
struct TouchADCFrame {
|
||||
uint32_t dr[8];
|
||||
};
|
||||
|
||||
struct JammerRange {
|
||||
bool active;
|
||||
int64_t center;
|
||||
|
@ -40,19 +36,16 @@ struct JammerRange {
|
|||
|
||||
/* NOTE: These structures must be located in the same location in both M4 and M0 binaries */
|
||||
struct SharedMemory {
|
||||
static constexpr size_t baseband_queue_k = 12;
|
||||
static constexpr size_t application_queue_k = 11;
|
||||
static constexpr size_t app_local_queue_k = 11;
|
||||
|
||||
MessageQueue baseband_queue;
|
||||
uint8_t baseband_queue_data[1 << baseband_queue_k];
|
||||
MessageQueue application_queue;
|
||||
uint8_t application_queue_data[1 << application_queue_k];
|
||||
uint8_t application_queue_data[1 << application_queue_k] { 0 };
|
||||
uint8_t app_local_queue_data[1 << app_local_queue_k] { 0 };
|
||||
const Message* volatile baseband_message { nullptr };
|
||||
MessageQueue application_queue { application_queue_data, application_queue_k };
|
||||
MessageQueue app_local_queue { app_local_queue_data, app_local_queue_k };
|
||||
|
||||
// TODO: M0 should directly configure and control DMA channel that is
|
||||
// acquiring ADC samples.
|
||||
TouchADCFrame touch_adc_frame;
|
||||
|
||||
int test;
|
||||
char m4_panic_msg[32] { 0 };
|
||||
|
||||
uint8_t radio_data[256];
|
||||
size_t bit_length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue