mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-13 19:56:40 +00: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:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user