Joakim Nohlgård
2ac66c8d65
kinetis: Handle CPUs without DAC module (KW2xD)
2017-08-03 21:18:09 +02:00
Joakim Nohlgård
97878f9c6e
kinetis: Add compatibility definitions to common cpu include
2017-08-03 21:18:08 +02:00
Joakim Nohlgård
a67940e382
kinetis: Remove some unused configuration macros from docs
2017-08-01 16:42:49 +02:00
Joakim Nohlgård
10e53fe841
Merge pull request #7379 from gebart/pr/kinetis-clock-init
...
kinetis: Unify cpu.c, update clock initialization code
2017-08-01 16:40:19 +02:00
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
Francisco Acosta
f2efd88f98
Merge pull request #7129 from haukepetersen/opt_periph_sharetimerset
...
cpu: add and use shared code for timer_set()
2017-08-01 15:09:48 +02:00
Joakim Nohlgård
aa67bdbc42
kinetis: Add support for CPUs with RSIM module
...
Some KW series CPUs have no OSC module, but uses the oscillator found in
the built-in transceiver.
2017-08-01 12:03:49 +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
cb9e3c13bf
kinetis: fix capitalization of periph doc headings
2017-07-21 09:57:27 +02:00
Hauke Petersen
3c623f63c3
cpu/kinetis: optimization of DAC driver impl.
...
- use assert() for checking the line parameter
- use 'bit.h' for bitbanding
- simplified code a bit
- unified style of defifining the board configuration
- removed unused configurations form pba-d-01-kw2x and frdm-k64f
2017-07-20 16:44:41 +02:00
Joakim Nohlgård
2194a3366e
kinetis: Update documentation for periph drivers
2017-07-19 17:36:56 +02:00
Joakim Nohlgård
4ceb71e719
cpu/k22f: Add Freescale/NXP Kinetis K22F
2017-07-18 08:39:21 +02:00
Joakim Nohlgård
de8f0b62d9
kinetis: Handle ADC modules without extra ADICLK divider
...
Newer CPUs have alternate clock sources on ADICLK=1 instead of Bus/2
2017-07-18 08:39:21 +02:00
Joakim Nohlgård
676df9a0d7
kinetis: Add support for alternate location for ADC1 clock gate
2017-07-18 08:39:21 +02:00
smlng
01af6d94c4
cpu, periph: retain constness in spi_transfer_bytes
2017-06-29 15:47:13 +02:00
Hauke Petersen
a2bc258af0
drivers/dac: clarified doc and named return values
...
- added more comprehensive doc to dac_init and dac_set
- named return values for dac_init
- use named return values in existing implementations
2017-06-27 12:52:12 +02:00
smlng
692cf96297
doc: fix doxygen grouping of cpu periph drivers
2017-06-26 14:42:11 +02:00
42830d2308
Merge pull request #6916 from gebart/pr/cortexm3-bitband
...
cpu: Add bit manipulation macros for Cortex-M
2017-06-21 12:47:41 +02:00
Joakim Nohlgård
54b68844e0
Merge pull request #7165 from mfrey/kinetis-uart
...
kinetis: Use 9 bit UART config for 8E1, 8O1 modes
2017-06-13 09:04:04 +02:00
Francisco Acosta
5f0b8e5b80
Merge pull request #6978 from gebart/pr/kinetis-mcg
...
kinetis: MCG improvements
2017-06-12 23:27:39 +02:00
Michael Frey
282dafdd25
kinetis: Use 9 bit UART config for 8E1, 8O1 modes
2017-06-11 18:34:27 +02:00
Joakim Nohlgård
a63c0a84a6
kinetis: Use bit.h functions
2017-06-09 05:19:13 +02:00
Hauke Petersen
a1499f4190
cpu: add and use shared code for timer_set()
2017-06-02 12:21:56 +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
Joakim Nohlgård
8efb714edd
kinetis/mcg: Use {} for empty while loops
2017-05-30 08:50:30 +02:00
Joakim Nohlgård
5c34eb4e2c
kinetis: Add support for low-end MCG without PLL
...
Found in Kinetis L series, among others
2017-05-30 08:50:30 +02:00
Joakim Nohlgård
a8450f2952
kinetis: Simplify MCG state traversal algorithm
...
The new implementation uses a precalculated map of which mode to switch
to next if going from mode A to mode B. This simplifies the
implementation for moving between modes which are not direct neighbors.
See mcg.h documentation for a diagram of the state machine for the
clocking modes. Also found in the CPU reference manual of all Kinetis
CPUs, MCG chapter, MCG mode state diagram.
2017-05-30 08:50:30 +02:00
Joakim Nohlgård
f9ed160fe2
cpu/kinetis_common: Add state graph to MCG documentation
2017-05-30 08:50:30 +02:00
Joakim Nohlgård
f6073c0aa4
Merge pull request #6993 from gebart/pr/kinetis-isr
...
kinetis: Unify default ISR definitions
2017-05-30 08:48:50 +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
Martine Lenders
d4693648ba
Merge pull request #7095 from kaspar030/add_headerguard_check_script
...
dist: tools: add headerguard check script
2017-05-24 18:08:29 +02:00
0fcc7d3834
cleanup: apply headerguard script output
2017-05-24 17:54:02 +02:00
Hauke Petersen
867b09c224
cpu/kinetis: make UART mode configurable per board
2017-05-24 14:48:49 +02:00
3d48eee095
cleanup: apply remove_atoi_casts.cocci (coccinelle)
2017-05-13 12:39:48 +02:00
Joakim Nohlgård
e618e6dfb4
kinetis: Unify default ISR definitions
2017-05-02 10:52:43 +02:00
Martine Lenders
0cc15955f6
Merge pull request #6958 from haukepetersen/fix_kinetis_uart
...
cpu/kintis+boards: fixed UART configuration
2017-04-25 17:22:45 +02:00
Hauke Petersen
9dabbddb2f
cpu/kintis+boards: fixed UART configuration
2017-04-25 14:27:33 +02:00
Martine Lenders
38f383c68d
Merge pull request #6703 from OlegHahm/cppcheck_fixes
...
dist: enable cppcheck warnings for all files
2017-04-19 08:18:47 +02:00
Oleg Hahm
242cd6290a
cpu: kinetis: suppress incorrect cppcheck warning
2017-04-14 14:36:16 +02:00
Joakim Nohlgård
12c9004a82
kinetis: Add ldscripts for various memory layouts
2017-04-13 14:42:19 +02:00
Joakim Nohlgård
a107a416cf
kinetis: Refactor UART driver
2017-04-09 17:21:38 +02:00
Joakim Nohlgård
6cda6a6560
periph/cpuid: Unify implementations to a common driver for several platforms
2017-04-05 09:03:49 +02:00
Hauke Petersen
5c7ed2228d
pm_layerd: fix initial value for PM_BLOCKER_INITIAL
...
the current value was a debugging left-over and should
actually be 0.
2017-03-28 19:32:32 +02: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
Vincent Dupont
f656a31e58
cpu/cortexm_common: use linker variable to initialize SCB->VTOR
2017-03-17 18:07:22 +01:00
Hauke Petersen
8064bd9fa9
periph/pwm: remove pwm_(start|stop) + doc
...
- joined start/stop and poweron/poweroff
- added general documentation
2017-02-13 09:37:31 +01:00
Hauke Petersen
2f9e3c89e1
periph/hwrng: use void* buf for hwrng_read()
2017-02-07 13:20:39 +01:00
Hauke Petersen
5bdb3bfa61
misc: aggregated doxygen fixes
2017-01-25 16:46:46 +01:00
Hauke Petersen
5880d0edda
cpu/kinetis+boards: adapted to new SPI API
...
- adapted the SPI driver
- adapted all boards using the CPU
2017-01-25 16:46:05 +01:00