-
Notifications
You must be signed in to change notification settings - Fork 1
/
frdm_bsp.h
41 lines (33 loc) · 1.38 KB
/
frdm_bsp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/******************************************************************************
* This file is a part of the SM2 Tutorial (C). *
* *
* Adding extra defs makes life easy :) *
******************************************************************************/
/**
* @file frdm_bsp.h
* @author Koryciak
* @date Oct 2019
* @brief File containing info about evaluation board used in project.
* @ver 0.1
*/
#ifndef FRDM_BSP_H
#define FRDM_BSP_H
/******************************************************************************\
* Global definitions
\******************************************************************************/
#define FRDM_KL05Z /* define eval used in project */
#ifndef TRUE
# define TRUE (1)
#endif
#ifndef FALSE
# define FALSE (0)
#endif
/******************************************************************************\
* Global macros
\******************************************************************************/
#define MASK(x) (uint32_t)(1UL << (x)) /* turn bit number into 32b mask */
#define DELAY(x) for(uint32_t i=0;i<(x*10000);i++)__nop(); /* wait */
#ifdef FRDM_KL05Z
# include "MKL05Z4.h" /* header with CMSIS */
#endif /* FRDM_KL05Z */
#endif /* FRDM_BSP_H */