Skip to content

Commit bb0fc71

Browse files
committed
codal_port: Add comments for functions that run on HW IRQs.
Signed-off-by: Damien George <damien@micropython.org>
1 parent c28e6bd commit bb0fc71

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/codal_port/drv_system.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void microbit_system_init(void) {
3535
accelerometer_up_to_date = false;
3636
}
3737

38-
// Called every 6ms
38+
// Called every 6ms on a hardware interrupt.
3939
// TODO: should only enable this when system is ready
4040
// TODO: perhaps only schedule the callback when we need it
4141
void microbit_hal_timer_callback(void) {

src/codal_port/modmusic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ STATIC int music_output_period_us(uint32_t period) {
7676
return microbit_hal_pin_set_analog_period_us(MICROBIT_HAL_PIN_MIXER, period);
7777
}
7878

79+
// This runs on a hardware interrupt.
7980
void microbit_music_tick(void) {
8081
if (music_data == NULL) {
8182
// music module not yet imported

0 commit comments

Comments
 (0)