|
@ -79,3 +79,12 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio); |
|
|
void mp_hal_pin_config(mp_hal_pin_obj_t pin, uint32_t mode, uint32_t pull, uint32_t alt); |
|
|
void mp_hal_pin_config(mp_hal_pin_obj_t pin, uint32_t mode, uint32_t pull, uint32_t alt); |
|
|
bool mp_hal_pin_config_alt(mp_hal_pin_obj_t pin, uint32_t mode, uint32_t pull, uint8_t fn, uint8_t unit); |
|
|
bool mp_hal_pin_config_alt(mp_hal_pin_obj_t pin, uint32_t mode, uint32_t pull, uint8_t fn, uint8_t unit); |
|
|
void mp_hal_pin_config_speed(mp_hal_pin_obj_t pin_obj, uint32_t speed); |
|
|
void mp_hal_pin_config_speed(mp_hal_pin_obj_t pin_obj, uint32_t speed); |
|
|
|
|
|
|
|
|
|
|
|
enum { |
|
|
|
|
|
MP_HAL_MAC_WLAN0 = 0, |
|
|
|
|
|
MP_HAL_MAC_WLAN1, |
|
|
|
|
|
MP_HAL_MAC_BDADDR, |
|
|
|
|
|
MP_HAL_MAC_ETH0, |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
void mp_hal_get_mac(int idx, uint8_t buf[6]); |
|
|