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

23711 Commits

Author SHA1 Message Date
Gunar Schorcht
ae8afaf42e cpu/esp8266: remove overridden stdio functions
The overridden stdio functions `puts`, `putchar` and `printf` were removed. Instead, the corresponding newlib functions are always used. Using the newlib functions fixes output conflicts when using `f *` functions like `fprintf`,` fputs`, ... with `stdout` as the file parameter.
2019-09-04 14:41:31 +02:00
benpicco
205d431979
Merge pull request #12167 from maribu/cc110x-doc
driver/cc110x: Fixed indent/alignment in doc
2019-09-04 14:40:41 +02:00
Gunar Schorcht
98dfdef276
Merge pull request #12135 from benpicco/libb2-fix
pkg/libb2: rename config.h to avoid conflicts in the global namespace, set HAVE_ALIGNED_ACCESS_REQUIRED based on CPU (fixes build on esp8266)
2019-09-04 14:39:07 +02:00
Benjamin Valentin
4707f6b749 pkg/libb2: rename config.h to libb2_config.h
This is to avoid conflics with other config.h files, e.g. when building
for esp8266 where $(NEWLIB)/xtensa-lx106-elf/include/config.h gets
included instead.
2019-09-04 14:15:52 +02:00
Benjamin Valentin
bf410c84f1 pkg/libb2: define HAVE_ALIGNED_ACCESS_REQUIRED based on CPU
Most architectures do not support unaligned memory access, so set the define accordingly.
2019-09-04 14:15:52 +02:00
Benjamin Valentin
7047a200af cpu/native: advertise support for unaligned memory access
On Linux, even if the architecture does not support it, the kernel will
catch the fault and emulate the unaligned accesss.
2019-09-04 14:15:52 +02:00
Marian Buschsieweke
3da3280930
driver/cc110x: Fixed indent/alignment in doc
The Doxygen documentation blocks have not been correctly aligned. This commit
fixes this.
2019-09-04 13:15:15 +02:00
aa6f9e5b25
Merge pull request #12164 from keestux/driver_sht2x_cleanup
tests/driver_sht2x: avoid negative number after decimal dot
2019-09-04 07:58:18 +02:00
040978e3f5
Merge pull request #12165 from aabadie/pr/tests/driver_hts221_cleanup
tests/driver_hts221: cleanup temperature display logic
2019-09-04 07:48:30 +02:00
f750c3a474
tests/driver_hts221: cleanup temperature display logic
This saves 12 bytes when building for samr21-xpro
2019-09-03 21:36:26 +02:00
Kees Bakker
3d6b6d868d tests/driver_sht2x: avoid negative number after decimal dot
Also don't include printf_float
2019-09-03 20:50:25 +02:00
Francisco
0bf2be43eb
Merge pull request #12157 from aabadie/pr/tools/openocd_default_connect_assert_srst_val
tools/openocd: check if variable for extra reset_config is set
2019-09-03 19:22:57 +02:00
benpicco
1ffe2e5e30
Merge pull request #11512 from skullbox305/cpu-nrf5x
cpu/nrf52: i2c bugfix
2019-09-03 18:43:38 +02:00
benpicco
364f8e8076
Merge pull request #12162 from aabadie/pr/tests/driver_bmx280_cleanup
tests/driver_bmx280: cleanup temperature value display
2019-09-03 18:39:11 +02:00
benpicco
7f487ac807
Merge pull request #12131 from brummer-simon/gnrc_tcp-release_after_failed_send
gnrc_tcp - Release pakets on failed gnrc_netapi_send()
2019-09-03 15:59:21 +02:00
MrKevinWeiss
853540ce32 boards/slstk3402a: Add reset before flashing
It seems that this board needs a reset command before flashing with jlink
This adds the reset - r - to the JLINK_PRE_FLASH
2019-09-03 13:19:27 +02:00
d0a8060ea6
tests/driver_bmx280: cleanup temperature value display 2019-09-03 12:58:56 +02:00
9065f8358c
tools/openocd: correctly check reset_config variable value
This avoids the following warning message when running OpenOCD: 'openocd.sh: line 124: [: : integer expression expected'
2019-09-03 12:44:09 +02:00
MrKevinWeiss
699892cc7c boards/slstk3401a: Add reset before flashing
It seems that this board needs a reset command before flashing with jlink
This adds the reset - r - to the JLINK_PRE_FLASH
2019-09-03 11:01:21 +02:00
Martine Lenders
fa9bf485d1
Merge pull request #12159 from fjmolinas/pr_icmp6_echo
shell/commands: fix, only accept proper pong response to icmpv6_echo
2019-09-03 09:48:11 +02:00
Francisco Molina
5e1558ba57 shell/commands: fix, only accept proper pong response 2019-09-03 09:07:29 +02:00
Francisco
900b23626a
Merge pull request #12148 from aabadie/pr/boards/nrf52832-mdk_i2c
boards/nrf52832-mdk: enable I2C and use default configuration
2019-09-03 08:52:24 +02:00
benpicco
7cbc239a00
Merge pull request #12140 from aabadie/pr/tests/driver_bmp180_cleanup
tests/driver_bmp180: cleanup application
2019-09-02 21:55:29 +02:00
Juan I Carrano
ffd7264497
Merge pull request #12154 from cladmi/pr/tests/evtimer_msg/blacklist_on_master
tests/evtimer_msg|xtimer_periodic_wakeup: blacklist testing on native
2019-09-02 18:47:47 +02:00
db12eeb1a7
tests/driver_bmp180: remove useless printf_float module 2019-09-02 18:33:02 +02:00
73e1c563b4
tests/driver_bmp180: fix display with negative temperature 2019-09-02 18:33:02 +02:00
Gaëtan Harter
c59d263c61
tests/xtimer_periodic_wakeup: blacklist testing on native
The test randomly fails on `native` due to timers being not accurate but
it cannot be otherwise. So better disable it than raising fake errors.

    ...
    151 diff=3
    150 diff=4
    149 diff=3539
    148 diff=4
    147 diff=3
    ....
    min/max error: 1/3539
    too large difference.

    Test Failed.

    Timeout in expect script at "child.expect_exact("Test complete.")"
    (tests/xtimer_periodic_wakeup/tests/01-run.py:22)
2019-09-02 18:12:04 +02:00
Juan Carrano
55eccb689f pkg/oonf_api: Use MRI script to combine archives.
The OONF package is combining multiple ".a" file into a single archive. The
way it was being done involved creating and changing directories, unpacking
the original archives and repacking them into a combined one.

Theis has a couple of issues:

- It is untidy and wasteful.
- It breaks when thin archives are enabled, as a thin archive cannot be
  unpacked.

This commit uses a MRI script to do the combining step. It works both with
and without thin archives and is cleaner overall.

An issue that remains to be soved is that make is calling itself to create the
archive, as the PARTIAL_ARCHIVES are not known before hand. This is hacky. It
can be solved but it is a subject for another PR.
2019-09-02 16:50:35 +02:00
Gaëtan Harter
52000b83be
tests/evtimer: blacklist testing on native
The test randomly fails on `native` due to timers being not accurate but
it cannot be otherwise. So better disable it than raising fake errors.

    main(): This is RIOT! (Version: buildtest)
    Testing generic evtimer
    This should list 2 items
    ev #1 offset=1000
    ev #2 offset=500
    This should list 4 items
    ev #1 offset=659
    ev #2 offset=341
    ev #3 offset=500
    ev #4 offset=2454
    Are the reception times of all 4 msgs close to the supposed values?
    At    662 ms received msg 0: "#2 supposed to be 659"
    At   1009 ms received msg 1: "#0 supposed to be 1000"
    At   1511 ms received msg 2: "#1 supposed to be 1500"

    Traceback (most recent call last):
      File "/tmp/dwq.0.3125418833043728/ef3af88c4b3615788b164464a437df5c/tests/evtimer_msg/tests/01-run.py", line 33, in <module>
        sys.exit(run(testfunc))
      File "/tmp/dwq.0.3125418833043728/ef3af88c4b3615788b164464a437df5c/dist/pythonlibs/testrunner/__init__.py", line 29, in run
        testfunc(child)
      File "/tmp/dwq.0.3125418833043728/ef3af88c4b3615788b164464a437df5c/tests/evtimer_msg/tests/01-run.py", line 26, in testfunc
        assert(actual in range(expected - ACCEPTED_ERROR, expected + ACCEPTED_ERROR))
    AssertionError
2019-09-02 16:37:05 +02:00
Gaëtan Harter
c1b32fe1f3
boards/iotlab: rely on OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
Use the new OPENOCD_RESET_USE_CONNECT_ASSERT_SRST to configure
'reset_config connect_assert_srst' when flashing and resetting only.

This removes the need for a special debug configuration and should allow
connecting to a running target again.
2019-09-02 16:12:55 +02:00
Kevin "Tristate Tom" Weiss
d9b0db0d61
Merge pull request #11976 from fjmolinas/pr_stm32f0x_extra_flash
dist/tools/openocd: add OPENOCD_EXTRA_INIT_RESET use for nucleo-f091rc
2019-09-02 15:54:24 +02:00
Francisco Molina
06c830e8cd boards/nucleo-f091rc: set OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
- Nucleo-f091rc can become unflashable when hardfaults occure.
  To make sure flashing succeeds `connect_assert_srst` is called
  before connecting to flash threw openocd.
