MSS_GPIO_init

Function MSS_GPIO_init 

Source
pub unsafe extern "C" fn MSS_GPIO_init(gpio: *mut GPIO_TypeDef)
Expand description

The MSS_GPIO_init() function initializes the PolarFire SoC MSS GPIO block. It resets the MSS GPIO hardware block and clears any pending MSS GPIO interrupts in the interrupt controller. When the function exits, it takes the MSS GPIO block out of reset.

@param gpio The gpio parameter specifies the GPIO block that needs to be configured.

@return This function does not return a value.

@example @code #include “mss_gpio.h” int main(void) { MSS_GPIO_init(GPIO0_LO); MSS_GPIO_config(GPIO0_LO, MSS_GPIO_4, MSS_GPIO_INPUT_MODE | MSS_GPIO_IRQ_EDGE_POSITIVE); return (0u); } @endcode