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
Fixes a problem with make buildtest if TARGET=mulle and no USB serial device connected:
$ make buildtest
Warning: no PORT set!
Building for Warning: .. failed
.../riot/Makefile.include:110: *** The specified board Warning: does not exist.. Stop.
.../riot/Makefile.include:110: *** The specified board Warning: does not exist.. Stop.
Building for no (no linking) .. failed
.../riot/Makefile.include:110: *** The specified board no does not exist.. Stop.
.../riot/Makefile.include:110: *** The specified board no does not exist.. Stop.
Building for PORT .. failed
.../riot/Makefile.include:110: *** The specified board PORT does not exist.. Stop.
.../riot/Makefile.include:110: *** The specified board PORT does not exist.. Stop.
Building for set! .. failed
.../riot/Makefile.include:110: *** The specified board set! does not exist.. Stop.
.../riot/Makefile.include:110: *** The specified board set! does not exist.. Stop.
Building for airfy-beacon (no linking) .. ^C
OpenOCD 0.9.0 added a definition of a single flash bank as
"$_CHIPNAME.flash" (the chip has two flash banks), the new flash bank
definitions are enclosed in catch statements to avoid startup errors.
The original configuration when combined with openocd 0.9.0 caused an
error during flash probing (which happens during GDB connect), because
of three defined flash banks, which made openocd drop the GDB
connection.
* also added a trailing underscore to header guards for consistency
Commit for PR 2623, repairing header file include guards.
This PR is intended to fix the include guards in files under RIOT/boards
SQUASH ME: fix underscore removal overdos
SQUASH ME: consistent macro naming
SQUASH ME: missed that one
SQUASH ME: fixed overdo
SQUASH ME: consistency
Initially supports only Mulles with serial number > 220 (due to missing
MK60DN256ZVLL10 support in k60).
See also: https://github.com/RIOT-OS/RIOT/wiki/Board%3A-Mulle
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>