1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

32 Commits

Author SHA1 Message Date
Joakim Nohlgård
742bcad912 kinetis: Unify cpu.c, update clocking initialization
Unify cpu_init for all Kinetis CPUs to reduce code duplication.
Updated the MCG driver implementation to make the configuration easier.
Most clock settings are initialized by kinetis_mcg_init() called from
cpu_init. Board specific external clock source initialization
(FRDM-K64F, PhyNode) needs to be performed in board_init instead of
in cpu_init.
2017-08-01 16:30:19 +02:00
Martine Lenders
3686b2cba5 Merge pull request #7394 from gebart/pr/kinetis-periph-docs
kinetis: Update Doxygen
2017-07-29 11:29:32 +02:00
Joakim Nohlgård
60a5c85ca8 kinetis: Merge cpu_conf settings into kinetis_common 2017-07-22 15:51:25 +02:00
Joakim Nohlgård
86ae36b5be kinetis: Update documentation page titles 2017-07-20 18:07:29 +02:00
Joakim Nohlgård
156c7ec58c boards/frdm-common: Introduce frdm-common for shared files for all FRDM boards 2017-07-18 08:39:21 +02:00
Joakim Nohlgård
a63c0a84a6 kinetis: Use bit.h functions 2017-06-09 05:19:13 +02:00
Joakim Nohlgård
7548c509e6 Merge pull request #7101 from haukepetersen/opt_kinetis_rmsymlinks
cpu/kinetis: prevent use of symlinks for ld-scripts
2017-06-01 06:35:43 +02:00
Hauke Petersen
9b7ece6827 cpu/kinetis: prevent use of symlinks for ld-scripts
The use of symbolic links leads to trouble in certain environments
(e.g. vagrant under Win). This PR gets rid of symlinks and uses
variables in the Makefiles to map to the correct linkerscripts
instead.
2017-05-26 16:07:48 +02:00
Joakim Nohlgård
e618e6dfb4 kinetis: Unify default ISR definitions 2017-05-02 10:52:43 +02:00
Joakim Nohlgård
1079866b33 k64f: Use kinetis_common ldscript 2017-04-13 14:42:55 +02:00
89c5507239 Merge pull request #6788 from gebart/pr/kinetis-lptimer-latch-macro
kinetis: Remove LPTIMER_CNR_NEEDS_LATCHING
2017-04-05 16:14:57 +02:00
Francisco Acosta
ffd67cacea Merge pull request #6789 from gebart/pr/cpu-model-redundant
kinetis: Remove duplicate CPU_MODEL CFLAGS definition
2017-04-05 16:08:33 +02:00
Joakim Nohlgård
7f8cde177b kinetis: Remove LPTIMER_CNR_NEEDS_LATCHING
The macro is no longer used after the timer driver was refactored
2017-04-05 09:04:54 +02:00
Joakim Nohlgård
339a4da9dc Makefiles: move to new directory /makefiles 2017-04-04 15:11:54 +02:00
Joakim Nohlgård
d578f9bfdc kinetis: Remove duplicate CPU_MODEL CFLAGS definition
These are already provided by cortexm_common
2017-03-25 18:28:35 +01:00
Joakim Nohlgård
d73e6872ba kinetis: Refactor interrupt vector definition
... to match the vector definition in other Cortex-M platforms
2017-03-24 15:01:20 +01:00
Hauke Petersen
37d4f44379 cpus: mv vendor headers to include/vendor/. 2017-03-07 08:55:15 +01:00
Hauke Petersen
4bfce892d3 drivers/periph&cpu: add and use common periph_init() 2017-01-25 16:46:46 +01:00
245f60edfa cpu: fix typo in author email 2017-01-19 21:45:23 +01:00
0194091673 remove obsolete lpm code 2017-01-12 11:24:15 +01:00
560a509036 make: remove trailing slash from BINDIR variable 2016-10-18 23:27:59 +02:00
5ab97fe38b cpu: build cortexm vectors.c without LTO 2016-08-29 13:30:17 +02:00
zhuoshuguo
1cbe79a373 CPU: fix include header guards
Fix cpu/lpc2387/include/lpc2387.h
2016-06-08 16:38:20 +02:00
Hauke Petersen
58e2b93b7b cpu/k64f: moved include of mcg.h to cpu.c 2016-03-14 13:06:24 +01:00
6881f65f46 cpu: cortexm*: move cpu_conf.h stuff from cpu.h into cpu_conf_common.h 2016-03-05 18:20:17 +01:00
Hauke Petersen
d80a661486 Merge pull request #4761 from haukepetersen/opt_cpuid
drivers/cpuid: fixed and unified CPUID driver implementations
2016-02-08 18:18:53 +01:00
Hauke Petersen
940097336a cpu: cleanup and unification of CPUID implementations
- moved definition of CPUID_LEN to periph_cpu.h
- fixed some doxygen
- simplyfied some implementations
2016-02-08 14:36:03 +01:00
Joakim Nohlgård
a1d2ecc3de cpu/k64f: Add __attribute__((used)) to interrupt vector 2016-02-08 13:07:52 +01:00
Joakim Nohlgård
142c28094e kinetis_common: Refactor GPIO implementation
This is a rewrite of the Kinetis GPIO driver which follows the
refactored API in [1]. Pins are specified using the GPIO_PIN(PORT_x, y)
macro, e.g. GPIO_PIN(PORT_E, 25) for the PTE25 pin.

The interrupt pin handling is now implemented as a linked list, this
is more memory efficient, but with a minor variation in interrupt
latency depending on in what order the pins were initialized at
runtime.

Because the linked list entries are taken from a shared pool, there is
also the possibility of running out of available configuration slots,
define the preprocessor macro GPIO_INT_POOL_SIZE in periph_conf.h if
you need more than 16 pins configured for interrupts in the same
application.

[1]: https://github.com/RIOT-OS/RIOT/pull/3095
2015-10-28 14:12:19 +01:00
Johann Fischer
e95afc80fb kinetis_common: use cortexm_common ldscript
kinetis.ld includes cortexm_common ldscript, the fields for the
isr vectors and fcfield remain in kinetis.ld.
2015-10-23 12:01:22 +02:00
Joakim Gebart
ed81e35e4c cpu/kinetis_common: refactor ldscripts
- Merged the two kinetis_common ldscripts into a single script.
 - Updated cpus to use the new script
 - Updated K60 to merge sram_l and sram_u into one segment
2015-07-08 19:20:00 +02:00
Johann F
d614cbe066 cpu/k64f: initial import for the Freescale K64F Cortex-M4 MCU 2015-07-01 23:08:02 +02:00