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

21647 Commits

Author SHA1 Message Date
Kevin "Bear Puncher" Weiss
e3e2b6df15
Merge pull request #11084 from cladmi/pr/make/introduce_flashfile
Makefile.include: introduce FLASHFILE
2019-03-01 14:44:31 +01:00
Gaëtan Harter
4a23028265
codacy: disable complaining about python assert
This silents the reported issue in codacy about python asserts:

    Use of assert detected. The enclosed code will be removed when
    compiling to optimised byte code.

The concern is valid about python asserts, but they are used in tests
and python is not run with optimised byte code.

Solution taken from codacy website
https://support.codacy.com/hc/en-us/articles/207994335-Code-Patterns
2019-03-01 13:43:37 +01:00
Sebastian Meiling
d29d336894
Merge pull request #11039 from maribu/avrdude
makefiles/tools: Improved avrdude integration
2019-02-28 22:15:30 +02:00
Marian Buschsieweke
4abc41a227
makefiles/tools: Automatically set avrdude target
The CPU variable in the boards Makefile.include file already contains the target
CPU, so there is no reason to provide it in each board again as avrdude flag.

This commit automatically sets the avrdude target from the CPU variable and
removes the unneeded flags.
2019-02-28 20:55:04 +01:00
Marian Buschsieweke
93cd8a1b04
makefiles/tools: fix avrdude with ICSP programmers
Currently the flag "-P ${PORT}" is added to avrdude regardless of the programmer
used. But this flag should only be set for programmers that operate over a
serial port - e.g. like the various Arduino bootloaders. This commit changes
the behaviour so that the "-P flag" is only set for only of the default
programmers of the various AVR boards supported by RIOT. This allows to use
ICSP programmers (e.g. like the usbtiny) like this:

    make BOARD=arduino-uno PROGRAMMER=usbtiny
2019-02-28 20:55:00 +01:00
Gaëtan Harter
1d268c4cdb
Makefile.include: introduce FLASHFILE
Introduce FLASHFILE variable to start migrating boards to use it.

This is the file that will be used for flashing.
Boards do not currently use it but will migrated in upcoming PRs.
2019-02-28 18:11:49 +01:00
cladmi
3a17ddc43c
makefiles/docker.inc.mk: add support for EXTERNAL_MODULE_DIRS
They are remapped to `$(DOCKER_BUILD_ROOT)/external` if they are not
inside RIOT (usually the case but not for `tests/external_modul_dirs`).

If they are inside 'riotproject' they are currently also remapped to
'external'.

The value of `EXTERNAL_MODULE_DIRS` is then enforced by configuring it on
the command line as the application should not try to set it anymore.

The remapping is done in `external/directory_name` so cannot handle
multiple external directories with the same name.
2019-02-28 15:13:35 +01:00
cladmi
8b54f87fc4
makefiles:docker.inc.mk: add a global documentation on directory mapping 2019-02-28 14:46:43 +01:00
cladmi
3c0ecebb2c
makefiles/docker.inc.mk: use more directories in RIOT
Use the directories from in RIOT if possible for RIOTCPU/RIOTBOARD/RIOTMAKE.
2019-02-28 14:46:43 +01:00
Gaëtan Harter
8687d53c82
makefiles/docker.inc.mk: use BUILD_DIR in RIOT if possible
Use BUILD_DIR from within the riot repository if it is inside.
2019-02-28 14:46:43 +01:00
Gaëtan Harter
a57f141cf6
makefiles/docker.inc.mk: use RIOTPROJECT in the RIOT if possible
Use RIOTPROJECT from within the riot repository if it is inside.

This means when it is the case to use:

 * Not mounting the directory to `riotproject`
 * Use `APPDIR` relative to inside RIOT

If it is not inside, do the same as before:

 * Mount the RIOTPROJECT to `riotproject`
 * Use `APPDIR` relative to RIOTPROJECT
2019-02-28 14:46:43 +01:00
cladmi
e59b77988d
makefiles/docker.inc.mk: add docker_volume_and_env
Add functions to get volume and env arguments for a given directory environment
variable.

