Page 1 of 1

STM32 os_enable_interrupts and os_disable_interrupts

PostPosted: Tue Dec 12, 2017 12:54 pm
by DerekJ
I see for the PIC we define os_enable_interrupts() and os_disable_interrupts() the following way setting and disabling global interrupts.

#define os_enable_interrupts() GIE=1
#define os_disable_interrupts() GIE=0

Do you know how to or if we have to using a STM32? I configure a small project using the CubeMX tool and without doing anything with the interrupts appears to be working ok?

#define os_enable_interrupts() ?
#define os_disable_interrupts() ?

Thanks,

Derek