mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 15:12:35 -04:00
Bias-T now works in capture mode
Simplified soundboard app, still some work to do Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
1d13389b5a
21 changed files with 557 additions and 125 deletions
|
@ -306,6 +306,10 @@ public:
|
|||
while(device_status() & 0x80);
|
||||
}
|
||||
|
||||
bool clkin_loss_of_signal() {
|
||||
return (device_status() >> 4) & 1;
|
||||
}
|
||||
|
||||
void enable_fanout() {
|
||||
write_register(Register::FanoutEnable, 0b11010000);
|
||||
}
|
||||
|
@ -369,6 +373,11 @@ public:
|
|||
update_all_clock_control();
|
||||
}
|
||||
|
||||
void set_clock_control(const size_t n, const ClockControl::Type clock_control) {
|
||||
_clock_control[n] = clock_control;
|
||||
write_register(Register::CLKControl_Base + n, _clock_control[n]);
|
||||
}
|
||||
|
||||
void enable_clock(const size_t n) {
|
||||
_clock_control[n] &= ~ClockControl::CLK_PDN_Mask;
|
||||
write_register(Register::CLKControl_Base + n, _clock_control[n]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue