Dynamic baseband module loading from SD card

This commit is contained in:
furrtek
2015-11-20 07:59:09 +01:00
parent 835d581e6c
commit 5f60b004f7
82 changed files with 8041 additions and 580 deletions
+12
View File
@@ -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(
+1 -1
View File
@@ -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,
+8
View File
@@ -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 {