Skip to content

Commit

Permalink
define pin_levels once in emscripten_loop.c
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Oct 7, 2024
1 parent 1ebac9f commit df3f69e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dummy/common/emscripten_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

static bool sleeping = true;
static volatile long animation_frame_id = ANIMATION_FRAME_ID_INVALID;
bool pin_levels[3][32];

// make compiler happy
bool main_loop_is_sleeping(void);
Expand Down
2 changes: 1 addition & 1 deletion dummy/common/hal_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#define HAL_GPIO_PMUX_M 12
#define HAL_GPIO_PMUX_N 13

static bool pin_levels[3][32];
extern bool pin_levels[3][32];

#define HAL_GPIO_PIN(name, port, pin) \
static inline void HAL_GPIO_##name##_set(void) \
Expand Down

0 comments on commit df3f69e

Please sign in to comment.