Advanced Distributed Systems module at HSLU
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
533 B

/*
* application.c
*
* Created on: 22.09.2022
* Author: jonas
*/
#include "application.h"
#include "fsl_gpio.h"
#include "pin_mux.h"
#include "McuWait.h"
/* manual method, without McuWait:
static void delay(void)
{
uint32_t i;
for (i = 0; i < 500000; ++i) {
__asm volatile ("nop");
}
}
*/
void App_Init(void){
McuWait_Init();
}
void App_Run(void){
while(1) {
GPIO_PortToggle(BOARD_INITPINS_LED_BLUE_GPIO, BOARD_INITPINS_LED_BLUE_GPIO_PIN_MASK);
McuWait_Waitms(100); /* wait for 100 ms */
}
}