mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-07 17:24:58 -04:00
Finally found what was eating all the RAM :D
Re-enabled the tone key selector in Soundboard Soundboard now uses OutputStream, like Replay Constexpr'd a bunch of consts which were going to BSS section Exiting an app now goes back to main menu Cleaned up Message array
This commit is contained in:
parent
2d3a6313cc
commit
b29c1d9749
28 changed files with 419 additions and 279 deletions
|
@ -38,22 +38,22 @@ namespace encoders {
|
|||
void bitstream_append(size_t& bitstream_length, uint32_t bit_count, uint32_t bits);
|
||||
|
||||
struct encoder_def_t {
|
||||
std::string name; // Encoder chip ref/name
|
||||
std::string address_symbols; // List of possible symbols like "01", "01F"...
|
||||
std::string data_symbols; // Same
|
||||
char name[16]; // Encoder chip ref/name
|
||||
char address_symbols[8]; // List of possible symbols like "01", "01F"...
|
||||
char data_symbols[8]; // Same
|
||||
uint16_t clk_per_symbol; // Oscillator periods per symbol
|
||||
uint16_t clk_per_fragment; // Oscillator periods per symbol fragment (state)
|
||||
std::vector<std::string> bit_format; // List of fragments for each symbol in previous *_symbols list order
|
||||
char bit_format[4][20]; // List of fragments for each symbol in previous *_symbols list order
|
||||
uint8_t word_length; // Total # of symbols (not counting sync)
|
||||
std::string word_format; // A for Address, D for Data, S for sync
|
||||
std::string sync; // Like bit_format
|
||||
char word_format[32]; // A for Address, D for Data, S for sync
|
||||
char sync[64]; // Like bit_format
|
||||
uint32_t default_speed; // Default encoder clk frequency (often set by shitty resistor)
|
||||
uint8_t repeat_min; // Minimum repeat count
|
||||
uint16_t pause_symbols; // Length of pause between repeats in symbols
|
||||
};
|
||||
|
||||
// Warning ! If this is changed, make sure that ENCODER_UM3750 is still valid !
|
||||
const encoder_def_t encoder_defs[ENC_TYPES_COUNT] = {
|
||||
constexpr encoder_def_t encoder_defs[ENC_TYPES_COUNT] = {
|
||||
// PT2260-R2
|
||||
{
|
||||
"2260-R2",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue