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

25251 Commits

Author SHA1 Message Date
Marian Buschsieweke
ab94b7c8ad
Merge pull request #12795 from aabadie/pr/tests/pkg_jsmn_cleanup
tests/pkg_jsmn: replace use of "%.*s" string formatter
2019-11-23 22:00:20 +01:00
d75650737b
tests/pkg_jsmn: don't use '%.*s' string formatter
This is not compatible with avr-libc
2019-11-23 20:57:19 +01:00
Marian Buschsieweke
54ee5eb6ad
Merge pull request #12792 from aabadie/pr/tests/pipe_cleanup
tests/pipe: cleanup application
2019-11-23 16:23:43 +01:00
9af59196da
tests/pkg_jsmn: use kernel define ARRAY_SIZE macro 2019-11-23 15:08:59 +01:00
a081fb693d
tests/pipe: cleanup application
The string formatter initially used doesn't seem to be supported by the AVR toolchain. Correctly closing the buffer with a null byte and using plain %s formatter works in all cases
2019-11-23 15:06:54 +01:00
benpicco
d244b0fe59
Merge pull request #12787 from gschorcht/cpu/esp32/netdev_default
cpu/esp*: define esp_now as default netdev
2019-11-23 14:59:54 +01:00
Gunar Schorcht
500c5f45f3 tests/netstat_l2: add esp8266 boards to BOARD_PROVIDES_NETIF 2019-11-23 14:26:37 +01:00
Gunar Schorcht
7325192fcd cpu/esp8266: defines esp_now as default netdev
If the user or the board definition doesn't enable `esp_wifi`, `esp_now` is defined as default netdev.
2019-11-23 14:26:37 +01:00
Gunar Schorcht
71d6a71364 cpu/esp32: defines esp_now as default netdev
If the user or the board definition doesn't enable `esp_wifi` or `esp_eth`, `esp_now` is defined as default netdev.
fixup! cpu/esp32: defines esp_now as default netdev
2019-11-23 14:26:07 +01:00
1f55cffcee
Merge pull request #12645 from aabadie/pr/tests/sys_crypto_remove_board_blacklist
tests/sys_crypto: remove use of BOARD_BLACKLIST variable
2019-11-23 06:48:29 +01:00
8a76acf060
Merge pull request #12706 from fjmolinas/pr_fix_flake8
RIOT: fix PEP8 errors
2019-11-23 06:47:34 +01:00
Marian Buschsieweke
16ee7aed32
Merge pull request #11350 from maribu/ina2xx
drivers/ina220: Changed to comply with RIOT's driver design goals & SAUL adaption
2019-11-22 23:36:50 +01:00
benpicco
d86ca37ed9
Merge pull request #12759 from miri64/bitfield/fix/bitorder
bitfield: unify order
2019-11-22 22:37:39 +01:00
benpicco
09f647eee2
Merge pull request #12693 from maribu/neopixel-atmega
drivers: Added WS281x RGB LED driver for ATmega platform
2019-11-22 22:36:36 +01:00
Dylan Laduranty
9b0ef62d64 saml1x/pm: fix doxygen ingroup 2019-11-22 22:20:19 +01:00
Marian Buschsieweke
0a0c1697d7
drivers/ina2xx: Added SAUL integration 2019-11-22 20:29:53 +01:00
Marian Buschsieweke
3ebbec84c7
drivers/saul: Fixed documentation
There is no need to distinguish between sensors for electrical power or other
types of power.
2019-11-22 20:29:53 +01:00
Marian Buschsieweke
a6476bd813
drivers/ina2xx: Match RIOT's driver design goals
- Use standard RIOT style `ina2xx_params_t` on initialization as explained in
  [1] instead of a custom API
- Provided a default configuration via `ina2xx_params_t` as required by [1] that
  works fine for the INA219 breakout board and with an optimal resolution that
  still covers the whole range of USB high-power devices (500 mA @ 5V) with a
  comfortable safe margin.
- Changed initialization procedure to include a device reset and connectivity
  test, as required by [1]
- The calibration value is now calculated by the driver
    - This simplifies using the driver a lot
    - The user can still choose a trade-off between range and resolution that
      matches the application requirements, but now among predefined values
    - This allows the driver to easily convert the raw data into meaningful
      physical data, as the resolution of the raw data is known
- All measurements are provided as meaningful physical data as required by [1]

[1]: https://github.com/RIOT-OS/RIOT/wiki/Guide:-Writing-a-device-driver-in-RIOT
2019-11-22 20:28:57 +01:00
Dylan Laduranty
550bfdbdbf
Merge pull request #12777 from benpicco/pm_debug_puts
cpu/sam*: pm: make use of DEBUG_PUTS()
2019-11-22 19:57:46 +01:00
Marian Buschsieweke
f424421f79
drivers: Renamed ina220 --> ina2xx
The INA219 has the exact same interface as the INA220 (including values and
semantics of the configuration register). Thus, this driver can be used for
both. The ina220 has been renamed to ina2xx to reflect this and pseudo modules
for the ina220 and ina219 have been added.
2019-11-22 19:53:51 +01:00
607aa6fbcd
sys/crypto/ocb: fix max data condition 2019-11-22 19:21:06 +01:00
d9ca9f3ef2
tests/crypto: remove useless BOARD_BLACKLIST 2019-11-22 19:21:06 +01:00
608fee8852
tests/crypto: add new 8/16 bit boards to insufficient memory 2019-11-22 19:21:05 +01:00
2d9612b116
tests/sys_crypto: exclude some test for 8 and 16 bit arch
The tests doesn't work when length_encoding is above the maximum uint16
value.

