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

24081 Commits

Author SHA1 Message Date
Gaëtan Harter
4eeda215e0
pic32-wifire: add flasher using pic32prog
For PICkit3 it requires having a scripting firmware installed.
2019-09-24 17:43:12 +02:00
Gaëtan Harter
773419e29c
pic32-wifire: add serial configuration 2019-09-24 17:43:12 +02:00
Gaëtan Harter
afdddfda14
pic32prog.inc.mk: add support for pic32prog flasher
Define a RIOT_PIC32PROG to allow setting 'PIC32PROG' globally from environment.

https://github.com/sergev/pic32prog

For PICkit3 it requires having it with scripting mode firware.

Source
------

https://github.com/RIOT-OS/RIOT/pull/6092#issuecomment-261987955
2019-09-24 17:43:12 +02:00
Gaëtan Harter
d852ca2b21
pic32prog: add pic32prog programming tool
pic32prog is a program for flashing pic32 boards from command line on Linux.

It works with:
* Microchip PICkit2
* Microchip PICkit3 with script firmware.
* Other ones: https://github.com/sergev/pic32prog/wiki
2019-09-24 17:43:12 +02:00
Martine Lenders
71680a6265
Merge pull request #12293 from nmeum/pr/asymcute_nullptr_dereference
asymcute: Fix null pointer dereference
2019-09-24 17:30:07 +02:00
Gaëtan Harter
cdca4d89a9
boards/mulle: move CPU/CPU_MODEL definiton to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

The multiple boards handling has been changed to use 'CPU_MODEL ?='.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
8a2d999848
boards/cc2538dk: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
17877ca993
boards/ek-lm4f120xl: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

CPU_MODEL is currently kept uppercase. Making it lowercase is a future task.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
33816cbbb3
boards/pic32*: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Add the missing space when defining 'CPU_MODEL'.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
29459beaf2
boards/hifive1*: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
0029bb33ef
boards/nrf6310: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
cladmi
5f1a61ed72
boards/common/nrf52: move CPU/CPU_MODEL definiton to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
49d61bbe6e
boards/common/esp: move CPU/CPU_MODEL definiton to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
8cebed6792
boards/common/esp: harmonize CPU/CPU_MODEL to other boards
* CPU files should already have 'CPU' defined by the board.
* Do not conditionally define CPU as it is not needed.

This is part of cleanup prior to moving the CPU/CPU_MODEL to
Makefile.features.
2019-09-24 17:29:37 +02:00
Benjamin Valentin
c31e373214 shell_commands: gnrc_netif: only include LoRA options when LoRA PHY is present
If no LoRA module is used, there is no use in compiling in all the config options
for LoRA PHYs.

This saves about 1k of .text
2019-09-24 17:14:03 +02:00
Thomas Stilwell
70084ab6aa cpu/efm32/uart: enable pullup on RX pin 2019-09-24 16:44:15 +02:00
Martine Lenders
4c88cb5f0e lwip: sys_arch: replace sched_switch() with thread_yield_higher()
`sched_switch()` is supposed to be used in core only.

This fixes #6756.
2019-09-24 16:33:11 +02:00
Tim Broenink
35aa642e8a cpu/common/esp32: use 'awk/printf' instead of 'echo'
- replaces 'echo -n' and 'awk' with 'printf' and 'awk'
  - replaces rest of 'echo' statements with printf
2019-09-24 15:34:54 +02:00
57f5080e5b
Merge pull request #12218 from larseggert/docker-delegate-volumes
make: docker: delegate bind mounts to the containers
2019-09-24 13:18:05 +02:00
Lars Eggert
cae814c1cb make: docker: Delegate bind mounts to the containers
At least on Docker for Mac, this brings a huge boost in build performance, see
https://docs.docker.com/docker-for-mac/osxfs-caching/:

Before: `real	6m23.003s`
After:  `real	1m57.923s`
2019-09-24 12:04:43 +02:00
Sören Tempel
30e4823e94 asymcute: don't make the assumption that req->arg is non-NULL
This fixes a denial of service where an attacker would be able to cause
a NULL pointer dereference by sending a spoofed packet. This attack only
requires knowledge about pending message ids.
2019-09-24 12:00:12 +02:00
Sebastian Meiling
7bbdb74981
Merge pull request #10554 from jcarrano/make-minimum-version
Makefile.include: require make version 4.
2019-09-23 23:13:50 +02:00
Juan Carrano
9289fee618 Makefile.include: require make version 4.
Old versions of GNU Make (especially on OSX) are a pain to deal
with. This commit introduces a warning when such an old version
is found. The goal is the future the warning will be turned into
an error.

2020.01 is set as the date we remove support.

