10.1.3 Enable Function

Once the host descriptor has been initialized and the application callbacks have been set, the PL360 Host Controller must be enabled using the following function:

atpl360_res_t atpl360_enable(uint32_t ul_binary_address, uint32_t ul_binary_len);

Parameters:

ul_binary_addressMemory address where the PL360 firmware binary file is located
ul_binary_lenSize of the PL360 firmware binary file
This function performs the following actions:
  • Disable PLC interrupt
  • Transfer firmware binary file to the PL360 device
  • Check firmware integrity
  • Enable PLC interrupt