Also add a set that checks the right error code is returned with too
small length_encoding.
2019-11-22 19:21:05 +01:00
77801d18e2
Merge pull request #12496 from aabadie/pr/examples/suit_example_shell
examples/suit_update: use shell module
2019-11-22 18:48:02 +01:00
Gunar Schorcht
72967f8fc3 cpu/esp32: GNRC_NETIF_NUMOF is handled in CPU makefile
Since Makefile.dep files are included as last files multiple times to resolve all module dependencies, GNRC_NETIF_NUMOF is handled here.
2019-11-22 17:38:35 +01:00
Gunar Schorcht
afff683696 cpu/esp32: number of thread priorities for esp_eth
The number of thread priority levels has to be 32 if esp_eth is used.
2019-11-22 17:32:37 +01:00
Francisco
3c60afc083
Merge pull request #12768 from aabadie/pr/boards/pic32-clicker-uart-cleanup
boards/pic32-clicker: cleanup uart configuration and initialization, cleanup header includes
2019-11-22 17:20:40 +01:00
Marian Buschsieweke
16ef0a7f30
Merge pull request #8383 from haukepetersen/opt_driver_bmx280spi
drivers/bmx280: reworked driver and added SPI mode
2019-11-22 17:06:12 +01:00
2480d11570
examples/suit_update: adapt test for the shell 2019-11-22 15:56:36 +01:00
baf18777a1
examples/suit_update: add the shell to the example
The nanocoap server is run in a dedicated thread
2019-11-22 15:56:35 +01:00
c7cd3d869e
Merge pull request #12180 from gschorcht/sys/arduino/lib
sys/arduino: Using Arduino libraries
2019-11-22 15:29:52 +01:00
f04df728cb
Merge pull request #12044 from gschorcht/cpu/esp32/log_module_fix
cpu/esp32: improvements and cleanup of log_module
2019-11-22 14:33:33 +01:00
49e8c736d9
Merge pull request #12765 from fjmolinas/pr_improvee_pthread_barier
tests/pthread_barrier: improve test script
2019-11-22 14:32:12 +01:00
Hauke Petersen
5e51030eab tests/driver_bmx280: add Makefile.ci 2019-11-22 14:04:38 +01:00
Hauke Petersen
96c6313bd4 boards/avr-rss2: use bme280_i2c module 2019-11-22 14:04:38 +01:00
Hauke Petersen
9f5f6f4215 drivers/bmx280: improved documentation 2019-11-22 14:04:38 +01:00
Hauke Petersen
f46731801a boards/sltb001a: use i2c mode of bme280 driver 2019-11-22 14:04:37 +01:00
Hauke Petersen
3c0d5048f9 board/ruuvitag: enable bme280 for saul default 2019-11-22 14:04:37 +01:00
Hauke Petersen
c83e197676 tests/driver_bmx280: adapted to driver rework
functional changes:
- enable test to test the driver in SPI mode

style changes and code simplification:
- enable SPI mode
- fixed typos in doxygen
- fixed line length issues
- simplified code
- use fmt for formatting numbers
- use US_PER_SEC instead of magic value
- use named return values provided by driver
- use puts where ever applicable
2019-11-22 14:04:37 +01:00
Hauke Petersen
b7f33bd84f drivers/bmx280: significant driver rework
bugs fixed:
- move global variables into device descriptor
- guard bus access (use acquire and release)

added functionality:
- enable SPI mode

structural improvements:
- reduce stack usage
- simplify the driver's structure
- centralize bus access code
- use assertions
- cleanup includes
- use shortcuts for bus access

style changes:
- fix line length
- cleanup and improve doxygen
- unify pointer notation (char *var over char* var)
- unify (error) return messages
- use `#ifdef MODULE_BME280` instead of `#if defined(BME..)`
- unify debug messages -> using `[bmx28] x: msg` scheme
2019-11-22 14:04:37 +01:00
Gunar Schorcht
e90dd16347 tests/ssp: warning stringop-overflow has to be disabled
Newer gcc versions have an option to enable overflow warnings for string operations. This option is enabled by default. For this test, it is necessary to disable this warning if the compiler supports this option.
2019-11-22 13:56:41 +01:00
Gunar Schorcht
74c0cc3878 tests/ssp: prevent that memset is optimized out 2019-11-22 13:56:41 +01:00
Gunar Schorcht
43d989b4d5 cpu/esp32: break on core_panic
To be able to catch a core panic in debugger and to get the last output from asynchronous UART , e.g., if the stack is smashed, the system is not rebooted immediately anymore but breaks, which stops the execution in debugger or reboots the system after WDT timeout.
2019-11-22 13:56:41 +01:00
Gunar Schorcht
eb47f1c537 tests/sys_arduino_lib: demo the use of Arduino library
This test application defines a packages which imports a very simple Arduino library that is used by test application to demonstrate how an Arduino library can be imported as package and used by an application.
2019-11-22 13:26:35 +01:00
Francisco Molina
2e8968fa17 dist/tools/pyterm/pyterm: fix PEP8 F841, unused variable 2019-11-22 11:47:49 +01:00
Francisco Molina
4a2644da91 flake8: fix PEP8 F632 use ==/!= 2019-11-22 11:47:49 +01:00
Francisco Molina
41e9f06b85 flake8: fix PEP8 W608 invalid escape sequence 2019-11-22 11:47:49 +01:00
Francisco Molina
1ff9f7f631 tests/pthread_barrier: improve test script
Add intermediate child.expect to avoid timeout on platforms
where time between `start` and `done` is a little over 10s.
2019-11-22 11:19:52 +01:00
faac10f593
Merge pull request #11994 from gschorcht/cpu/esp32/esp_wifi/crypto-fix
cpu/esp32: esp_wifi and crypto module fix
2019-11-22 11:16:33 +01:00