Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
2bdf0bfb
Commit
2bdf0bfb
authored
7 years ago
by
Joakim Nohlgård
Browse files
Options
Downloads
Patches
Plain Diff
kinetis: Align definitions in cpu_conf_kinetis.h
parent
82e960b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/kinetis/include/cpu_conf_kinetis.h
+15
-15
15 additions, 15 deletions
cpu/kinetis/include/cpu_conf_kinetis.h
with
15 additions
and
15 deletions
cpu/kinetis/include/cpu_conf_kinetis.h
+
15
−
15
View file @
2bdf0bfb
...
@@ -30,9 +30,9 @@ extern "C"
...
@@ -30,9 +30,9 @@ extern "C"
* @name ARM Cortex-M specific CPU configuration
* @name ARM Cortex-M specific CPU configuration
* @{
* @{
*/
*/
#define CPU_DEFAULT_IRQ_PRIO
(1U)
#define CPU_DEFAULT_IRQ_PRIO (1U)
#define CPU_IRQ_NUMOF
(NUMBER_OF_INT_VECTORS)
#define CPU_IRQ_NUMOF (NUMBER_OF_INT_VECTORS)
#define CPU_FLASH_BASE
(0x00000000)
#define CPU_FLASH_BASE (0x00000000)
/** @} */
/** @} */
/**
/**
...
@@ -40,16 +40,16 @@ extern "C"
...
@@ -40,16 +40,16 @@ extern "C"
* @{
* @{
*/
*/
#define PIN_MUX_FUNCTION_ANALOG 0
#define PIN_MUX_FUNCTION_ANALOG 0
#define PIN_MUX_FUNCTION_GPIO 1
#define PIN_MUX_FUNCTION_GPIO
1
/** @} */
/** @} */
/**
/**
* @name GPIO interrupt flank settings
* @name GPIO interrupt flank settings
* @{
* @{
*/
*/
#define PIN_INTERRUPT_RISING 0b1001
#define PIN_INTERRUPT_RISING
0b1001
#define PIN_INTERRUPT_FALLING 0b1010
#define PIN_INTERRUPT_FALLING
0b1010
#define PIN_INTERRUPT_EDGE 0b1011
#define PIN_INTERRUPT_EDGE
0b1011
/** @} */
/** @} */
/**
/**
...
@@ -61,27 +61,27 @@ extern "C"
...
@@ -61,27 +61,27 @@ extern "C"
* matters for the RIOT driver implementations.
* matters for the RIOT driver implementations.
*/
*/
#if !defined(MCG_C2_RANGE0) && defined(MCG_C2_RANGE)
#if !defined(MCG_C2_RANGE0) && defined(MCG_C2_RANGE)
#define MCG_C2_RANGE0(x) MCG_C2_RANGE(x)
#define MCG_C2_RANGE0(x)
MCG_C2_RANGE(x)
#endif
#endif
#if !defined(MCG_C2_RANGE0_MASK) && defined(MCG_C2_RANGE_MASK)
#if !defined(MCG_C2_RANGE0_MASK) && defined(MCG_C2_RANGE_MASK)
#define MCG_C2_RANGE0_MASK MCG_C2_RANGE_MASK
#define MCG_C2_RANGE0_MASK
MCG_C2_RANGE_MASK
#endif
#endif
#if !defined(MCG_C7_OSCSEL) && defined(MCG_C7_OSCSEL_SHIFT)
#if !defined(MCG_C7_OSCSEL) && defined(MCG_C7_OSCSEL_SHIFT)
#define MCG_C7_OSCSEL(x) (((uint32_t)(x) << MCG_C7_OSCSEL_SHIFT) & MCG_C7_OSCSEL_MASK)
#define MCG_C7_OSCSEL(x)
(((uint32_t)(x) << MCG_C7_OSCSEL_SHIFT) & MCG_C7_OSCSEL_MASK)
#endif
#endif
#if !defined(OSC0) && defined(OSC)
#if !defined(OSC0) && defined(OSC)
#define OSC0 OSC
#define OSC0 OSC
#endif
#endif
#if !defined(SIM_SOPT2_LPUART0SRC_MASK) && defined(SIM_SOPT2_LPUARTSRC_MASK)
#if !defined(SIM_SOPT2_LPUART0SRC_MASK) && defined(SIM_SOPT2_LPUARTSRC_MASK)
#define SIM_SOPT2_LPUART0SRC_MASK SIM_SOPT2_LPUARTSRC_MASK
#define SIM_SOPT2_LPUART0SRC_MASK
SIM_SOPT2_LPUARTSRC_MASK
#define SIM_SOPT2_LPUART0SRC_SHIFT SIM_SOPT2_LPUARTSRC_SHIFT
#define SIM_SOPT2_LPUART0SRC_SHIFT
SIM_SOPT2_LPUARTSRC_SHIFT
#define SIM_SOPT2_LPUART0SRC SIM_SOPT2_LPUARTSRC
#define SIM_SOPT2_LPUART0SRC
SIM_SOPT2_LPUARTSRC
#endif
#endif
#if !defined(SIM_SCGC5_LPTMR_SHIFT) && defined(SIM_SCGC5_LPTIMER_SHIFT)
#if !defined(SIM_SCGC5_LPTMR_SHIFT) && defined(SIM_SCGC5_LPTIMER_SHIFT)
#define SIM_SCGC5_LPTMR_SHIFT SIM_SCGC5_LPTIMER_SHIFT
#define SIM_SCGC5_LPTMR_SHIFT
SIM_SCGC5_LPTIMER_SHIFT
#endif
#endif
#if !defined(SIM_SCGC5_LPTMR_MASK) && defined(SIM_SCGC5_LPTIMER_MASK)
#if !defined(SIM_SCGC5_LPTMR_MASK) && defined(SIM_SCGC5_LPTIMER_MASK)
#define SIM_SCGC5_LPTMR_MASK SIM_SCGC5_LPTIMER_MASK
#define SIM_SCGC5_LPTMR_MASK
SIM_SCGC5_LPTIMER_MASK
#endif
#endif
#if !defined(GPIOA_BASE) && defined(PTA_BASE)
#if !defined(GPIOA_BASE) && defined(PTA_BASE)
#define GPIOA_BASE PTA_BASE
#define GPIOA_BASE PTA_BASE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment