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

179 Commits

Author SHA1 Message Date
Joakim Nohlgård
c25613fd5c mulle: Update LPTMR config 2018-05-22 16:45:41 +02:00
cb991cd47d boards: use RIOTTOOLS variable 2018-05-15 11:23:44 +02:00
70802fc652 boards*: cleanup doxygen
- replace brief with name where required
- remove some unwanted empty lines
- fix missing closing doxygen name block
2018-04-18 12:08:56 +02:00
Joakim Nohlgård
c54f6b4fcf kinetis: Refactor clock generator initialization 2018-04-17 06:59:22 +02:00
Joakim Nohlgård
ebeaa2b6fc mulle: Fix off-by-1 error in clock dividers
The comment says the config should yield 24 MHz flash clock, but the
settings were configured to divide-by-3. (48 MHz / 3 = 16 MHz)
2018-04-12 13:03:54 +02:00
Gaëtan Harter
fff5810191 Makefile.include: FIX .DEFAULT_GOAL not being all
.DEFAULT_GOAL was reset many times which removed 'all' from being the default
goal.
By chance it was then set to `link` so was working by some magic.
2018-03-28 16:59:00 +02:00
942b0dd064 boards/mulle: fix driver params usage 2018-02-28 18:28:13 +01:00
Joakim Nohlgård
b61eeb9fe0 kinetis: Allow per-board config of ADC ref
ADC reference can be external pin or internal VREF module on most
Kinetis CPUs.
2018-02-14 15:16:41 +01:00
b78c96ffc7 boards/*: make brief description consistent 2018-01-24 08:30:56 +01:00
9ecc80fb35 boards/mulle: fix doxygen invalid use of '@brief' 2018-01-16 16:08:41 +01:00
Joakim Nohlgård
f4e9cad85a boards: Separate boards from debug adapter configuration 2017-11-17 10:03:05 +01:00
Joakim Nohlgård
925a908d95 kinetis: Update RNGA driver configuration to automatically detect the module 2017-11-10 10:43:00 +01:00
Joakim Nohlgård
22c52bd3a8 kinetis: Unify all Kinetis CPUs in one directory 2017-11-10 10:42:59 +01:00
Joakim Nohlgård
00a0740fcc kinetis: Add support for LPUART module in parallel with UART module
A dispatcher function is implemented for directing writes to the correct
function. The dispatcher is bypassed completely if the CPU only contain
one kind of UART module.

There are at least two different UART hardware modules deployed in
different Kinetis CPU families (or possibly three or more when counting
variations of the UART module). The UART module is an older 8 bit module
with advanced functionality, while the LPUART is a 32 bit module with
focus on low power consumption.

 - The older families in the K series all have UART modules.
 - The K22F family have both UART and LPUART modules in the same CPU.
 - Older L series (e.g. KL25Z) have two variations of the UART module
 - Newer L series (e.g. KL43Z) have LPUART modules, and sometimes
   UART as well.
 - Newer W series (KW41Z) have only LPUART
2017-11-07 14:19:42 +01:00
172c9e8066 boards: mulle: always select periph_rtt 2017-11-06 12:01:19 +01:00
ae51dc55d0 boards: adapt to reorganized CPU Makefile.features 2017-11-02 12:59:46 +01:00
Francisco Acosta
ba2e55bc93
Merge pull request #7436 from gebart/pr/mulle-rtt-config
mulle: Update RTT config to match other Kinetis boards
2017-10-31 15:38:14 +01:00
Joakim Nohlgård
887ddcec69 mulle: Update flash verify script to use ELF version 2017-10-18 14:34:20 +02:00
Joakim Nohlgård
4ee2e0c82b mulle: Remove second flash bank declaration from OpenOCD configuration
This is no longer required and causes problems with modern OpenOCD which
will automatically add all flash banks when probing Kinetis CPUs.
2017-10-05 12:33:37 +02:00
02e055fc81 make: include cpu Makefile.features from board Makefile.features 2017-09-14 13:15:52 +02:00
Hauke Petersen
7ea1e9d127 Merge pull request #6572 from gebart/pr/mulle-lis3dh-settings
mulle: Use hardware CS for on-board LIS3DH
2017-08-24 16:52:27 +02:00
Hauke Petersen
5809c1940c boards: don't redefine xtimer default values 2017-08-18 11:18:45 +02:00
Joakim Nohlgård
c235ca3b7e mulle: Remove unused configuration 2017-08-01 16:43:53 +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
Joakim Nohlgård
9210f0db7d mulle: Update RTT config to match other Kinetis boards 2017-08-01 14:25:08 +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
Hauke Petersen
6e967f9776 boards/kinetis-based: beautify ADC configuration 2017-07-14 15:27:18 +02:00
Joakim Nohlgård
a63c0a84a6 kinetis: Use bit.h functions 2017-06-09 05:19:13 +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
Martine Lenders
4cd579b236 Merge pull request #6809 from gebart/pr/mulle-led-macros
mulle: Streamline LED macros
2017-05-11 14:45:42 +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
Francisco Acosta
7333016547 Merge pull request #6791 from gebart/pr/kinetis-ldscript-unification
kinetis: move ldscripts to kinetis_common for easier reuse
2017-04-18 10:38:41 +02:00
Martine Lenders
b1547ffd4f doc: boards: unify board names 2017-04-14 02:23:20 +02:00
Joakim Nohlgård
5203ad2643 k60: Use kinetis_common ldscript, rectify CPU_MODEL to full part number 2017-04-13 14:42:56 +02:00
Joakim Nohlgård
a107a416cf kinetis: Refactor UART driver 2017-04-09 17:21:38 +02:00
Joakim Nohlgård
4a9cb807c6 k60: Remove (broken) support for first revision K60 hardware
The CPU has multiple issues and several parts of the platform code
does not even compile cleanly for this CPU in the current state.

This removes support for parts MK60DN256ZVLL10, MK60DN512ZVLL10
(note the Z) CPUs with this part number were used in Mulle v0.60 which
only has been used in some in-house projects at Eistec and LTU.
2017-04-07 08:39:49 +02:00
DipSwitch
a322200582 cpu: remove superfluous SystemCoreClockUpdate 2017-04-06 10:19:27 +02:00
Joakim Nohlgård
339a4da9dc Makefiles: move to new directory /makefiles 2017-04-04 15:11:54 +02:00
Vincent Dupont
3af13e70ee Merge pull request #6810 from gebart/pr/mulle-hwcs
mulle: Configure hardware CS for all on-board SPI slaves
2017-03-30 11:26:22 +02:00
Joakim Nohlgård
2c6088de55 mulle: Add a configuration for the onboard flash memory 2017-03-29 16:52:11 +02:00
Joakim Nohlgård
ba816a0b5f mulle: Configure hardware CS for all on-board SPI slaves 2017-03-29 13:07:19 +02:00
Joakim Nohlgård
7ede2218b2 mulle: Streamline LED macros 2017-03-28 17:08:54 +02:00
Joakim Nohlgård
039d9ac33e mulle: Use hardware CS for on-board LIS3DH 2017-03-28 17:07:55 +02:00
Joakim Nohlgård
8f81121f29 boards/mulle: Add FRAM to DevFS 2017-03-07 17:59:59 +01:00
a3497539c2 boards: fix PWM doxygen doc in periph_conf 2017-02-16 17:59:21 +01:00
Hauke Petersen
ed2bb9d3f8 drivers/lis3dh: fixed bug and simplified init()
- changed to SPI_MODE_0
- made init() function use the params struct as parameter
2017-01-26 10:12:44 +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
Oleg Hahm
7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01:00
Hauke Petersen
b09fdc6a0a boards/mulle: adapted PWM configuration 2017-01-05 10:55:15 +01:00
10e9336c78 boards: adapt to automatically included boards/$board/Makefile.dep 2016-09-29 15:41:12 +02:00
b3a061e0ab sys: remove config module 2016-08-27 07:57:09 +02:00
kYc0o
e443b90815 Merge pull request #5452 from locicontrols/find-tty
Adjust find-tty.sh to return all matches, then use it in boards/cc2538dk
2016-07-22 16:01:46 +02:00
Joakim Nohlgård
8dad08289c boards/mulle: Update timer configuration to match driver modifications 2016-07-07 13:38:28 +02:00
Ian Martin
b1946e6715 dist: tools: let find-tty.sh return all matches, not just the first 2016-05-18 15:33:01 -04:00
Peter Kietzmann
9931f4c902 Merge pull request #5337 from gebart/pr/mulle-pta17-adc
boards/mulle: PTA17 analog input is on ADC1 module
2016-04-26 20:35:34 +02:00
kYc0o
ac724f00ba Merge pull request #4435 from thomaseichinger/pr/mulle_serial_port_osx
boards/mulle: mulle boards' serial port is derived from its serial nr
2016-04-20 18:46:31 +02:00
Joakim Nohlgård
e6183f3041 boards/mulle: PTA17 analog input is on ADC1 module 2016-04-18 11:41:38 +02:00
Joakim Nohlgård
99deb32911 boards/mulle: Add SAUL ADC parameters 2016-04-08 10:18:13 +02:00
Thomas Eichinger
d25fb8a8a8 boards/mulle: mulle boards' serial port is derived from its serial nr 2016-04-02 14:04:46 -03:00
c3f7186d4e unify usage of inline assembly 2016-03-31 22:23:35 +02:00
Oleg Hahm
10f5f1aa33 make: introduce netif_default pseudomodule
Additionally the dependencies for GNRC specific modules are centralized in Makefile.dep.
2016-03-24 16:47:30 +01:00
Hauke Petersen
2510fe03f5 Merge pull request #4646 from authmillenon/at86rf2xx/api/netdev2
at86rf2xx: port to netdev2
2016-03-24 15:03:15 +01:00
Martine Lenders
5bfc9e43fb at86rf2xx: port to netdev2 2016-03-23 17:45:16 +01:00
Joakim Nohlgård
8c154d47ad cpu/kinetis_common: Implement DAC periph driver 2016-03-22 06:06:56 +01:00
Hauke Petersen
05730e48ba Merge pull request #4860 from gebart/pr/mulle-saul-gpio
boards/mulle: Add SAUL GPIO parameters for onboard LEDs
2016-03-21 17:06:50 +01:00
Joakim Nohlgård
6fcefc2bb8 boards/mulle: Add SAUL GPIO parameters for onboard LEDs 2016-03-19 13:27:51 +01:00
Joakim Nohlgård
bf755d025d boards/mulle: Add more ADC lines to default configuration 2016-03-19 13:21:57 +01:00
Hauke Petersen
e524cb89d7 boards/mulle: adapted to GPIO driver changes 2016-03-17 14:55:31 +01:00
Hauke Petersen
07c303ce73 boards/mulle: unified LED defines 2016-03-15 16:24:49 +01:00
Hauke Petersen
b9824b9e49 Merge pull request #4956 from gebart/pr/kinetis-pwm
cpu/kinetis_common: Use gpio_init_port for PWM pin handling
2016-03-15 11:11:13 +01:00
Peter Kietzmann
513ad7176e Merge pull request #4985 from gebart/pr/mulle-leds
boards/mulle: Avoid RMW bitbanding in LED macros
2016-03-15 09:22:01 +01:00
Joakim Nohlgård
65bb26f0b4 cpu/kinetis_common: Use gpio_init_port for PWM pin handling 2016-03-14 17:52:51 +01:00
Hauke Petersen
b5d03dd4e9 boards/mulle: adapted to ADC driver changes 2016-03-14 13:06:24 +01:00
Joakim Nohlgård
ae108581d3 boards/*/Makefile.include: replace $(shell ls) by native Makefile functions 2016-03-11 15:05:06 +01:00
Joakim Nohlgård
44fcde36ab boards/mulle: Avoid RMW bitbanding in LED macros 2016-03-08 09:48:10 +01:00
Martine Lenders
bd83828eda Merge pull request #4947 from gebart/pr/mulle-programmer-0.70-default
boards/mulle: Default to programmer version 0.70
2016-03-04 05:41:49 +01:00
Hauke Petersen
af48dadb26 Merge pull request #4807 from gebart/pr/saul-lis3dh
drivers/lis3dh: Add SAUL support
2016-03-02 13:23:29 +01:00
Joakim Nohlgård
5e78177c27 boards/mulle: Default to programmer version 0.70 2016-03-02 13:06:32 +01:00
Hauke Petersen
fe5023b7d4 boards: adapted to HWRNG changes 2016-02-14 12:59:47 +01:00
Joakim Nohlgård
91ebc86dab boards/mulle: Add LIS3DH SAUL auto init parameters 2016-02-13 21:25:11 +01:00
Joakim Nohlgård
7835ab2be7 make: Move BOARD and CPU includes to Makefile.modules 2016-02-10 16:37:03 +01:00
Joakim Nohlgård
fae9a092fd boards: Remove Makefile.include.cortexm_common 2016-02-10 16:37:03 +01:00
Hauke Petersen
9ddd13b0b8 boards: removed F_CPU from periph_conf.h 2016-01-27 09:52:44 +01:00
Hauke Petersen
db25206a58 boards: use default values for STDIO defines 2016-01-05 12:08:31 +01:00
Hauke Petersen
ac2b9f2524 boards: changed module name to 'board' 2015-12-07 17:53:22 +01:00
Oleg Hahm
d65d213def CI: split up Cortex-M4 in two groups 2015-12-03 17:38:24 +01:00
Hauke Petersen
af067e9428 boards/mulle: use default at86rf2xx_params.h 2015-11-19 16:25:40 +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
Peter Kietzmann
c59f2450a7 Merge pull request #4133 from gebart/pr/mulle-xtimer-init
mulle: Initialize xtimer early to support nvram usage in board_init
2015-10-22 11:49:02 +02:00
Peter Kietzmann
24a82833f1 Merge pull request #4128 from haukepetersen/opt_boards_makefeat
boards: cleaned up entries in Makefile.features
2015-10-22 11:05:45 +02:00
Joakim Nohlgård
043deca350 mulle: Initialize xtimer early to support nvram usage in board_init 2015-10-22 07:54:25 +02:00
Hauke Petersen
528e832c90 boards: cleaned up entries in Makefile.features 2015-10-21 16:45:21 +02:00
Joakim Gebart
22af0cca80 mulle: Initialize NVRAM storage at boot, update boot counter
The boot counter is incremented on each boot. Still missing is an
interface for reading the boot counter from an application.
2015-10-13 18:19:34 +02:00
Joakim Nohlgård
98c465008b all: Update @gebart family name, email 2015-09-20 13:47:39 +02:00
Hauke Petersen
fc3c0f373c Merge pull request #3780 from haukepetersen/add_test_periph_timer
tests: added test for periph_timer plus adaption
2015-09-18 18:03:32 +02:00
Hauke Petersen
1d393fae87 baords: s/TIMER_DEV/TIMER_BASE/ for kinetis boards 2015-09-17 13:57:58 +02:00