Steven Cooreman
035c08dcfd
[EFR32] Add initial support for EFR32
...
Adding target definitions and the HAL implementation for EFR32 Mighty Gecko
2016-10-27 23:26:27 -07:00
Steven Cooreman
214d1be2a9
[EFM32] Move board controller pin setting to config system
2016-10-27 23:22:11 -07:00
Steven Cooreman
5a885137f0
[EFM32] Move board controller pin setting to config system
2016-10-27 23:21:39 -07:00
Steven Cooreman
a9fe108266
[EFM32] NVIC virtualization was not committed for CM0
...
This is a workaround to fix the breaking build until someone adds NVIC virtualization to the CM0plus CMSIS header
2016-10-25 09:51:25 -07:00
Steven Cooreman
220363b099
This one slipped through
2016-10-24 18:30:03 +02:00
Alessandro Angelino
eb86d12aee
EFM32: Add support for uVisor
2016-10-24 18:29:51 +02:00
Alessandro Angelino
371d652a04
EFM32: Use SECURE_ACCESS to access the ROM table
...
To allow enabling of uVisor on EFM32, the ROM table must be accessed
through the CMSIS-provided SECURE_ACCESS macro.
2016-10-24 18:29:37 +02:00
Steven Cooreman
0b6ed71626
[EFM32] Move clock configuration to target settings
...
Moving the per-board clock configuration (which oscillators are available on the board, their frequencies, and which ones to use) as config options to the target database. This way, they're more easily overridable when third parties start creating boards with EFM32 MCUs
2016-10-24 18:29:25 +02:00
Steven Cooreman
758d160384
[EFM32] Collapse NVIC relocation handling
...
Gecko SDK 5.0.0 provides a convenient define for the amount of vectors wired on the chip, so we can use that to collapse the cmsis_nvic.h header
2016-10-24 18:29:00 +02:00
Steven Cooreman
3c450f1b37
[EFM32] Update emlib to version 5.0.0 in preparation for new targets
...
* Updated cmsis headers to match emlib 5.0.0
* Updated GPIO handling to match new header guards in use
* Updated linker scripts to match emlib 5.0.0
2016-10-24 18:26:02 +02:00
Steven Cooreman
bb03e8c9e4
[EFM32] More condensation
2016-10-24 18:25:21 +02:00
Steven Cooreman
6315147faf
[EFM32] Use serial configuration from platform
...
mbed added configuration options for default serial baud rate and stdio baud rate, so we can get rid of the workaround in the HAL
2016-10-24 18:25:11 +02:00
Steven Cooreman
1f3003fb22
[EFM32] Small fixes
...
* Use mbed_error
* Include cmsis headers by default when grabbing device.h
* Get rid of enum to uint casting in pinmap
2016-10-24 18:24:59 +02:00
Steven Cooreman
4df6986100
[EFM32] Use targets.json to improve directory structure
...
Now that we have targets.json, we get target inheritance and can use it to clean up the EFM32 folder structure.
* In the top-level EFM32 folder, there are now folders per MCU family (Giant, Leopard, ...)
* Those family folders contain the CMSIS headers in the 'device' subfolder, as well as global family headers (i.e. mapping of pins to peripherals)
* Inside of the family folder, there is a per-target folder containing target settings. In the future, we'll want to get rid of those by using the config system provided by targets.json
2016-10-24 18:24:49 +02:00
Steven Cooreman
6574f4d0a4
[EFM32] Clean up per-target Modules.h
...
Removed deprecated defines MODULES_SIZE_* and moved the setting for the SPI asynch transfer queue size to targets.json, where it apparently belongs
2016-10-24 18:24:33 +02:00
Steven Cooreman
b766c48744
[EFM32] Condense common header files
...
First wave of squashing header files in order to get to a more sensible folder tree.
* Moved header files with 100% similarity to common folder
* Created a CommonPinNames.h header containing the base pin names P[A-F][0-15] and NC
2016-10-24 18:23:51 +02:00
Alessandro Angelino
f818aa17a2
EFM32: Add support for uVisor
2016-10-10 11:43:56 +01:00
Alessandro Angelino
b01b7c5019
EFM32: Use SECURE_ACCESS to access the ROM table
...
To allow enabling of uVisor on EFM32, the ROM table must be accessed
through the CMSIS-provided SECURE_ACCESS macro.
2016-10-10 11:43:56 +01:00
Alessandro Angelino
d1ad26f7ea
EFM32: Make NVIC functions virtualizable
...
With CMSIS 5, the NVIC functions are virtualizable. Rename the EFM32
NVIC functions to support being virtualized.
2016-10-10 11:43:56 +01:00
Christopher Haster
26ced98734
restructure - Restructured cmsis directory
...
targets/cmsis -> cmsis
targets/cmsis/TARGET_* -> targets/TARGET_*/device
targets/cmsis/TARGET_*/mbed_rtx.h -> targets/TARGET_*/mbed_rtx.h
2016-10-04 17:51:44 -05:00
Christopher Haster
0bad622a16
restructure - Moved targets out to top level
...
hal/targets -> targets
hal/targets.json -> targets/targets.json
2016-09-30 19:18:09 -05:00