mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-25 07:10:43 -04:00
Enhanced Debug -> Peripherals app to allow direct register modification (#1584)
* Add files via upload * Add files via upload * Add files via upload * Add files via upload * Clang * Clang * Tweak position of field on screen * Reverted text on Write button per reviewer feedback
This commit is contained in:
parent
10f6600f52
commit
ef92c5bc0a
15 changed files with 178 additions and 79 deletions
|
@ -345,6 +345,19 @@ struct backup_ram_t {
|
|||
check_value = compute_check_value();
|
||||
copy(*this, dst);
|
||||
}
|
||||
|
||||
/* Access functions for DebugPmemView */
|
||||
uint32_t pmem_data_word(uint32_t index) {
|
||||
return (index > sizeof(regfile) / sizeof(uint32_t)) ? 0xFFFFFFFF : regfile[index];
|
||||
}
|
||||
|
||||
uint32_t pmem_stored_checksum(void) {
|
||||
return check_value;
|
||||
}
|
||||
|
||||
uint32_t pmem_calculated_checksum(void) {
|
||||
return compute_check_value();
|
||||
}
|
||||
};
|
||||
|
||||
static_assert(sizeof(backup_ram_t) == memory::map::backup_ram.size());
|
||||
|
@ -413,6 +426,18 @@ void persist() {
|
|||
|
||||
} /* namespace cache */
|
||||
|
||||
uint32_t pmem_data_word(uint32_t index) {
|
||||
return backup_ram->pmem_data_word(index);
|
||||
}
|
||||
|
||||
uint32_t pmem_stored_checksum(void) {
|
||||
return backup_ram->pmem_stored_checksum();
|
||||
}
|
||||
|
||||
uint32_t pmem_calculated_checksum(void) {
|
||||
return backup_ram->pmem_calculated_checksum();
|
||||
}
|
||||
|
||||
rf::Frequency target_frequency() {
|
||||
rf::tuning_range.reset_if_outside(data->target_frequency, target_frequency_reset_value);
|
||||
return data->target_frequency;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue