cpu/k64f/include/cpu_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universit├Ąt Berlin
3  * Copyright (C) 2015 PHYTEC Messtechnik GmbH
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser General
6  * Public License v2.1. See the file LICENSE in the top level directory for more
7  * details.
8  */
9 
24 #ifndef CPU_CONF_H
25 #define CPU_CONF_H
26 
27 #include "cpu_conf_common.h"
28 
29 #ifdef CPU_MODEL_MK64FN1M0VLL12
30 #include "vendor/MK64F12.h"
31 #else
32 #error "undefined CPU_MODEL"
33 #endif
34 
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif
39 
44 #define CPU_DEFAULT_IRQ_PRIO (1U)
45 #define CPU_IRQ_NUMOF (86U)
46 #define CPU_FLASH_BASE (0x00000000)
47 
53 #define PIN_MUX_FUNCTION_ANALOG 0
54 #define PIN_MUX_FUNCTION_GPIO 1
55 
60 #define PIN_INTERRUPT_RISING 0b1001
61 #define PIN_INTERRUPT_FALLING 0b1010
62 #define PIN_INTERRUPT_EDGE 0b1011
63 
69 #define LPTMR_CLKEN() (bit_set32(&SIM->SCGC5, SIM_SCGC5_LPTMR_SHIFT))
70 #define PIT_CLKEN() (bit_set32(&SIM->SCGC6, SIM_SCGC6_PIT_SHIFT))
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif /* CPU_CONF_H */
78 
Common CPU definitione for Cortex-M family based MCUs.