It handles:

 * variables with multiple directories like EXTERNAL_MODULE_DIRS
 * relative path
 * if the 'directories' variable is empty, it will not be exported to docker
2019-02-28 14:46:43 +01:00
cladmi
8351b13cc3
makefiles/docker.inc.mk: add path_in_docker function
Return to which directory in the container this directory should be mapped.
2019-02-28 14:46:43 +01:00
cladmi
a462c4aeb9
makefiles/docker.inc.mk: change definition order
Update definition order for DOCKER_VOLUMES_AND_ENV.

* Localtime
* Mapping and env related to `RIOTBASE`
* Build directories
* Project
* CPU/BOARD/make
2019-02-28 14:46:43 +01:00
cladmi
e5871d9deb
makefiles/docker.inc.mk: use a variable for all volumes and environment 2019-02-28 14:46:27 +01:00
cladmi
378f9fd144
makefiles/docker.inc.mk: add DOCKER_APPDIR variable
Prepare for when it can have a different value.
2019-02-28 14:44:53 +01:00
cladmi
a0f25ed47b
makefiles/docker.inc.mk: add DOCKER_RIOTBASE variable
It represents the path of RIOTBASE inside the docker container.
2019-02-28 14:44:49 +01:00
f74b819efe makefiles/tools/dfu: add initial DFU programming support 2019-02-28 13:57:12 +01:00
Gaëtan Harter
8c15d97629
tools/compile_and_test_for_board: add tests for help message
Verify that the help message matches what is in the docstring.
2019-02-28 13:45:40 +01:00
Gaëtan Harter
998211d738
tools/compile_and_test_for_board: add tests directory
Tests in `tests` will be used by 'tox'.
2019-02-28 13:45:40 +01:00
Gaëtan Harter
94aeb5a223
tools/compile_and_test_for_board: FIX outdated help docstring
Update the help message in the docstring.
It should reflect the content of `--help`.

I replaced the manual line wrapping by disabling the warning on the
docstring.
2019-02-28 13:45:40 +01:00
a5ff1dc32a
boards/stm32f4discovery: use common clock configuration without LSE
This fixes the boards being stuck when initializing the RTC
2019-02-27 21:49:56 +01:00
7d31bb43f1
boards/stm32/f4: factorize common clock configuration (168/8)
A common configuration file is introduced for stm32f4 with core clock
at 168MHz with HSE at 8MHz, 2 configuration files are introduced to²:
distinguish between clock configuration with and without LSE.
2019-02-27 21:49:55 +01:00
Peter Kietzmann
2bfa0e4940
Merge pull request #10322 from Rotzbua/patch-1
tests/leds: initialize led0 by default
2019-02-27 17:44:52 +01:00
Rotzbua
d606c11d11 tests/leds: initialize led0 by default
fix unexpected behavior:
reference #9949
reference #10294

fix redefinition for AUTO_INIT_LED0
2019-02-27 13:09:29 +01:00
Leandro Lanzieri
3e7b3d380d
Merge pull request #10738 from jia200x/pkg/wakaaama_bump
pkg/wakaama: bump version
2019-02-27 11:30:53 +01:00
Benjamin Valentin
5b0e427a52 samd21: enable idle modes
tested on samr21-xpro, UART and 802.15.4 still work as before, but
current draw drops from 12mA to 8mA.
2019-02-27 11:20:49 +01:00
Jose Alamos
82c7eac041 pkg/wakaama: Bump to v1.0
- copy basic objects from client implementation

- fix pkg warnings

- use lwm2m_strdup instead of strdup

- fix alignment problem in lwm2m data struct

