summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/mphalport.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/mphalport.h')
-rw-r--r--stmhal/mphalport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/mphalport.h b/stmhal/mphalport.h
index 652f1e7be3..5373eb45a2 100644
--- a/stmhal/mphalport.h
+++ b/stmhal/mphalport.h
@@ -1,5 +1,6 @@
// We use the ST Cube HAL library for most hardware peripherals
#include STM32_HAL_H
+#include "pin.h"
// The unique id address differs per MCU. Ideally this define should
// go in some MCU-specific header, but for now it lives here.
@@ -23,6 +24,7 @@
#define GPIO_read_output_pin(gpio, pin) (((gpio)->ODR >> (pin)) & 1)
void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio);
+bool mp_hal_gpio_set_af(const pin_obj_t *pin, GPIO_InitTypeDef *init, uint8_t fn, uint8_t unit);
extern const unsigned char mp_hal_status_to_errno_table[4];