15.3.2.1 Use Model 1: Configuring GPIOs to Act as Interrupt to Cortex-M3 Processor

  1. Enable GPIOs using MSS configurator in Libero SoC.
  2. Initialize GPIOs to a predefined state using the MSS_GPIO_init API in SoftConsole or Libero SoC.
  3. Configure GPIOs as inputs by using the MSS_GPIO_config API in SoftConsole or Libero SoC.
  4. Use the interrupt API MSS_GPIO_enable_irq to dynamically configure the input from the MSIO to interrupt the Cortex-M3 processor. Use API MSS_GPIO_disable_irq to disable the interrupt to the Cortex-M3 processor.
  5. Each GPIO input can also be read using the MSS_GPIO_get_inputs API.