- add fix of acc_ctrl object read
2019-02-27 10:48:08 +01:00
Peter Kietzmann
ca9c441923
Merge pull request #11070 from cladmi/pr/bug/stm32f3discovery/clock_lse
boards/stm32f3discovery: Fix no external low speed crystal
2019-02-26 21:40:39 +01:00
Martine Lenders
07260661bb
Merge pull request #11060 from leandrolanzieri/pr/boards/lobaro-lorabox_remove_auto_init_led0
boards/lobaro-lorabox: Remove auto init LED0
2019-02-26 21:35:21 +01:00
Martine Lenders
dd1bad25df
Merge pull request #11071 from kb2ma/nanocoap/fix_server_abort
net/nanocoap: don't abort server on recv error
2019-02-26 21:35:05 +01:00
Martine Lenders
a2c14b33ff
Merge pull request #11053 from cladmi/pr/tests/bloom_bytes/float_handling
tests/bloom_bytes: replace %f with fmt/print_float
2019-02-26 21:27:02 +01:00
Martine Lenders
cfee6faf57
Merge pull request #10431 from miri64/dist/enh/testcase-testrunner-wrapper
dist/pythonlibs: provide unittest TestCase wrapper for testrunner
2019-02-26 19:55:24 +01:00
Ken Bannister
05195ec4a1 net/nanocoap: don't abort server on recv error 2019-02-26 12:35:49 -05:00
Marian Buschsieweke
cebea3a23e
Merge pull request #10532 from miri64/gnrc_netif/enh/check-opt-at-init
gnrc_netif: check all required options on initialization
2019-02-26 17:29:27 +01:00
Martine Lenders
dd1f45d05e tests: adapt tests for gnrc_netif checks 2019-02-26 16:46:29 +01:00
Martine Lenders
2d6a557d83 netdev: introduce test device type 2019-02-26 16:46:21 +01:00
Martine Lenders
7d8f6abd45 gnrc_netif: check all required options on initialization
With `DEVELHELP` activated all required options required by GNRC are
now checked at interface initialization, so that developers of new
link-layer protocols or device drivers notice as soon as possible that
something is missing.
2019-02-26 16:45:21 +01:00
Gaëtan Harter
5e58eccd5a
boards/stm32f3discovery: Fix no external low speed crystal
The board does not have external low speed crystal.

Page 20 of User Manual: 6.10.2 "OSC 32 kHz clock supply"

 * X3 Crystal (not provided)

https://www.st.com/resource/en/user_manual/dm00063382.pdf

This fixes `example/default` and makes `tests/periph_rtc` work properly.
2019-02-26 16:44:46 +01:00
Martine Lenders
0f1bfad15b gnrc_netif: provide addr_len_from_l2ao for nordic_softdevice_ble 2019-02-26 15:43:39 +01:00
16e4722670
Merge pull request #11067 from miri64/gnrc_netif/enh/msg-size-config
gnrc_netif: expose message queue size configurable
2019-02-26 13:44:57 +01:00
Martine Lenders
13030d5a35 gnrc_netif: expose message queue size configurable 2019-02-26 13:26:20 +01:00
Juan I Carrano
a1fcafaec9
Merge pull request #10808 from gschorcht/doc_fix_params_h
doc: include *_params.h files in documentation
2019-02-26 13:16:20 +01:00
Marian Buschsieweke
ef70d2a44c
Merge pull request #9407 from aabadie/pr/board/nrf52dk_openocd
boards/nrf52: add openocd as programmer option
2019-02-26 11:45:13 +01:00
7a5d2ad2fb
boards/nrf52: thingy52 and ruuvitag don't work with openocd 2019-02-26 11:15:36 +01:00
a2cfa52602
boards/nrf52xx: use common flashing documentation 2019-02-26 11:03:06 +01:00
826df5648b
boards/nrf52: update nrf52 common documentation
Add common flashing notes + move the doc in a separate doc.txt file
2019-02-26 11:03:06 +01:00
9373225a13
boards/nrf52xx: add flashing and stdio sections in doc 2019-02-26 11:03:06 +01:00
171e8589ff
boards/nrf52840-mdk: use common openocd configuration 2019-02-26 11:03:06 +01:00
3eb17f56fa
boards/nrf52xxxdk: add openocd as programmer
For the moment openocd doesn't work when softdevice blob module is loaded
2019-02-26 11:02:57 +01:00