efm32: Add EZR32WG "EZRadio Wonder Gecko" family.
This commit is contained in:
parent
c3889b91df
commit
e8154aa44a
1
Makefile
1
Makefile
@ -32,6 +32,7 @@ TARGETS ?= stm32/f0 stm32/f1 stm32/f2 stm32/f3 stm32/f4 stm32/f7 \
|
|||||||
lpc13xx lpc17xx lpc43xx/m4 lpc43xx/m0 \
|
lpc13xx lpc17xx lpc43xx/m4 lpc43xx/m0 \
|
||||||
lm3s lm4f \
|
lm3s lm4f \
|
||||||
efm32/tg efm32/g efm32/lg efm32/gg efm32/hg efm32/wg \
|
efm32/tg efm32/g efm32/lg efm32/gg efm32/hg efm32/wg \
|
||||||
|
efm32/ezr32wg \
|
||||||
sam/3a sam/3n sam/3s sam/3u sam/3x sam/4l \
|
sam/3a sam/3n sam/3s sam/3u sam/3x sam/4l \
|
||||||
sam/d \
|
sam/d \
|
||||||
vf6xx
|
vf6xx
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
# include <libopencm3/efm32/hg/nvic.h>
|
# include <libopencm3/efm32/hg/nvic.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/nvic.h>
|
# include <libopencm3/efm32/wg/nvic.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/nvic.h>
|
||||||
|
|
||||||
#elif defined(LPC13XX)
|
#elif defined(LPC13XX)
|
||||||
# include <libopencm3/lpc13xx/nvic.h>
|
# include <libopencm3/lpc13xx/nvic.h>
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/acmp.h>
|
# include <libopencm3/efm32/lg/acmp.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/acmp.h>
|
# include <libopencm3/efm32/wg/acmp.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/acmp.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/adc.h>
|
# include <libopencm3/efm32/lg/adc.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/adc.h>
|
# include <libopencm3/efm32/wg/adc.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/adc.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/burtc.h>
|
# include <libopencm3/efm32/lg/burtc.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/burtc.h>
|
# include <libopencm3/efm32/wg/burtc.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/burtc.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
# include <libopencm3/efm32/hg/cmu.h>
|
# include <libopencm3/efm32/hg/cmu.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/cmu.h>
|
# include <libopencm3/efm32/wg/cmu.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/cmu.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/dac.h>
|
# include <libopencm3/efm32/lg/dac.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/dac.h>
|
# include <libopencm3/efm32/wg/dac.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/dac.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/dma.h>
|
# include <libopencm3/efm32/lg/dma.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/dma.h>
|
# include <libopencm3/efm32/wg/dma.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/dma.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/emu.h>
|
# include <libopencm3/efm32/lg/emu.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/emu.h>
|
# include <libopencm3/efm32/wg/emu.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/emu.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
25
include/libopencm3/efm32/ezr32wg/acmp.h
Normal file
25
include/libopencm3/efm32/ezr32wg/acmp.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_ACMP_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_ACMP_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/acmp_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/adc.h
Normal file
25
include/libopencm3/efm32/ezr32wg/adc.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_ADC_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_ADC_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/adc_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/burtc.h
Normal file
25
include/libopencm3/efm32/ezr32wg/burtc.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_BURTC_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_BURTC_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/burtc_common.h>
|
||||||
|
|
||||||
|
#endif
|
32
include/libopencm3/efm32/ezr32wg/cmu.h
Normal file
32
include/libopencm3/efm32/ezr32wg/cmu.h
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_CMU_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_CMU_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/cmu_common.h>
|
||||||
|
|
||||||
|
/* EZR32WG refers to USART0 as USART0RF
|
||||||
|
* because it is connected to the radio MCU.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define CMU_HFPERCLKEN0_USARTRF0 CMU_HFPERCLKEN0_USART0
|
||||||
|
#define CMU_USARTRF0 CMU_USART0
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/dac.h
Normal file
25
include/libopencm3/efm32/ezr32wg/dac.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_DAC_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_DAC_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/dac_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/dma.h
Normal file
25
include/libopencm3/efm32/ezr32wg/dma.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_DMA_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_DMA_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/dma_common.h>
|
||||||
|
|
||||||
|
#endif
|
33
include/libopencm3/efm32/ezr32wg/doc-ezr32wg.h
Normal file
33
include/libopencm3/efm32/ezr32wg/doc-ezr32wg.h
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/** @mainpage libopencm3 EFM32 Wonder Gecko
|
||||||
|
|
||||||
|
@version 1.0.0
|
||||||
|
|
||||||
|
@date 14 January 2016
|
||||||
|
|
||||||
|
API documentation for Silicon Laboratories EZR32 Wonder Gecko Cortex M4 series.
|
||||||
|
|
||||||
|
LGPL License Terms @ref lgpl_license
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @defgroup EZR32WG EZR32 WonderGecko
|
||||||
|
Libraries for Silicon Laboratories EZR32 Wonder Gecko series.
|
||||||
|
|
||||||
|
@version 1.0.0
|
||||||
|
|
||||||
|
@date 14 January 2016
|
||||||
|
|
||||||
|
LGPL License Terms @ref lgpl_license
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @defgroup EZR32LG_defines EZR32 Wonder Gecko Defines
|
||||||
|
|
||||||
|
@brief Defined Constants and Types for the Silicon Laboratories EZR32
|
||||||
|
Wonder Gecko series
|
||||||
|
|
||||||
|
@version 1.0.0
|
||||||
|
|
||||||
|
@date 12 January 2016
|
||||||
|
|
||||||
|
LGPL License Terms @ref lgpl_license
|
||||||
|
*/
|
||||||
|
|
25
include/libopencm3/efm32/ezr32wg/emu.h
Normal file
25
include/libopencm3/efm32/ezr32wg/emu.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_EMU_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_EMU_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/emu_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/gpio.h
Normal file
25
include/libopencm3/efm32/ezr32wg/gpio.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_GPIO_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_GPIO_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/gpio_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/i2c.h
Normal file
25
include/libopencm3/efm32/ezr32wg/i2c.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_I2C_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_I2C_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/i2c_common.h>
|
||||||
|
|
||||||
|
#endif
|
47
include/libopencm3/efm32/ezr32wg/irq.json
Normal file
47
include/libopencm3/efm32/ezr32wg/irq.json
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"_source": "The names and sequence are taken from d0334_ezr32wg_reference_manual.pdf table 5.1.",
|
||||||
|
"irqs": [
|
||||||
|
"dma",
|
||||||
|
"gpio_even",
|
||||||
|
"timer0",
|
||||||
|
"usart0_rx",
|
||||||
|
"usart0_tx",
|
||||||
|
"usb",
|
||||||
|
"acmp01",
|
||||||
|
"adc0",
|
||||||
|
"dac0",
|
||||||
|
"i2c0",
|
||||||
|
"i2c1",
|
||||||
|
"gpio_odd",
|
||||||
|
"timer1",
|
||||||
|
"timer2",
|
||||||
|
"timer3",
|
||||||
|
"usart1_rx",
|
||||||
|
"usart1_tx",
|
||||||
|
"lesense",
|
||||||
|
"usart2_rx",
|
||||||
|
"usart2_tx",
|
||||||
|
"uart0_rx",
|
||||||
|
"uart0_tx",
|
||||||
|
"uart1_rx",
|
||||||
|
"uart1_tx",
|
||||||
|
"leuart0",
|
||||||
|
"leuart1",
|
||||||
|
"letimer0",
|
||||||
|
"pcnt0",
|
||||||
|
"pcnt1",
|
||||||
|
"pcnt2",
|
||||||
|
"rtc",
|
||||||
|
"burtc",
|
||||||
|
"cmu",
|
||||||
|
"vcmp",
|
||||||
|
"lcd",
|
||||||
|
"msc",
|
||||||
|
"aes",
|
||||||
|
"ebi",
|
||||||
|
"emu"
|
||||||
|
],
|
||||||
|
"partname_humanreadable": "EZR32 Wonder Gecko series",
|
||||||
|
"partname_doxygen": "EZR32WG",
|
||||||
|
"includeguard": "LIBOPENCM3_EZR32WG_NVIC_H"
|
||||||
|
}
|
25
include/libopencm3/efm32/ezr32wg/letimer.h
Normal file
25
include/libopencm3/efm32/ezr32wg/letimer.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_LETIMER_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_LETIMER_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/letimer_common.h>
|
||||||
|
|
||||||
|
#endif
|
121
include/libopencm3/efm32/ezr32wg/memorymap.h
Normal file
121
include/libopencm3/efm32/ezr32wg/memorymap.h
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2015 Kuldeep Singh Dhaka <kuldeepdhaka9@gmail.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EZR32WG_MEMORYMAP_H
|
||||||
|
#define LIBOPENCM3_EZR32WG_MEMORYMAP_H
|
||||||
|
|
||||||
|
#include <libopencm3/cm3/memorymap.h>
|
||||||
|
|
||||||
|
#define PERIPH_BASE (0x40000000U)
|
||||||
|
|
||||||
|
/* Device information */
|
||||||
|
#define DI_BASE (0x0FE08000U)
|
||||||
|
|
||||||
|
/* all names are "DI_" + <reg> */
|
||||||
|
#define DI_CMU_LFRCOCTRL MMIO32(DI_BASE + 0x020)
|
||||||
|
#define DI_CMU_HFRCOCTRL MMIO32(DI_BASE + 0x028)
|
||||||
|
#define DI_CMU_AUXHFRCOCTRL MMIO32(DI_BASE + 0x030)
|
||||||
|
#define DI_ADC0_CAL MMIO32(DI_BASE + 0x040)
|
||||||
|
#define DI_ADC0_BIASPROG MMIO32(DI_BASE + 0x048)
|
||||||
|
#define DI_DAC0_CAL MMIO32(DI_BASE + 0x050)
|
||||||
|
#define DI_DAC0_BIASPROG MMIO32(DI_BASE + 0x058)
|
||||||
|
#define DI_ACMP0_CTRL MMIO32(DI_BASE + 0x060)
|
||||||
|
#define DI_ACMP1_CTRL MMIO32(DI_BASE + 0x068)
|
||||||
|
#define DI_CMU_LCDCTRL MMIO32(DI_BASE + 0x078)
|
||||||
|
#define DI_DAC0_OPACTRL MMIO32(DI_BASE + 0x0A0)
|
||||||
|
#define DI_DAC0_OPAOFFSET MMIO32(DI_BASE + 0x0A8)
|
||||||
|
#define DI_EMU_BUINACT MMIO32(DI_BASE + 0x0B0)
|
||||||
|
#define DI_EMU_BUACT MMIO32(DI_BASE + 0x0B8)
|
||||||
|
#define DI_EMU_BUBODBUVINCAL MMIO32(DI_BASE + 0x0C0)
|
||||||
|
#define DI_EMU_BUBODUNREGCAL MMIO32(DI_BASE + 0x0C8)
|
||||||
|
#define DI_MCM_REV_MIN MMIO8(DI_BASE + 0x1AA)
|
||||||
|
#define DI_MCM_REV_MAJ MMIO8(DI_BASE + 0x1AB)
|
||||||
|
#define DI_RADIO_REV_MIN MMIO8(DI_BASE + 0x1AC)
|
||||||
|
#define DI_RADIO_REV_MAJ MMIO8(DI_BASE + 0x1AD)
|
||||||
|
#define DI_RADIO_OPN MMIO8(DI_BASE + 0x1AE)
|
||||||
|
#define DI_DI_CRC MMIO16(DI_BASE + 0x1B0)
|
||||||
|
#define DI_CAL_TEMP_0 MMIO8(DI_BASE + 0x1B2)
|
||||||
|
#define DI_ADC0_CAL_1V25 MMIO16(DI_BASE + 0x1B4)
|
||||||
|
#define DI_ADC0_CAL_2V5 MMIO16(DI_BASE + 0x1B6)
|
||||||
|
#define DI_ADC0_CAL_VDD MMIO16(DI_BASE + 0x1B8)
|
||||||
|
#define DI_ADC0_CAL_5VDIFF MMIO16(DI_BASE + 0x1BA)
|
||||||
|
#define DI_ADC0_CAL_2XVDD MMIO16(DI_BASE + 0x1BC)
|
||||||
|
#define DI_ADC0_TEMP_0_READ_1V25 MMIO16(DI_BASE + 0x1BE)
|
||||||
|
#define DI_DAC0_CAL_1V25 MMIO32(DI_BASE + 0x1C8)
|
||||||
|
#define DI_DAC0_CAL_2V5 MMIO32(DI_BASE + 0x1CC)
|
||||||
|
#define DI_DAC0_CAL_VDD MMIO32(DI_BASE + 0x1D0)
|
||||||
|
#define DI_AUXHFRCO_CALIB_BAND_1 MMIO8(DI_BASE + 0x1D4)
|
||||||
|
#define DI_AUXHFRCO_CALIB_BAND_7 MMIO8(DI_BASE + 0x1D5)
|
||||||
|
#define DI_AUXHFRCO_CALIB_BAND_11 MMIO8(DI_BASE + 0x1D6)
|
||||||
|
#define DI_AUXHFRCO_CALIB_BAND_14 MMIO8(DI_BASE + 0x1D7)
|
||||||
|
#define DI_AUXHFRCO_CALIB_BAND_21 MMIO8(DI_BASE + 0x1D8)
|
||||||
|
#define DI_AUXHFRCO_CALIB_BAND_28 MMIO8(DI_BASE + 0x1D9)
|
||||||
|
#define DI_HFRCO_CALIB_BAND_1 MMIO8(DI_BASE + 0x1DC)
|
||||||
|
#define DI_HFRCO_CALIB_BAND_7 MMIO8(DI_BASE + 0x1DD)
|
||||||
|
#define DI_HFRCO_CALIB_BAND_11 MMIO8(DI_BASE + 0x1DE)
|
||||||
|
#define DI_HFRCO_CALIB_BAND_14 MMIO8(DI_BASE + 0x1DF)
|
||||||
|
#define DI_HFRCO_CALIB_BAND_21 MMIO8(DI_BASE + 0x1E0)
|
||||||
|
#define DI_HFRCO_CALIB_BAND_28 MMIO8(DI_BASE + 0x1E1)
|
||||||
|
#define DI_MEM_INFO_PAGE_SIZE MMIO8(DI_BASE + 0x1E7)
|
||||||
|
#define DI_RADIO_ID MMIO16(DI_BASE + 0x1EE)
|
||||||
|
#define DI_UNIQUE_0 MMIO32(DI_BASE + 0x1F0)
|
||||||
|
#define DI_UNIQUE_1 MMIO32(DI_BASE + 0x1F4)
|
||||||
|
#define DI_MEM_INFO_FLASH MMIO16(DI_BASE + 0x1F8)
|
||||||
|
#define DI_MEM_INFO_RAM MMIO16(DI_BASE + 0x1FA)
|
||||||
|
#define DI_PART_NUMBER MMIO16(DI_BASE + 0x1FC)
|
||||||
|
#define DI_PART_FAMILY MMIO8(DI_BASE + 0x1FE)
|
||||||
|
#define DI_PROD_REV MMIO8(DI_BASE + 0x1FF)
|
||||||
|
|
||||||
|
#define AES_BASE (PERIPH_BASE + 0xE0000)
|
||||||
|
#define RMU_BASE (PERIPH_BASE + 0xCA000)
|
||||||
|
#define CMU_BASE (PERIPH_BASE + 0xC8000)
|
||||||
|
#define EMU_BASE (PERIPH_BASE + 0xC6000)
|
||||||
|
#define USB_BASE (PERIPH_BASE + 0xC4000)
|
||||||
|
#define DMA_BASE (PERIPH_BASE + 0xC2000)
|
||||||
|
#define MSC_BASE (PERIPH_BASE + 0xC0000)
|
||||||
|
#define LESENSE_BASE (PERIPH_BASE + 0x8C000)
|
||||||
|
#define WDOG_BASE (PERIPH_BASE + 0x88000)
|
||||||
|
#define PCNT2_BASE (PERIPH_BASE + 0x86800)
|
||||||
|
#define PCNT1_BASE (PERIPH_BASE + 0x86400)
|
||||||
|
#define PCNT0_BASE (PERIPH_BASE + 0x86000)
|
||||||
|
#define LEUART1_BASE (PERIPH_BASE + 0x84400)
|
||||||
|
#define LEUART0_BASE (PERIPH_BASE + 0x84000)
|
||||||
|
#define LETIMER0_BASE (PERIPH_BASE + 0x82000)
|
||||||
|
#define BURTC_BASE (PERIPH_BASE + 0x81000)
|
||||||
|
#define RTC_BASE (PERIPH_BASE + 0x80000)
|
||||||
|
#define PRS_BASE (PERIPH_BASE + 0xCC000)
|
||||||
|
#define TIMER3_BASE (PERIPH_BASE + 0x10C00)
|
||||||
|
#define TIMER2_BASE (PERIPH_BASE + 0x10800)
|
||||||
|
#define TIMER1_BASE (PERIPH_BASE + 0x10400)
|
||||||
|
#define TIMER0_BASE (PERIPH_BASE + 0x10000)
|
||||||
|
#define UART1_BASE (PERIPH_BASE + 0x0E400)
|
||||||
|
#define UART0_BASE (PERIPH_BASE + 0x0E000)
|
||||||
|
#define USART2_BASE (PERIPH_BASE + 0x0C800)
|
||||||
|
#define USART1_BASE (PERIPH_BASE + 0x0C400)
|
||||||
|
#define USARTRF0_BASE (PERIPH_BASE + 0x0C000)
|
||||||
|
#define I2C1_BASE (PERIPH_BASE + 0x0A400)
|
||||||
|
#define I2C0_BASE (PERIPH_BASE + 0x0A000)
|
||||||
|
#define GPIO_BASE (PERIPH_BASE + 0x06000)
|
||||||
|
#define DAC0_BASE (PERIPH_BASE + 0x04000)
|
||||||
|
#define ADC0_BASE (PERIPH_BASE + 0x02000)
|
||||||
|
#define ACMP1_BASE (PERIPH_BASE + 0x01400)
|
||||||
|
#define ACMP0_BASE (PERIPH_BASE + 0x01000)
|
||||||
|
#define VCMP_BASE (PERIPH_BASE + 0x00000)
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/msc.h
Normal file
25
include/libopencm3/efm32/ezr32wg/msc.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_MSC_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_MSC_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/msc_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/opamp.h
Normal file
25
include/libopencm3/efm32/ezr32wg/opamp.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_OPAMP_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_OPAMP_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/opamp_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/prs.h
Normal file
25
include/libopencm3/efm32/ezr32wg/prs.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_PRS_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_PRS_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/prs_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/rmu.h
Normal file
25
include/libopencm3/efm32/ezr32wg/rmu.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_RMU_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_RMU_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/rmu_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/rtc.h
Normal file
25
include/libopencm3/efm32/ezr32wg/rtc.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_RTC_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_RTC_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/rtc_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/timer.h
Normal file
25
include/libopencm3/efm32/ezr32wg/timer.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_TIMER_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_TIMER_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/timer_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/uart.h
Normal file
25
include/libopencm3/efm32/ezr32wg/uart.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_UART_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_UART_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/uart_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/usart.h
Normal file
25
include/libopencm3/efm32/ezr32wg/usart.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_USART_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_USART_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/usart_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/usb.h
Normal file
25
include/libopencm3/efm32/ezr32wg/usb.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_USB_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_USB_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/usb_common.h>
|
||||||
|
|
||||||
|
#endif
|
25
include/libopencm3/efm32/ezr32wg/wdog.h
Normal file
25
include/libopencm3/efm32/ezr32wg/wdog.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Bob Miller <kbob@jogger-egg.com>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef LIBOPENCM3_EFM32_EZR32WG_WDOG_H
|
||||||
|
#define LIBOPENCM3_EFM32_EZR32WG_WDOG_H
|
||||||
|
|
||||||
|
#include <libopencm3/efm32/common/wdog_common.h>
|
||||||
|
|
||||||
|
#endif
|
@ -23,6 +23,8 @@
|
|||||||
# include <libopencm3/efm32/hg/gpio.h>
|
# include <libopencm3/efm32/hg/gpio.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/gpio.h>
|
# include <libopencm3/efm32/wg/gpio.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/gpio.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/i2c.h>
|
# include <libopencm3/efm32/lg/i2c.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/i2c.h>
|
# include <libopencm3/efm32/wg/i2c.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/i2c.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/letimer.h>
|
# include <libopencm3/efm32/lg/letimer.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/letimer.h>
|
# include <libopencm3/efm32/wg/letimer.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/letimer.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -38,7 +38,8 @@
|
|||||||
"lcd",
|
"lcd",
|
||||||
"msc",
|
"msc",
|
||||||
"aes",
|
"aes",
|
||||||
"ebi"
|
"ebi",
|
||||||
|
"emu"
|
||||||
],
|
],
|
||||||
"partname_humanreadable": "EFM32 Leopard Gecko series",
|
"partname_humanreadable": "EFM32 Leopard Gecko series",
|
||||||
"partname_doxygen": "EFM32LG",
|
"partname_doxygen": "EFM32LG",
|
||||||
|
@ -35,6 +35,8 @@
|
|||||||
# include <libopencm3/efm32/hg/memorymap.h>
|
# include <libopencm3/efm32/hg/memorymap.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/memorymap.h>
|
# include <libopencm3/efm32/wg/memorymap.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/memorymap.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/msc.h>
|
# include <libopencm3/efm32/lg/msc.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/msc.h>
|
# include <libopencm3/efm32/wg/msc.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/msc.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/opamp.h>
|
# include <libopencm3/efm32/lg/opamp.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/opamp.h>
|
# include <libopencm3/efm32/wg/opamp.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/opamp.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/prs.h>
|
# include <libopencm3/efm32/lg/prs.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/prs.h>
|
# include <libopencm3/efm32/wg/prs.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/prs.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/rmu.h>
|
# include <libopencm3/efm32/lg/rmu.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/rmu.h>
|
# include <libopencm3/efm32/wg/rmu.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/rmu.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/rtc.h>
|
# include <libopencm3/efm32/lg/rtc.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/rtc.h>
|
# include <libopencm3/efm32/wg/rtc.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/rtc.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
# include <libopencm3/efm32/hg/timer.h>
|
# include <libopencm3/efm32/hg/timer.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/timer.h>
|
# include <libopencm3/efm32/wg/timer.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/timer.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/uart.h>
|
# include <libopencm3/efm32/lg/uart.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/uart.h>
|
# include <libopencm3/efm32/wg/uart.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/uart.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
# include <libopencm3/efm32/lg/usart.h>
|
# include <libopencm3/efm32/lg/usart.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/usart.h>
|
# include <libopencm3/efm32/wg/usart.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/usart.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
# include <libopencm3/efm32/hg/usb.h>
|
# include <libopencm3/efm32/hg/usb.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/usb.h>
|
# include <libopencm3/efm32/wg/usb.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/usb.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
# include <libopencm3/efm32/hg/wdog.h>
|
# include <libopencm3/efm32/hg/wdog.h>
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include <libopencm3/efm32/wg/wdog.h>
|
# include <libopencm3/efm32/wg/wdog.h>
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include <libopencm3/efm32/ezr32wg/wdog.h>
|
||||||
#else
|
#else
|
||||||
# error "efm32 family not defined."
|
# error "efm32 family not defined."
|
||||||
#endif
|
#endif
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
# include "../efm32/hg/vector_nvic.c"
|
# include "../efm32/hg/vector_nvic.c"
|
||||||
#elif defined(EFM32WG)
|
#elif defined(EFM32WG)
|
||||||
# include "../efm32/wg/vector_nvic.c"
|
# include "../efm32/wg/vector_nvic.c"
|
||||||
|
#elif defined(EZR32WG)
|
||||||
|
# include "../efm32/ezr32wg/vector_nvic.c"
|
||||||
|
|
||||||
#elif defined(LPC13XX)
|
#elif defined(LPC13XX)
|
||||||
# include "../lpc13xx/vector_nvic.c"
|
# include "../lpc13xx/vector_nvic.c"
|
||||||
|
51
lib/efm32/ezr32wg/Makefile
Normal file
51
lib/efm32/ezr32wg/Makefile
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the libopencm3 project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
|
||||||
|
## Copyright (C) 2012 chrysn <chrysn@fsfe.org>
|
||||||
|
## Copyright (C) 2015 Kuldeep Singh Dhaka <kuldeepdhaka9@gmail.com>
|
||||||
|
##
|
||||||
|
## This library is free software: you can redistribute it and/or modify
|
||||||
|
## it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
## the Free Software Foundation, either version 3 of the License, or
|
||||||
|
## (at your option) any later version.
|
||||||
|
##
|
||||||
|
## This library is distributed in the hope that it will be useful,
|
||||||
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
## GNU Lesser General Public License for more details.
|
||||||
|
##
|
||||||
|
## You should have received a copy of the GNU Lesser General Public License
|
||||||
|
## along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
##
|
||||||
|
|
||||||
|
LIBNAME = libopencm3_ezr32wg
|
||||||
|
SRCLIBDIR ?= ../..
|
||||||
|
FAMILY = EZR32WG
|
||||||
|
|
||||||
|
PREFIX ?= arm-none-eabi
|
||||||
|
#PREFIX ?= arm-elf
|
||||||
|
CC = $(PREFIX)-gcc
|
||||||
|
AR = $(PREFIX)-ar
|
||||||
|
TGT_CFLAGS = -Os \
|
||||||
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
-Wundef -Wshadow \
|
||||||
|
-I../../../include -fno-common \
|
||||||
|
-mcpu=cortex-m4 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||||||
|
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
|
||||||
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
|
# ARFLAGS = rcsv
|
||||||
|
ARFLAGS = rcs
|
||||||
|
OBJS =
|
||||||
|
|
||||||
|
OBJS = gpio_common.o cmu_common.o prs_common.o
|
||||||
|
OBJS += adc_common.o dma_common.o timer_common.o
|
||||||
|
OBJS += dac_common.o
|
||||||
|
|
||||||
|
OBJS += usb.o usb_control.o usb_standard.o
|
||||||
|
OBJS += usb_efm32.o
|
||||||
|
|
||||||
|
VPATH += ../../usb:../:../../cm3:../common
|
||||||
|
|
||||||
|
include ../../Makefile.include
|
106
lib/efm32/ezr32wg/libopencm3_ezr32wg.ld
Normal file
106
lib/efm32/ezr32wg/libopencm3_ezr32wg.ld
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the libopencm3 project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
|
||||||
|
*
|
||||||
|
* This library is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Generic linker script for EFM32 targets using libopencm3. */
|
||||||
|
|
||||||
|
/* Memory regions must be defined in the ld script which includes this one. */
|
||||||
|
|
||||||
|
/* Enforce emmition of the vector table. */
|
||||||
|
EXTERN (vector_table)
|
||||||
|
|
||||||
|
/* Define the entry point of the output file. */
|
||||||
|
ENTRY(reset_handler)
|
||||||
|
|
||||||
|
/* Define sections. */
|
||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.text : {
|
||||||
|
*(.vectors) /* Vector table */
|
||||||
|
*(.text*) /* Program code */
|
||||||
|
. = ALIGN(4);
|
||||||
|
*(.rodata*) /* Read-only data */
|
||||||
|
. = ALIGN(4);
|
||||||
|
} >rom
|
||||||
|
|
||||||
|
/* C++ Static constructors/destructors, also used for __attribute__
|
||||||
|
* ((constructor)) and the likes */
|
||||||
|
.preinit_array : {
|
||||||
|
. = ALIGN(4);
|
||||||
|
__preinit_array_start = .;
|
||||||
|
KEEP (*(.preinit_array))
|
||||||
|
__preinit_array_end = .;
|
||||||
|
} >rom
|
||||||
|
.init_array : {
|
||||||
|
. = ALIGN(4);
|
||||||
|
__init_array_start = .;
|
||||||
|
KEEP (*(SORT(.init_array.*)))
|
||||||
|
KEEP (*(.init_array))
|
||||||
|
__init_array_end = .;
|
||||||
|
} >rom
|
||||||
|
.fini_array : {
|
||||||
|
. = ALIGN(4);
|
||||||
|
__fini_array_start = .;
|
||||||
|
KEEP (*(.fini_array))
|
||||||
|
KEEP (*(SORT(.fini_array.*)))
|
||||||
|
__fini_array_end = .;
|
||||||
|
} >rom
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Another section used by C++ stuff, appears when using newlib with
|
||||||
|
* 64bit (long long) printf support
|
||||||
|
*/
|
||||||
|
.ARM.extab : {
|
||||||
|
*(.ARM.extab*)
|
||||||
|
} >rom
|
||||||
|
.ARM.exidx : {
|
||||||
|
__exidx_start = .;
|
||||||
|
*(.ARM.exidx*)
|
||||||
|
__exidx_end = .;
|
||||||
|
} >rom
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
_etext = .;
|
||||||
|
|
||||||
|
.data : {
|
||||||
|
_data = .;
|
||||||
|
*(.data*) /* Read-write initialized data */
|
||||||
|
. = ALIGN(4);
|
||||||
|
_edata = .;
|
||||||
|
} >ram AT >rom
|
||||||
|
_data_loadaddr = LOADADDR(.data);
|
||||||
|
|
||||||
|
.bss : {
|
||||||
|
*(.bss*) /* Read-write zero initialized data */
|
||||||
|
*(COMMON)
|
||||||
|
. = ALIGN(4);
|
||||||
|
_ebss = .;
|
||||||
|
} >ram
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The .eh_frame section appears to be used for C++ exception handling.
|
||||||
|
* You may need to fix this if you're using C++.
|
||||||
|
*/
|
||||||
|
/DISCARD/ : { *(.eh_frame) }
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
end = .;
|
||||||
|
}
|
||||||
|
|
||||||
|
PROVIDE(_stack = ORIGIN(ram) + LENGTH(ram));
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user