diff options
Diffstat (limited to 'stmhal/pin.h')
-rw-r--r-- | stmhal/pin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stmhal/pin.h b/stmhal/pin.h index 492803871f..df7df0ce2e 100644 --- a/stmhal/pin.h +++ b/stmhal/pin.h @@ -24,10 +24,14 @@ * THE SOFTWARE. */ +#ifndef __MICROPY_INCLUDED_STMHAL_PIN_H__ +#define __MICROPY_INCLUDED_STMHAL_PIN_H__ + // This file requires pin_defs_xxx.h (which has port specific enums and // defines, so we include it here. It should never be included directly #include MICROPY_PIN_DEFS_PORT_H +#include "py/obj.h" typedef struct { mp_obj_base_t base; @@ -93,3 +97,5 @@ const pin_obj_t *pin_find_named_pin(const mp_obj_dict_t *named_pins, mp_obj_t na const pin_af_obj_t *pin_find_af(const pin_obj_t *pin, uint8_t fn, uint8_t unit); const pin_af_obj_t *pin_find_af_by_index(const pin_obj_t *pin, mp_uint_t af_idx); const pin_af_obj_t *pin_find_af_by_name(const pin_obj_t *pin, const char *name); + +#endif // __MICROPY_INCLUDED_STMHAL_PIN_H__ |