Skip to content

Conversation

microbit-matt-hillsdon
Copy link
Contributor

MICROPY_BEGIN_ATOMIC_SECTION/MICROPY_END_ATOMIC_SECTION are only defined in modspeech because of mpconfigport.h (indirectly). Include mphal.h so that the defaults are defined if the port does not define them (as in the sim case).

MICROPY_BEGIN_ATOMIC_SECTION/MICROPY_END_ATOMIC_SECTION are only defined
in modspeech because of mpconfigport.h (indirectly). Include mphal.h so
that the defaults are defined if the port does not define them (as in
the sim case).
@microbit-matt-hillsdon
Copy link
Contributor Author

You can see the sim compile error that motivated this here: https://github.com/microbit-foundation/micropython-microbit-v2-simulator/actions/runs/8376957819/job/22937869589 (though that branch is based on audio-recording so we can explore the sim work for that).

@dpgeorge dpgeorge merged commit 03d5c04 into master Mar 23, 2024
@dpgeorge dpgeorge deleted the modspeech-mphal branch March 23, 2024 11:06
@dpgeorge
Copy link
Collaborator

Thanks, this is the correct change. It's needed because of the recent update to MicroPython v1.22.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants