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

19964 Commits

Author SHA1 Message Date
Francisco Acosta
5823f69123 boards: add LED_PANIC to atmega based boards
This adds a LED_PANIC macro which defines which LED,
or combination of LEDs should notify a panic error.
This is currently used to signal BADISR_vect errors.
2018-11-02 16:23:48 +01:00
Francisco Acosta
b2fc9b197e cpu/atmega*: remove unnecessary code (already factored out)
cpu.c and startup.c were redundant in most platforms, except for
atmega256rfr2. The common code is now in cpu/atmega_common/cpu.c
and cpu/atmega_common/startup.c. cpu_conf.h is also removed as
it's now in cpu/atmega_common/include thus shared by all atmega
based platforms.
2018-11-02 16:23:48 +01:00
Francisco Acosta
4f28407af8 cpu/atmega_common: use the same cpu_conf for all atmega based boards
Removes redundancy of code since all the boards were defining
the same variables. Moreover, the stack sizes are unified per
architecture, as required.
2018-11-02 16:23:48 +01:00
Francisco Acosta
feac98cc97 cpu/atmega_common: add cpu.c and startup.c common code
Removes duplicated code for atmega platforms. They were all
basically the same, only with the exception of atmegarfr2,
for which there is an #if statement to use the code in the
same file.
2018-11-02 16:23:47 +01:00
Kevin "Bear Puncher" Weiss
1d95da01fa
Merge pull request #9211 from Josar/pr/xtimer_target_overflow
xtimer: timer & target overflow, hang resolved.
2018-11-02 15:31:26 +01:00
Francisco Acosta
ce5cd0591f
Merge pull request #10165 from cladmi/pr/openocd_sh/osx_compat/binflash
openocd.sh: fix binfile on osx
2018-11-02 12:47:34 +01:00
José Alamos
6d8826e448
Merge pull request #10267 from maribu/autoinit_fix
sys/auto_init: Fixed initialization of sht1x
2018-11-02 10:55:52 +01:00
cf24def63f
Merge pull request #10293 from kb2ma/nanocoap/fix_block2_example
example/nanocoap: fix block2 payload
2018-11-01 19:00:19 +01:00
Josarn
672368954e xtimer: timer & target overflow, hang resolved.
1. When the 32 bit target of the xtimer overflowed the timer was not placed in the right list.
2. When the hardware timer overflowed the comparison was wrong for setting next target.

3. Backoff condition
2018-11-01 16:48:20 +01:00
Francisco Acosta
0d95cc877b
Merge pull request #10273 from snej/master
cpu/esp32: allow explicit ESP32 crystal freq configuration
2018-11-01 14:04:57 +01:00
MichelRottleuthner
1606e16879
Merge pull request #10174 from Josar/pr/xtimer_hang/debug_pins
test/xtimer_hang: DEBUG_PINS
2018-11-01 10:20:06 +01:00
Leandro Lanzieri
85071318c7
Merge pull request #9740 from jcarrano/at_driver-fix-cast
drivers/at: fix invalid function pointer cast.
2018-11-01 09:56:04 +01:00
Gaëtan Harter
2fc5ad6bae
Merge pull request #10302 from cladmi/pr/make/docker/fix_riotproject_is_appdir
Makefile.include: Fix BUILDRELPATH when RIOTPROJECT is CURDIR.
2018-11-01 09:46:33 +01:00
Juan I Carrano
77dc923d7e
Merge pull request #10303 from cladmi/pr/make/docker/handle_worktree
makefiles/docker.inc.mk: handle building in git worktree
2018-10-31 15:39:31 +01:00
Juan I Carrano
e6e56de3f6
Merge pull request #10286 from cladmi/pr/make/bug/default_riotbase
Makefile.include: Fix default RIOTBASE when there is Makefile.local
2018-10-31 15:16:46 +01:00
josar
162d17c5a2 test/xtimer_hang: DEBUG_PINS
Add the option to use debug pins to investigate timing issues.
2018-10-31 12:41:43 +01:00
Cenk Gündoğan
f30d0a68d8
Merge pull request #10305 from jia200x/pr/fix_my9221_test
tests/driver_my9221: fix for loop indexes
2018-10-31 11:59:14 +01:00
Jose Alamos
b543f2dc67 tests/driver_my9221: fix for loop indexes 2018-10-31 10:59:51 +01:00
Juan Carrano
53de520619 drivers/at: fix invalid function pointer cast. 2018-10-31 10:58:43 +01:00
Jens Alfke
ce1fe776cf cpu/esp32: allow explicit ESP32 crystal freq configuration
Some ESP32 boards (like my SparkFun ESP32 Thing) have a main clock
crystal that runs at 26MHz, not 40MHz. RIOT appears to assume 40MHz.
The mismatch causes the UART to not sync properly, resulting in
garbage written to the terminal instead of log output.

I’ve added:

* A new board configuration constant ESP32_XTAL_FREQ that defaults
  to 40, but can be overridden by a board def or at build time to
  force a specific value (i.e. 26).
* Some code spliced into system_clk_init() to check this constant and
  call rtc_clk_init() to set the correct frequency.
* A copy of the rtf_clk_init() function from the ESP-IDF sources.

Fixes #10272
2018-10-30 16:42:07 -07:00
cladmi
a7779e24c5
openocd.sh: handle 'newline' on osx
https://stackoverflow.com/a/24276470

    In replacement strings used with the s command, assume that NO
    control-character escape sequences are supported (ex '\n')

Replace with an escaped newline character. Current form works in 'bash'.
2018-10-30 19:44:37 +01:00
cladmi
6f02568c84
openocd.sh: split 'sed' commands on different lines
https://stackoverflow.com/a/24276470

    Labels and branching commands (e.g., b) must be followed by an actual
    newline or continuation via a separate -e option.
2018-10-30 19:44:37 +01:00
cladmi
291a80c664
openocd.sh: refactor splitting banks in a separate function
Prepare for other refactoring.
2018-10-30 19:44:37 +01:00
Lucas Jenß
6ed11de354
Merge pull request #10105 from x3ro/fix-shell-prompt-infinite-loop
Do not try to continue reading shell commands if input source is closed
2018-10-30 19:24:01 +01:00
Gaëtan Harter
61a3e5d685
makefiles/docker.inc.mk: handle building in git worktree
When building from a worktree, the common git directory was not mounted
in docker.

This lead to the version not being set and issues with git-cache in
ubuntu bionic that could not execute the 'git hash-object' command.
2018-10-30 19:21:12 +01:00
Lucas Jenss
62cecc9496 Do not try to continue reading shell commands if input source is closed
In RIOT native, sending CTRL+D to a shell started using shell_run would resulted in and
endless prompt loop. I've been unable to trigger such a behaviour
on actual hardware using a UART connection, but calling `pm_off` seemed
like a better alternative than having an `#ifdef BOARD_NATIVE`.

