Skip to content

Commit

Permalink
make pins identifiable in emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Oct 7, 2024
1 parent 3f51d18 commit 17d34e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dummy/common/hal_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
\
static inline uint8_t HAL_GPIO_##name##_pin(void) \
{ \
return 0; \
return ((HAL_GPIO_PORT##port << 5) | (pin & 0x1f)); \
(void)HAL_GPIO_##name##_pin; \
} \
\
Expand Down

0 comments on commit 17d34e5

Please sign in to comment.