Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kinetis: update vendor headers #7434

Merged
merged 6 commits into from
Aug 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boards/frdm-k22f/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static const uart_conf_t uart_config[] = {
.pcr_rx = PORT_PCR_MUX(3),
.pcr_tx = PORT_PCR_MUX(3),
.irqn = UART1_RX_TX_IRQn,
.scgc_addr = &SIM_SCGC4,
.scgc_addr = &SIM->SCGC4,
.scgc_bit = SIM_SCGC4_UART1_SHIFT,
.mode = UART_MODE_8N1,
},
Expand Down
2 changes: 0 additions & 2 deletions cpu/k22f/include/vendor/MK22F12810.h
Original file line number Diff line number Diff line change
Expand Up @@ -11770,5 +11770,3 @@ typedef struct {
#endif /* (!defined(MCU_MEM_MAP_SUPPRESS_VERSION_WARNING)) */
#endif /* (MCU_MEM_MAP_VERSION != 0x0100u) */
#endif /* #if !defined(MK22F12810_H_) */

/* MK22F12810.h, eof. */
2 changes: 0 additions & 2 deletions cpu/k22f/include/vendor/MK22F25612.h
Original file line number Diff line number Diff line change
Expand Up @@ -12639,5 +12639,3 @@ typedef struct {
#endif /* (!defined(MCU_MEM_MAP_SUPPRESS_VERSION_WARNING)) */
#endif /* (MCU_MEM_MAP_VERSION != 0x0100u) */
#endif /* #if !defined(MK22F25612_H_) */

/* MK22F25612.h, eof. */
16,678 changes: 6,222 additions & 10,456 deletions cpu/k22f/include/vendor/MK22F51212.h

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions cpu/k22f/include/vendor/MK22FA12.h
Original file line number Diff line number Diff line change
Expand Up @@ -16502,5 +16502,3 @@ typedef struct {
#endif /* (!defined(MCU_MEM_MAP_SUPPRESS_VERSION_WARNING)) */
#endif /* (MCU_MEM_MAP_VERSION != 0x0100u) */
#endif /* #if !defined(MK22FA12_H_) */

/* MK22FA12.h, eof. */
9 changes: 0 additions & 9 deletions cpu/k60/include/vendor/MK60D10.h
Original file line number Diff line number Diff line change
Expand Up @@ -14576,13 +14576,6 @@ typedef struct {
#define LPTimer_IRQn LPTMR0_IRQn
#define LPTimer_IRQHandler LPTMR0_IRQHandler

/* Compatibility defines for compatibility with differing module names between
* MK60 and MKW22 headers */
#define SIM_SCGC5_LPTMR_MASK SIM_SCGC5_LPTIMER_MASK
#define SIM_SCGC5_LPTMR_SHIFT SIM_SCGC5_LPTIMER_SHIFT
#define OSC0 OSC
#define MCG_C7_OSCSEL(x) (((uint32_t)(x) << MCG_C7_OSCSEL_SHIFT) & MCG_C7_OSCSEL_MASK)

/*!
* @}
*/ /* end of group Backward_Compatibility_Symbols */
Expand All @@ -14600,5 +14593,3 @@ typedef struct {
#ifdef __cplusplus
}
#endif

/* MK60D10.h, eof. */
21,017 changes: 9,668 additions & 11,349 deletions cpu/k64f/include/vendor/MK64F12.h

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions cpu/kinetis_common/include/cpu_conf_kinetis.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,52 @@ extern "C"
#define PIN_INTERRUPT_EDGE 0b1011
/** @} */

/**
* @name Compatibility definitions between vendor headers
* @{
*/
/* Different versions of vendor headers use some variations of register names.
* This section aims to eliminate these differences in the few places where it
* matters for the RIOT driver implementations.
*/
#if !defined(MCG_C2_RANGE0) && defined(MCG_C2_RANGE)
#define MCG_C2_RANGE0(x) MCG_C2_RANGE(x)
#endif
#if !defined(MCG_C2_RANGE0_MASK) && defined(MCG_C2_RANGE_MASK)
#define MCG_C2_RANGE0_MASK MCG_C2_RANGE_MASK
#endif
#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)
#endif
#if !defined(OSC0) && defined(OSC)
#define OSC0 OSC
#endif
#if !defined(SIM_SCGC5_LPTMR_SHIFT) && defined(SIM_SCGC5_LPTIMER_SHIFT)
#define SIM_SCGC5_LPTMR_SHIFT SIM_SCGC5_LPTIMER_SHIFT
#endif
#if !defined(SIM_SCGC5_LPTMR_MASK) && defined(SIM_SCGC5_LPTIMER_MASK)
#define SIM_SCGC5_LPTMR_MASK SIM_SCGC5_LPTIMER_MASK
#endif
#if !defined(GPIOA_BASE) && defined(PTA_BASE)
#define GPIOA_BASE PTA_BASE
#define GPIOB_BASE PTB_BASE
#define GPIOC_BASE PTC_BASE
#define GPIOD_BASE PTD_BASE
#define GPIOE_BASE PTE_BASE
#define GPIOF_BASE PTF_BASE
#define GPIOG_BASE PTG_BASE
#endif
#if !defined(GPIOA) && defined(PTA)
#define GPIOA PTA
#define GPIOB PTB
#define GPIOC PTC
#define GPIOD PTD
#define GPIOE PTE
#define GPIOF PTF
#define GPIOG PTG
#endif
/** @} */

/**
* @name Timer hardware information
* @{
Expand Down
2 changes: 2 additions & 0 deletions cpu/kinetis_common/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ typedef struct {
uint8_t chan; /**< ADC channel */
} adc_conf_t;

#if defined(DAC0_BASE) && (DAC0_BASE != This_symbol_has_been_deprecated)
/**
* @brief CPU specific DAC configuration
*/
Expand All @@ -249,6 +250,7 @@ typedef struct {
volatile uint32_t *scgc_addr; /**< Clock enable register, in SIM module */
uint8_t scgc_bit; /**< Clock enable bit, within the register */
} dac_conf_t;
#endif

/**
* @brief CPU specific timer PIT module configuration
Expand Down
Loading