Fixes #9946
2018-10-30 19:06:42 +01:00
Gaëtan Harter
a5b2af1baf
Makefile.include: Fix BUILDRELPATH when RIOTPROJECT is CURDIR.
This fixes building an example that is outside of RIOT with docker and
also fixes building from a release archive.
2018-10-30 17:16:07 +01:00
Gaëtan Harter
f82ace910f
Makefile.include: Fix default RIOTBASE when there is Makefile.local
When an application only includes Makefile.include without specifying
RIOTBASE and uses a `Makefile.local` file, RIOTBASE would use a wrong
default value and get the value of the directory where `Makefile.local` is.
2018-10-30 17:08:57 +01:00
Emmanuel Baccelli
365d82ed09
Merge pull request #9829 from OTAkeys/pr/uuid_string
uuid: add uuid_to_string() and uuid_from_string()
2018-10-30 14:30:47 +01:00
José Alamos
18570b6fbc
Merge pull request #10265 from MrKevinWeiss/pr/fix/stmi2c
cpu/stm32_common/i2c: Fix error handling in i2c_1.c
2018-10-30 09:34:14 +01:00
Martine Lenders
d07ac86ea1
Merge pull request #10274 from gebart/gnrc/netif-rawmode-rxinfo
gnrc_netif_ieee802154: Provide LQI, RSSI in raw mode via netif_hdr
2018-10-29 19:06:14 +01:00
Ken Bannister
e059da7e0a example/nanocoap: fix block2 payload 2018-10-29 13:32:25 -04:00
Marian Buschsieweke
be6b705b38
sys/auto_init: Improved doc on sht1x auto init
The auto initialization of the sht1x module differs from the initialization of
other sensors, but previously no documentation pointed that out. This lack of
documentation led to a bug being introduced. This commit provides the previously
missing documentation.
2018-10-29 13:20:06 +01:00
Martine Lenders
289e635e5a
Merge pull request #10281 from smlng/pr/riotversion
build: remove hostname from RIOT_VERSION string
2018-10-29 12:52:14 +01:00
Francisco Acosta
fc139f30e3
Merge pull request #9509 from Josar/pr/at86rf2xx_framebuffer
at86rf2xx: release framebuffer on recv with (len > 0) && (buf == NULL)
2018-10-29 11:43:45 +01:00
Gaëtan Harter
2adbb4669d
Merge pull request #10282 from aabadie/pr/tools/iotlab_archi
makefile.iotlab.single.inc.mk: add new supported nodes
2018-10-29 11:37:35 +01:00
smlng
7d1bf26128 build: remove hostname from RIOT_VERSION string
The hostname does not provide any additional or necessary information to
the RIOT_VERSION string. On the contrary, some might consider the hostname
as personal information, which should not be exposed unsolicitedly.
2018-10-29 09:02:47 +01:00
a3f2d20169 dist/testbed-support: add new iotlab archi
nrf52840dk and microbit
2018-10-28 18:57:17 +01:00
Joakim Nohlgård
1140b37c2d
Merge pull request #10278 from miri64/gnrc_pktbuf/doc/clarify-start-write
gnrc_pktbuf: clarify doc of _start_write()
2018-10-28 18:19:44 +01:00
Martine Lenders
99e3d780ea gnrc_pktbuf: clarify doc of _start_write()
Resolves #10261
2018-10-28 17:28:24 +01:00
Joakim Nohlgård
21efb20184
Merge pull request #9725 from miri64/tests/enh/pkg_cmsis-dsp-testscript
tests/pkg_cmsis-dsp: provide testscript
2018-10-27 02:39:32 +02:00
Joakim Nohlgård
52ac53b4d9 gnrc_netif_ieee802154: Provide LQI, RSSI in raw mode via netif_hdr
Useful in sniffer situations to see the signal strength of a received
packet. Also avoids the crash described in
https://github.com/RIOT-OS/applications/pull/54
2018-10-27 00:22:51 +02:00
Josarn
d1261a7ef0 at86rf2xx: correct framebuffer release
This PR sets the tranceiver in PLL_ON state to avoid corruption of the
data in the frame buffer and sets it back to the last state which the
 transceiver had before changing into transmit mode after the data is
read out. This is done to avoid data corruption when `_recv(...)` is
called to retrieve the buffer size and frame buffer protection is released.
2018-10-26 19:16:34 +02:00
Marian Buschsieweke
6e1c50a1e3
sys/auto_init: Fixed initialization of sht1x
- the driver for sht1x is initialized two times
 - the second initialization is done only when SAUL is used, but sht1x needs
   to be initialized in any case. (SAUL registration is also done there, but
   only when SAUL is actually being used.)

This commit fixes both.
2018-10-26 13:08:37 +02:00
f139dfdad2
Merge pull request #10266 from aabadie/pr/typo_freie
boards/*: fix typo Feie => Freie
2018-10-26 11:32:36 +02:00
2ebd88d0c4 boards/*: fix typo Feie => Freie 2018-10-26 10:26:59 +02:00
Martine Lenders
effd0c85a4
Merge pull request #10263 from gebart/sys/ps-rm-xtimer
sys/ps: Remove unused include xtimer.h
2018-10-26 10:24:59 +02:00
MrKevinWeiss
3e1fd9f494 cpu/stm32_common/i2c: Fix error handling in i2c_1.c
Errors flags could not clear making the i2c unusable after error.
This fix removes the error check in start so the error flags can clear and does proper checking for status bits before _bus_check.
2018-10-26 09:56:35 +02:00
Joakim Nohlgård
1f58c63ea4 sys/ps: Remove unused include xtimer.h 2018-10-26 09:03:46 +02:00
Martine Lenders
f597c6a6f9
Merge pull request #10226 from miri64/gnrc_pktbuf/enh/reverse-snips
gnrc_pktbuf: add gnrc_pktbuf_reverse_snips() helper function
2018-10-25 23:51:44 +02:00