48 lines
982 B
C
48 lines
982 B
C
|
/**
|
||
|
* @file board.c
|
||
|
* @brief Board initialization file.
|
||
|
* @author andreika <prometheus.pcb@gmail.com>
|
||
|
*/
|
||
|
|
||
|
/* This is a template for board specific configuration created by MCUXpresso IDE Project Wizard.*/
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include "pdl_header.h"
|
||
|
//#include "board.h"
|
||
|
//#include "hal.h"
|
||
|
|
||
|
/**
|
||
|
* @brief Set up and initialize all required blocks and functions related to the board hardware.
|
||
|
*/
|
||
|
void BOARD_InitDebugConsole(void) {
|
||
|
/* The user initialization should be placed here */
|
||
|
}
|
||
|
|
||
|
void delay(void)
|
||
|
{
|
||
|
volatile uint32_t i = 0;
|
||
|
for (i = 0; i < 800000; ++i)
|
||
|
{
|
||
|
__asm("NOP"); /* delay */
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* Test LED blinker (Uses PD7). Should work in any conditions! */
|
||
|
void __blink(int n) {
|
||
|
#if 1
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
void __early_init(void) {
|
||
|
SystemInit();
|
||
|
}
|
||
|
|
||
|
void __late_init(void) {
|
||
|
// we need static variables to be already initialized
|
||
|
// to configure the clock properly and save its state
|
||
|
//ke1xf_clock_init(KINETIS_DEFAULT_CLK);
|
||
|
}
|
||
|
|
||
|
void boardInit(void) {
|
||
|
}
|