Hi,
I'm trying to toggle the output of pins on S32k322 PTC19 and PTC21. I have followed the example provided in the NXP Design studio.
This is my main.c file,
#include "Mcal.h"
#include "Mcu.h"
#include "Port.h"
#include "Dio.h"
volatile int exit_code = 0;
/* User includes */
void TestDelay(uint32 delay);
void TestDelay(uint32 delay)
{
static volatile uint32 DelayTimer = 0;
while (DelayTimer<delay)
{
DelayTimer++;
}
DelayTimer=0;
}
int main(void)
{
//#if (MCU_PRECOMPILE_SUPPORT == STD_ON)
Mcu_Init(NULL_PTR);
//#elif (MCU_PRECOMPILE_SUPPORT == STD_OFF)
//Mcu_Init(&Mcu_Config);
//#endif
/* Initialize the clock tree and apply PLL as system clock */
Mcu_InitClock(McuClockSettingConfig_0);
/* Apply a mode configuration */
Mcu_SetMode(McuModeSettingConf_0);
/* Initialize all pins using the Port driver */
Port_Init(NULL_PTR);
for(;;)
{
Dio_WriteChannel(84, STD_HIGH);
Dio_WriteChannel(86, STD_HIGH);
}
//Exit_Example(TRUE);
return 0;
}
It doesn't work. Any help is appreciated. Thanks