escw_mcu_stm32/hal/io.rs
1use core::ffi::c_void;
2
3use super::HalStatus;
4
5extern "C" {
6 pub fn HAL_GPIO_ReadPin(GPIOx: *const c_void, GPIO_Pin: u16) -> u32;
7 pub fn HAL_GPIO_WritePin(GPIOx: *const c_void, GPIO_Pin: u16, PinState: u32);
8 pub fn HAL_GPIO_TogglePin(GPIOx: *const c_void, GPIO_Pin: u16);
9 pub fn HAL_GPIO_LockPin(GPIOx: *const c_void, GPIO_Pin: u16) -> HalStatus;
10}