rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
board.c
Go to the documentation of this file.
1/**
2 * @file board.c
3 * @brief Board initialization file.
4 * @author andreika <prometheus.pcb@gmail.com>
5 */
6
7/* This is a template for board specific configuration created by MCUXpresso IDE Project Wizard.*/
8
9#include <stdint.h>
10#include "pdl_header.h"
11
12void delay(void)
13{
14 volatile uint32_t i = 0;
15 for (i = 0; i < 800000; ++i)
16 {
17 __asm("NOP"); /* delay */
18 }
19}
20
21void __early_init(void) {
22 SystemInit();
23}
24
25void __late_init(void) {
26 // we need static variables to be already initialized
27 // to configure the clock properly and save its state
28 //ke1xf_clock_init(KINETIS_DEFAULT_CLK);
29}
30
31void boardInit(void) {
32}
void __early_init(void)
Definition board.c:21
void delay(void)
Definition board.c:12
void boardInit(void)
Definition board.c:31
void __late_init(void)
Definition board.c:25
void SystemInit(void)
Setup the microcontroller system Initialize the FPU setting, vector table location and External memor...