• Damien George's avatar
    py/mphal: Move configuration of ATOMIC_SECTION macros to mphal.h. · bfdf500e
    Damien George authored
    
    
    MICROPY_BEGIN_ATOMIC_SECTION/MICROPY_END_ATOMIC_SECTION belong more to the
    MicroPython HAL rather than build configuration settings, so move their
    default configuration to py/mphal.h, and require all users of these macros
    to include py/mphal.h (here, py/objexcept.c and py/scheduler.c).
    
    This helps ports separate configuration from their HAL implementations, and
    can improve build times (because mpconfig.h is included everywhere, whereas
    mphal.h is not).
    Signed-off-by: default avatarDamien George <damien@micropython.org>
    bfdf500e
objexcept.c 25.8 KB