Gaëtan Harter
1be5b7b10b
cpu: do not locally export compilation variables
...
These are already exported by `makefiles/vars.inc.mk`.
It is a prerequisite to allow handling compilation without global exports.
2019-08-29 10:35:53 +02:00
Benjamin Valentin
8af04cd939
boards: make use of ARRAY_SIZE macro
2019-08-06 19:43:54 +02:00
smlng
2de4b3011b
periph_common: add as dependency to periph drivers
...
Rational: the periph_common module is required by (most) other periph drivers
and also during startup of the CPU/MCU to run periph_init. The latter is only
required if other periph drivers are used, hence periph_common should be a
depency of periph_* modules and *not* of the CPU/MCU. This PR fixes that
by making periph_common a depency of periph_* and removing the explicit
include in the CPU/MCU implementation.
2019-06-03 13:44:10 +02:00
Hauke Petersen
da899dafbf
cpu/mips_pic32/gpio: remove gpio_init_int stub
2018-09-20 14:50:32 +02:00
Neil Jones
e297a71e8c
mips: Correct usage of USEMODULE
...
In CPU definitions we should not be explicilty naming peripheral modules to use
via USEMODULE (one should use FEATURES_PROVIDED instead).
Plus add missing cpu_init() and periph_init() methods.
This commit removes periph_hwrng support from the pic32mx cpu builds as
pic32mx does not have hwrng only pic32mz does.
2018-01-15 14:02:59 +00:00
Neil Jones
0133de6e4f
mips: clean up pic32 makefiles.
...
Make pic32m* depend on pic32_common which depends on mips32r2_common.
Remove some duplication.
This addresses some issues in #8052 .
2018-01-02 13:59:08 +00:00
Martine Lenders
39c122155c
Merge pull request #7995 from smlng/make/fix/unused_params
...
make: fix unused-params error
2017-11-28 14:46:23 +01:00
smlng
7309171303
build: fix unused parameter errors
...
cpu, sam0_common: fix unused parameter in periph/spi
cpu, kinetis_common: fix unused parameter in periph/spi
cpu, cc2538: fix unused param in periph/i2c
cpu, cc2538: fix unused param in periph/spi
cpu, sam3: fix unused param in periph/spi
cpu, stm32_common: fix unused param in periph/pm
cpu, stm32f3: fix unused params in periph/i2c
cpu, nrf5x_common: fix unused param in periph/gpio
cpu, nrf5x_common: fix unused param in periph/spi
cpu, lpc2387: fix unused params in periph/spi
cpu, cc2538: fix unused params in radio/netdev
cpu, cc2650: fix unused params in periph/uart
cpu, lm4f120: fix unused param in periph/spi
cpu, lm4f120: fix unused params in periph/timer
cpu, lm4f120: fix unused params in periph/uart
cpu, stm32_common: fix unused params in periph/dac
cpu, stm32l0: fix unused params in periph/i2c
cpu, msp430fxyz: fix unused params in periph/uart
cpu, mips: fix unused params
cpu, cc430: fix unused-params in periph/timer
cpu, msp430fxyz: fix unused params in periph/spi
drivers, cc2420: fix unused param
cpu, mips32r2_common: fix unused params in periph/timer
cpu, cc2538: fix unused-param in periph/i2c
cpu, mips32r2_common: fix unused-param in periph/timer
cpu, msp430fxyz: fix unused params in periph/timer
cpu, atmega_common: fix unused params in periph/spi
driver, nrfmin: fix unused params
cpu, cc2538_rf: fix unused params
driver, netdev_ieee802514: fix unused param
cpu, mip_pic32m: fix unused params
cpu, lpc2387: fix unused params in periph/pwm
tests/driver_sdcard_spi: fix unused params
cpu, sam3: fix unused param in periph/pwm
tests/driver_dynamixel: fix unused params, and style issues
cpu, cc430: fix unused param in periph/rtc
cpu, atmega_common: fix unused params in periph/i2c
2017-11-28 14:36:01 +01:00
Gaëtan Harter
71b6fce711
cpu/mips_pic32_common: prefix modules with mips_pic32_common namespace
...
This prevents clash between modules names cpu and periph with main cpus.
Add dependency management in Makefile.include to keep things contained.
2017-11-24 16:44:46 +01:00
Gaëtan Harter
1a8bb14acc
cpu/mips32r2_common: mips32r2_common/include INCLUDES path.
...
Add include path for 'eic_irq.h' file and fix c files relative include.
Also remove wrong include to it in 'mips_pic32_common'.
2017-11-24 16:44:46 +01:00
5c6c439920
cpu: mips32r2_common: adapt to periph.mk
2017-11-06 12:01:19 +01:00
a20745b6c5
cpu: make use of Makefile.periph
2017-11-06 12:01:19 +01:00
28a2028e1e
cpu: mips: reorganize Makefile.features
2017-11-02 12:59:45 +01:00
Hauke Petersen
942bfec5fb
cpu/mips_pic32: fix doxygen for GPIO_PIN macro
2017-10-16 14:27:35 +02:00
Hauke Petersen
5920d99752
pm: fix weak-based default implementations
...
Instead of using `weak` function definitions, this PR handles
default implementations using `PROVIDES_x` defines, allowing
for cpus/pm realted modules to use their own implementations.
2017-10-16 14:27:35 +02:00
neiljay
23f4f9be73
Merge pull request #7386 from francois-berder/pic32-periph-rng
...
Wi-Fire: Add hardware RNG peripheral support
2017-09-08 10:42:36 +01:00
neiljay
e1bbf43705
Merge pull request #7388 from francois-berder/pic32-periph-cpuid
...
clicker, wifire: Add CPUID support
2017-09-08 10:42:07 +01:00
162478cd6d
spelling: s/initialise/initialize/
2017-09-05 11:04:25 +02:00
2b3a9d2e82
cpu/mips: cleanup doxygen documentation
2017-08-28 13:27:58 +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
Francois Berder
d8984a6aef
cpu: pic32_common: Fix void pointer arithmetic in hw rng
...
Signed-off-by: Francois Berder <fberder@outlook.fr>
2017-07-20 19:55:44 +01:00
Francois Berder
ab6006ea3e
cpu: pic32: Implement cpuid_get function
...
Signed-off-by: Francois Berder <fberder@outlook.fr>
2017-07-20 19:52:29 +01:00
Francois Berder
9277ff005c
cpu: pic32: Implement HW RNG driver
...
Signed-off-by: Francois Berder <fberder@outlook.fr>
2017-07-19 23:08:55 +01:00
smlng
692cf96297
doc: fix doxygen grouping of cpu periph drivers
2017-06-26 14:42:11 +02:00
Hauke Petersen
a1499f4190
cpu: add and use shared code for timer_set()
2017-06-02 12:21:56 +02:00
185c7ac11b
some (ptr == 0) -> (ptr == NULL) fixes (found by coccinelle)
2017-04-20 23:31:32 +02:00
Francois Berder
74a999abe4
cpu: mips: Fix missing include for pic32mx and pic32mz
...
Compilation for pic32mx and pic32mz did not include the path
to cpu/mips_pic32_common/include. Also,
cpu/mips_pic32_common/Makefile.include was never parsed. It was
found that mips32r2_common and mips_pic32_common are both defining
similar parameters for linkers which cause issues if both
Makefile.include get parsed.
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
2017-04-12 10:58:52 +01:00
Francois Berder
37281c8c5e
cpu: pic32_common: Implement simple GPIO driver
...
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
2017-04-12 10:58:52 +01:00
Neil Jones
c4d28cb5e2
boards: pic32-wifire: Add support for the Digilent WiFire board.
...
This board features a pic32mz2048efg100 PIC32 device with a MIPS core.
2017-03-28 16:25:31 +01:00
Neil Jones
241087fd76
cpu: mips-pic32mz: Add support for PIC32MZ devices
...
specific support for the pic32mz2046efg100 is added along with code common to
all pic32 devices and all pic32mz devices.
2017-03-24 13:44:15 +00:00