/* * Copyright (C) 2014 Infineon Technologies AG. All rights reserved. * * Infineon Technologies AG (Infineon) is supplying this software for use with * Infineon's microcontrollers. * This file can be freely distributed within development tools that are * supporting such microcontrollers. * * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, * OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. * */ /** * @file * @date 04 Dec, 2014 * @version 1.0.0 * * @brief XMC1200 Boot kit blinky GPIO demo example * * The blinky example flashes the leds of the board with a periodic rate. * LED1 is connected to P0.6 * * History
* * Version 1.0.0 Initial
* */ #include "xmc_gpio.h" #define LED1 P0_6 void SysTick_Handler(void) { XMC_GPIO_ToggleOutput(LED1); } int main(void) { XMC_GPIO_SetMode(LED1, XMC_GPIO_MODE_OUTPUT_PUSH_PULL); /* System timer configuration */ SysTick_Config(SystemCoreClock >> 1); while(1) { /* Infinite loop */ } }