Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cc3200/mods/modmachine: Use common implementation of disable/enable_irq.
This commit changes the cc3200 port to use the common machine implementation of machine.disable_irq() and machine.enable_irq(). This eliminates its dependency on the stm32 port's code. The behaviour of cc3200 for these functions is changed: - disable_irq() now returns an (opaque) integer rather than a bool - enable_irq(state) must be passed and argument, which is the return value of disable_irq() rather than a bool Signed-off-by: Damien George <damien@micropython.org>
- Loading branch information
Showing
3 changed files
with
1 addition
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters