4.1 Init Controller Descriptor

The PL360 Host Controller is initialized by calling the atpl360_init function in the API. The PL360 Host Controller initialization routine performs the following actions:

  • Disable PLC interrupt and component
  • Register wrapper for Hardware Abstraction Layer (for further information, please refer to Initialization Function)
  • Reset the PL360 device using corresponding host MCU control GPIOs
  • Configure a GPIO as an interrupt source from the PL360 device
  • Initialize the SPI driver
  • Register an internal event handler for the external PLC interrupt
  • If an add-on is required, initialize specific add-on (configured previously). See chapter Configure Application
  • Return a descriptor to the PL360 Host Controller. This descriptor will be used to manage the PLC communication