Complying with version 4.x is easy on OSX by using homebrew, and
on Linux, even Debian stable has the required version.
2019-09-23 18:54:19 +02:00
Vincent Dupont
1a44d327cb
Merge pull request #11989 from gschorcht/cpu/esp32/periph-can
cpu/esp32: reimplementation of module esp_can as module periph can
2019-09-23 16:52:05 +02:00
Francisco
2346f35bc8
Merge pull request #12289 from cladmi/pr/frdm/minor/remove_export_openocd_extra_init
boards/frdm: remove exporting unset OPENOCD_EXTRA_INIT
2019-09-23 14:28:06 +02:00
Francisco
8467dba680
Merge pull request #12158 from aabadie/pr/boards/stm32_connect_assert_srst
boards/stm32: generalize use of connect_assert_srst for flashing
2019-09-23 14:02:39 +02:00
Francisco
abdebaa86f
Merge pull request #11549 from cladmi/pr/pba_d_01_kw2x/fix_flashing
boards/pba-d-01-kw2x: fix flashing from invalid state
2019-09-23 13:09:02 +02:00
benpicco
794ac26d47
Merge pull request #11533 from haukepetersen/opt_pkg_sourcelocaloverride
make/pkg: allow to set SOURCE_LOCAL per pkg
2019-09-23 12:19:12 +02:00
Gaëtan Harter
0724dc71a7
boards/frdm: remove exporting unset OPENOCD_EXTRA_INIT
The default value in `openocd.sh` is being empty, so no use for exporting it.
2019-09-23 12:10:09 +02:00
Francisco
3d2697973a
Merge pull request #12151 from cladmi/pr/pba-d-01-kw2x/do_not_use_OPENOCD_ADAPTER_INIT
boards/pba-d-01-kw2x: rely on the common adapter selection code
2019-09-23 11:47:50 +02:00
Hauke Petersen
cf8f3125fc make/pkg: allow to set SOURCE_LOCAL per pkg 2019-09-23 11:44:17 +02:00
a6ab562bcc
Merge pull request #12241 from cladmi/pr/docker/refactor_volumes
makefiles/docker.inc.mk: add a 'docker_volume' function
2019-09-23 11:34:34 +02:00
6a147c297e
Merge pull request #11556 from aabadie/pr/cpu/nrf_wdt
cpu/nrf5x: implement wdt peripheral driver
2019-09-21 09:12:42 +02:00
f8922d80c3
tests/periph_wdt: fix upper limit format for print 2019-09-20 20:45:42 +02:00
40619d18ca
cpu/nrf5x_common: implement periph_wdt driver 2019-09-20 20:45:42 +02:00
benpicco
1c119594f0
Merge pull request #11520 from benpicco/wdt
sam0: Implement watchdog driver
2019-09-20 20:19:56 +02:00
Gunar Schorcht
d5bf41dba1 cpu/esp32: doc update for periph_can 2019-09-20 19:39:23 +02:00
Gunar Schorcht
fc5692d67c cpu/esp32: driver for ESP32 CAN as periph_can 2019-09-20 19:39:23 +02:00
Gunar Schorcht
c498ebd388 cpu/esp32: default device config for periph_can 2019-09-20 19:35:02 +02:00
Gunar Schorcht
49ecce9b81 cpu/esp32: periph_can device/conf type definitions 2019-09-20 19:35:02 +02:00
Gunar Schorcht
e0f1ab0a16 cpu/esp32: module esp_can removed
CAN controller driver for ESP32 is no longer realized as separate module.
2019-09-20 19:35:02 +02:00
Benjamin Valentin
a4baf45da1 tests/periph_wdt: only test powers of two
Some watchdog implementations do not support arbitrary precision
for timeouts.
Using powers of two seems like a good common denominator.
2019-09-20 19:04:41 +02:00
Benjamin Valentin
c9f8ff1cf1 sam0_common: add Watchdog implementation 2019-09-20 19:04:41 +02:00
Francisco
04b92683e4
Merge pull request #11800 from aabadie/pr/boards/stm32f723e-disco
boards/stm32f723e-disco: add initial support
2019-09-20 17:04:17 +02:00
Francisco Molina
ce300ca6fd tests: fix tests for nucleo-f303k8
- Decrease default stack size for pthread_cooperation and
  cp11_condition_variable
- Reduce number of problems for thread cooperation and remove
  from insufficient memory list
2019-09-20 17:01:08 +02:00
Francisco
d2eeb2ba05
Merge pull request #12284 from aabadie/pr/boards/fix_p-l496zg_features
boards/p-l496zg-cell02: move cpu define to Makefile.features
2019-09-20 14:57:56 +02:00
Martine Lenders
3a4d1f9bb1
Merge pull request #12281 from aabadie/pr/ci/coccinelle_fix_remaining
tools/ci: fix remaining errors reported by coccinelle static check
2019-09-20 14:22:09 +02:00
b77dd00142
boards/p-l496zg-cell02: move cpu define to Makefile.features 2019-09-20 13:46:58 +02:00
80a5e88403
boards/stm32f723e-disco: add initial support
Peripheral configured:
- 5 UARTs for stdio via STLink, Arduino connector, PMOD connector,
STMOD+ connector and ESP-01 connector
- 1 I2C available on Arduino connector and STMOD+ connector
- 2 SPIs available on Arduino connector and PMOD connector
2019-09-20 13:45:25 +02:00
8bb98ba151
cpu/stm32f7: add support for stm32f723 cpu line 2019-09-20 13:41:12 +02:00