2019-09-02 14:54:38 +02:00
Francisco Molina
900875c603 dist/tools/openocd: add OPENOCD_EXTRA_INIT_RESET
- Add a variable to add extra openocd commands before resetting
  a board. These will not be called when `debug`, in contrast
  to OPENOCD_CONFIG, OPENOCD_EXTRA_INIT and OPENOCD_ADAPTER_INIT.
- Add connect_assert_srst to reset config if
  OPENOCD_RESET_USE_CONNECT_ASSERT_SRST=1
2019-09-02 14:53:51 +02:00
Juan Carrano
63c475cd4d toolchain/cflags: enable dwarf compression.
Use the -gz option to compress ELF sections containing DWARF information.
This saves around 50% of disk space, without any side effects.

See https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Debugging-Options.html#Debugging-Options
for more infomation on this option.

Some platforms have an outdated toolchain that does not support -gz so
the flag is blacklisted there. Even then, the results are quite impressive.

I used @cladmi's `buildtest` branch (https://github.com/cladmi/RIOT/tree/wip/du/buildtest)
with this change and compiled the `examples/default` application:

```
$ BUILD_IN_DOCKER=1 DOCKER="sudo docker" make -C examples/default buildtest-indocker
```

The size was obtained with:

```
$ find output -name "*.bin.bindirsize" -type f -exec tail  -n1 '{}' \; | cut -f 1 | awk '{s+=$1} END {printf "%.0f", s}'
```

Results:

- Vanilla: 10328112 KB (~10GB).
- with -gz: 4982788 KB (~5GB).

This was inspired by #8496.
2019-09-02 14:43:26 +02:00
cb51cee2ba
boards/nrf52832-mdk: enable I2C and use default configuration 2019-09-02 13:12:40 +02:00
benpicco
f74381c77b
Merge pull request #12142 from fabian18/drivers/at86rf2xx_do_not_hang_on_no_dev
drivers/at86rf2xx: do not hang on no dev
2019-09-02 12:21:15 +02:00
Juan Carrano
8b88666f3d tests,examples/usb: PID, VID warning only when building.
The warning issued when the PID and VID are set to the default values should
not be printed on `make clean` and other targets, only with `make all` and it
should be a proper target.

To do: replace shell echos with proper $(warning ..) calls.
2019-09-02 12:20:32 +02:00
benpicco
3901740ef2
Merge pull request #12130 from miri64/posix_sockets/fix/i10308-526716024
posix_socket: set sock for returned socket on accept()
2019-09-02 12:05:13 +02:00
fabian18
2edf153cf8 drivers/at86rf2xx: do not hang on no dev 2019-09-02 10:27:24 +02:00
afb8509034
boards/nucleo: use shared I2C configuration 2019-09-02 08:17:21 +02:00
df18dba378
boards/stm32: introduce shared i2c configuration
This configuration corresponds to I2C1 connected to PB6 (SCL) and PB7 (SDA)
2019-09-02 08:17:21 +02:00
benpicco
d991883c5b
Merge pull request #12025 from twostairs/feature/nucleo-l031k6-i2c
board/nucleo-l031k6: Add i2c to periph_conf
2019-09-01 17:57:49 +02:00
Marius
d6b6b7a529 board/nucleo-l031k6: Add i2c to periph_conf 2019-09-01 17:14:06 +02:00
benpicco
a10c3f09a4
Merge pull request #12136 from aabadie/pr/tests/driver_io1_xplained_printf_float
tests/driver_io1_xplained: remove printf_float dependency
2019-09-01 15:43:04 +02:00
6754f71c3a
tests/driver_io1_xplained: remove printf_float dependency
This saves a lot of ROM and is easily replaced with basic temperature computation
2019-09-01 15:16:32 +02:00
Gunar Schorcht
8c8306e1ca cpu/esp8266: fix errno for I2C addr ack error 2019-08-31 12:09:09 +02:00
Simon Brummer
351220e884 gnrc_tcp - Release pakets on failed gnrc_netapi_send() 2019-08-31 11:16:55 +02:00
Daniele Lacamera
5cb76e521b posix_socket: set sock for returned socket on accept() 2019-08-30 21:18:25 +02:00
benpicco
2101458900
Merge pull request #11911 from maribu/arm7_common-irq
cpu/arm7_common: Cleaned up IRQ code
2019-08-30 19:17:09 +02:00
benpicco
837f99e757
Merge pull request #12084 from nmeum/pr/gnrc_tcp_minlen
gnrc_tcp: add minimum length check to _receive
2019-08-30 17:37:20 +02:00