We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c28e6bd commit bb0fc71Copy full SHA for bb0fc71
src/codal_port/drv_system.c
@@ -35,7 +35,7 @@ void microbit_system_init(void) {
35
accelerometer_up_to_date = false;
36
}
37
38
-// Called every 6ms
+// Called every 6ms on a hardware interrupt.
39
// TODO: should only enable this when system is ready
40
// TODO: perhaps only schedule the callback when we need it
41
void microbit_hal_timer_callback(void) {
src/codal_port/modmusic.c
@@ -76,6 +76,7 @@ STATIC int music_output_period_us(uint32_t period) {
76
return microbit_hal_pin_set_analog_period_us(MICROBIT_HAL_PIN_MIXER, period);
77
78
79
+// This runs on a hardware interrupt.
80
void microbit_music_tick(void) {
81
if (music_data == NULL) {
82
// music module not yet imported
0 commit comments