Skip to content

Commit

Permalink
py: define ATOMIC macros
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkin committed Aug 29, 2020
1 parent c710f56 commit c846c69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/gprs_a9/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <stdint.h>
#include <unistd.h>

#include "api_sys.h"

// options to control how MicroPython is built


Expand Down Expand Up @@ -63,6 +65,8 @@
#define MICROPY_ENABLE_SCHEDULER (1)
#define MICROPY_SCHEDULER_DEPTH (8)
#define MICROPY_COMP_CONST (1)
#define MICROPY_BEGIN_ATOMIC_SECTION() SYS_EnterCriticalSection()
#define MICROPY_END_ATOMIC_SECTION(state) SYS_ExitCriticalSection(state)

// MCU definition
#define MP_ENDIANNESS_LITTLE (1)
Expand Down

0 comments on commit c846c69

Please sign in to comment.