/*Gerardo Marx 
16th July 2026
GPIOs management with dual CPUs
----------------
CPU1: GPIO22 and GPIO97 using bitfield approach
CPU2: GPIO52 using driverlib approach

  |-----------|
  |           |
  |GPIO22     |
  |           |
  |  ----     |
  |GPIO97     |
  |           |
  |GPIO52     |
  |-----------|
*/

// Libraries and includes
#include "driverlib.h"
#include "device.h"

void main(void){
    // 1: init uc does not required for CPU2
    // 2: config gpios
    //GPIO_setPadConfig(52, GPIO_PIN_TYPE_STD);
    //GPIO_setDirectionMode(52, GPIO_DIR_MODE_OUT);
    //GPIO_setControllerCore()
    
    // 3: chnage state 
    GPIO_writePin(52, 1);
    
    // 4: finite loop
    for(;;)
    {
        // control task
    
    }
    
}
