The below images shows step-by-step to configure and program in DAVE IDE.
Program:
#include <xmc_gpio.h>
#define TICKS_PER_SECOND 1000
#define TICKS_WAIT 100
#define LED1 P0_1
void SysTick_Handler(void)
{
static uint32_t ticks = 0;
ticks++;
if (ticks == TICKS_WAIT)
{
XMC_GPIO_ToggleOutput(LED1);
ticks = 0;
}
}
int main(void)
{
XMC_GPIO_CONFIG_t config;
config.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL;
config.output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH;
config.output_strength = XMC_GPIO_OUTPUT_STRENGTH_MEDIUM;
XMC_GPIO_Init(LED1, &config);
/* System timer configuration */
SysTick_Config(SystemCoreClock / TICKS_PER_SECOND);
while(1)
{
/* Infinite loop */
}
}Video Demonstration:








