Skip to content

Commit

Permalink
cpu: efm32lg: update to new sdk.
Browse files Browse the repository at this point in the history
  • Loading branch information
basilfx committed May 11, 2016
1 parent 2e6e745 commit 125b393
Show file tree
Hide file tree
Showing 53 changed files with 302 additions and 111 deletions.
8 changes: 5 additions & 3 deletions cpu/efm32lg/include/cpu_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@
#ifndef CPU_CONF_H
#define CPU_CONF_H

#include "cpu_conf_common.h"

#include "em_device.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief ARM Cortex-M3 specific CPU configuration
* @{
*/
* @brief ARM Cortex-M3 specific CPU configuration
* @{
*/
#define CPU_DEFAULT_IRQ_PRIO (1U)
#define CPU_IRQ_NUMOF (EMU_IRQn + 1)
#define CPU_FLASH_BASE FLASH_BASE
Expand Down
5 changes: 3 additions & 2 deletions cpu/efm32lg/include/efm32lg990f256.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* @file efm32lg990f256.h
* @brief CMSIS Cortex-M Peripheral Access Layer Header File
* for EFM32LG990F256
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down Expand Up @@ -111,6 +111,7 @@ typedef enum IRQn
* @brief Processor and Core Peripheral Section
*****************************************************************************/
#define __MPU_PRESENT 1 /**< Presence of MPU */
#define __VTOR_PRESENT 1 /**< Presence of VTOR register in SCB */
#define __NVIC_PRIO_BITS 3 /**< NVIC interrupt priority bits */
#define __Vendor_SysTickConfig 0 /**< Is 1 if different SysTick counter is used */

Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_acmp.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_acmp.h
* @brief EFM32LG_ACMP register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_adc.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_adc.h
* @brief EFM32LG_ADC register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_aes.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_aes.h
* @brief EFM32LG_AES register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_af_pins.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_af_pins.h
* @brief EFM32LG_AF_PINS register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_af_ports.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_af_ports.h
* @brief EFM32LG_AF_PORTS register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_burtc.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_burtc.h
* @brief EFM32LG_BURTC register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_burtc_ret.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_burtc_ret.h
* @brief EFM32LG_BURTC_RET register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_calibrate.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_calibrate.h
* @brief EFM32LG_CALIBRATE register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_cmu.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_cmu.h
* @brief EFM32LG_CMU register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_dac.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_dac.h
* @brief EFM32LG_DAC register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_devinfo.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_devinfo.h
* @brief EFM32LG_DEVINFO register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_dma.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_dma.h
* @brief EFM32LG_DMA register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_dma_ch.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_dma_ch.h
* @brief EFM32LG_DMA_CH register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_dma_descriptor.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_dma_descriptor.h
* @brief EFM32LG_DMA_DESCRIPTOR register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_dmactrl.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_dmactrl.h
* @brief EFM32LG_DMACTRL register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_dmareq.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_dmareq.h
* @brief EFM32LG_DMAREQ register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_ebi.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_ebi.h
* @brief EFM32LG_EBI register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_emu.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_emu.h
* @brief EFM32LG_EMU register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_etm.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_etm.h
* @brief EFM32LG_ETM register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_gpio.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_gpio.h
* @brief EFM32LG_GPIO register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_gpio_p.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_gpio_p.h
* @brief EFM32LG_GPIO_P register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_i2c.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_i2c.h
* @brief EFM32LG_I2C register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_lcd.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_lcd.h
* @brief EFM32LG_LCD register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_lesense.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_lesense.h
* @brief EFM32LG_LESENSE register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_lesense_buf.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_lesense_buf.h
* @brief EFM32LG_LESENSE_BUF register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_lesense_ch.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_lesense_ch.h
* @brief EFM32LG_LESENSE_CH register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
4 changes: 2 additions & 2 deletions cpu/efm32lg/include/efm32lg_lesense_st.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**************************************************************************//**
* @file efm32lg_lesense_st.h
* @brief EFM32LG_LESENSE_ST register and bit field definitions
* @version 4.2.1
* @version 4.3.0
******************************************************************************
* @section License
* <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
******************************************************************************
*
* Permission is granted to anyone to use this software for any purpose,
Expand Down
Loading

0 comments on commit 125b393

Please sign in to comment.