mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-10 00:29:33 +00:00
Dynamic baseband module loading from SD card
This commit is contained in:
@@ -49,6 +49,7 @@ public:
|
||||
TXDone = 9,
|
||||
SDCardStatus = 10,
|
||||
Retune = 11,
|
||||
ReadyForSwitch = 12,
|
||||
MAX
|
||||
};
|
||||
|
||||
@@ -265,6 +266,17 @@ public:
|
||||
int n = 0;
|
||||
};
|
||||
|
||||
class ReadyForSwitchMessage : public Message {
|
||||
public:
|
||||
ReadyForSwitchMessage(
|
||||
bool ok
|
||||
) : Message { ID::ReadyForSwitch }
|
||||
{
|
||||
}
|
||||
|
||||
const bool ok = false;
|
||||
};
|
||||
|
||||
class RetuneMessage : public Message {
|
||||
public:
|
||||
RetuneMessage(
|
||||
|
||||
@@ -39,7 +39,7 @@ constexpr size_t sine_table_f32_period_log2 = 8;
|
||||
constexpr size_t sine_table_f32_period = 1 << sine_table_f32_period_log2;
|
||||
constexpr uint32_t sine_table_f32_index_mask = sine_table_f32_period - 1;
|
||||
|
||||
constexpr std::array<float, sine_table_f32_period + 1> sine_table_f32 { {
|
||||
static constexpr std::array<float, sine_table_f32_period + 1> sine_table_f32 { {
|
||||
0.00000000e+00, 2.45412285e-02, 4.90676743e-02,
|
||||
7.35645636e-02, 9.80171403e-02, 1.22410675e-01,
|
||||
1.46730474e-01, 1.70961889e-01, 1.95090322e-01,
|
||||
|
||||
@@ -79,6 +79,10 @@ struct Color {
|
||||
static constexpr Color blue() {
|
||||
return { 0, 0, 255 };
|
||||
}
|
||||
|
||||
static constexpr Color cyan() {
|
||||
return { 0, 128, 255 };
|
||||
}
|
||||
|
||||
static constexpr Color white() {
|
||||
return { 255, 255, 255 };
|
||||
@@ -87,6 +91,10 @@ struct Color {
|
||||
static constexpr Color grey() {
|
||||
return { 127, 127, 127 };
|
||||
}
|
||||
|
||||
static constexpr Color purple() {
|
||||
return { 204, 0, 102 };
|
||||
}
|
||||
};
|
||||
#if 0
|
||||
enum class CardinalDirection : uint8_t {
|
||||
|
||||
Reference in New Issue
Block a user