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

19287 Commits

Author SHA1 Message Date
Martine Lenders
532b8f0585
Merge pull request #9777 from miri64/stm32_common/fix/llvm-formatting
stm32_common/eeprom: fix DEBUG formatting
2018-08-14 15:18:24 +02:00
Martine Lenders
9478274bd9 stm32_common/eeprom: fix DEBUG formatting
This fixes compilation for `periph_eeprom` with LLVM/clang and also is
more in accordance with our [coding conventions].

[coding conventions]: https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions#-wformat
2018-08-14 14:56:44 +02:00
Francisco Acosta
0c14681a3e
Merge pull request #9710 from basilfx/feature/slstk3402a_i2c
boards: slstk3402a: add i2c
2018-08-14 12:34:36 +02:00
Marian Buschsieweke
18ae7652a9
cpu/lpc2387: Fixed doc and attribute of arm_reset
- arm_reset was completely undocumented, even though technical details buried
  deeply in the data sheet of the LPC2387 are involved in the code
- The attribute "naked" is misplaced, it should only be used when no C code
  is present. However, the function consists of C code only
- The attribute "noreturn" has to be used in the declaration [1] of a function,
  not in the implementation. Otherwise the caller is not informed and code using
  the function will not be optimized.

[1]: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
2018-08-14 10:40:09 +02:00
Joakim Nohlgård
dda55731ff Makefile.include: Remove -Wno-implicit-fallthrough 2018-08-14 10:20:37 +02:00
Joakim Nohlgård
9e5dd332cf Makefile.include: Set CCACHE_CPP2 to fix false warnings 2018-08-14 10:20:14 +02:00
Joakim Nohlgård
3cc088689e 6lo: Speling correction in comment 2018-08-14 10:08:52 +02:00
Joakim Nohlgård
58281e9135 6lo: Set more data flag on all but last frag 2018-08-14 10:08:17 +02:00
Joakim Nohlgård
1652e5ae24 sht1x: Fix Wimplicit-fallthrough warning 2018-08-14 10:05:15 +02:00
Martine Lenders
75a194e914
Merge pull request #9770 from miri64/kinetis/fix/llvm-timer
kinetis: timer: #ifdef unused functions
2018-08-13 19:02:34 +02:00
Martine Lenders
426cfbeea6 kinetis: timer: #ifdef unused functions
Another issue revealed by compiling several apps with LLVM/clang for
the `teensy31` board.
2018-08-13 18:38:13 +02:00
Martine Lenders
c8fb743ffb
Merge pull request #9768 from SemjonKerner/fix_periph_pwm_nrf51
cpu/nrf51: fix formatting uint to PRIu32
2018-08-13 18:33:08 +02:00
Martine Lenders
4be211f3bc
Merge pull request #9566 from cladmi/pr/release/2018.04/release_notes
Release notes for 2018.07
2018-08-13 18:01:19 +02:00
Semjon Kerner
9e63671eab cpu/nrf51: fix formatting uint to PRIu32 2018-08-13 17:56:05 +02:00
Gaëtan Harter
5febaaeedb
release-notes.txt: Add Release 2018.07 notes
This release-notes where contributed by the following github users:

* aabadie
* bergzand
* cladmi
* gebart
* miri64
* PeterKietzmann
2018-08-13 17:41:43 +02:00
smlng
3893f04d00 tests: move testrunner import up
Testrunner is now impported as a package found in PYTHONPATH, so
import can be placed at the top of the script as usual.
2018-08-13 14:11:24 +02:00
smlng
f9824abedb tests: remove unused os package import
os package is imported by every test script but only used by
a few, thus flake8 check reported errors.
2018-08-13 14:11:23 +02:00
smlng
13d61b5c20 tests: use testrunner from pythonlibs
Remove now obsolete sys.append from all tests, as testrunner was moved
to dist/pythonlibs as proper package.
2018-08-13 14:11:23 +02:00
smlng
dd9a43bdc9 dist: move testrunner to pythonlibs as package
As testrunner is moved to dist/pythonlibs which is exported
via PYTHONPATH, testrunner is found by all test scripts.
2018-08-13 14:11:22 +02:00
Cenk Gündoğan
ba6d386c5e
Merge pull request #9756 from smlng/pr/ccnlite/versionbump
pkg: update ccn-lite and adapt shell commands
2018-08-13 11:03:11 +02:00
Jose Alamos
d54a74736d boards/sensebox: Initial board port for SenseBox MCU with SAMD21 2018-08-13 10:49:46 +02:00
Martine Lenders
d852d90cd0
Merge pull request #9470 from gebart/pr/netif-fcf-frame-pend
gnrc_netif_ieee802154: Set FCF Frame Pending when more data is expected
2018-08-13 10:39:49 +02:00
Peter Kietzmann
2bfca66e5c
Merge pull request #9469 from gebart/pr/netif-flags-more-data
gnrc_netif: Introduce GNRC_NETIF_HDR_FLAGS_MORE_DATA
2018-08-13 10:03:00 +02:00
Joakim Nohlgård
a247d8bfa5 gnrc_netif_ieee802154: set Frame Pending bit sometimes
Set frame pending bit in IEEE 802.15.4 FCF when
GNRC_NETIF_HDR_FLAGS_MORE_DATA is set on the netif header on outbound
frames.
2018-08-13 09:27:18 +02:00
Joakim Nohlgård
29e4a1ba3c gnrc_netif: Introduce GNRC_NETIF_HDR_FLAGS_MORE_DATA 2018-08-13 09:25:32 +02:00
Peter Kietzmann
a05e2f22e2
Merge pull request #9693 from smlng/pr/cc2538/timer
cc2538: cleanup and optimisation of periph timer
2018-08-13 08:40:51 +02:00
e2d2a479bf
Merge pull request #9351 from cladmi/pr/make/cortexm_common/linkerscript
cortexm_common/ldscript: simplify generation of firmwares in section of the ROM
2018-08-12 12:28:44 +02:00
Martine Lenders
6b0c34fa6f
Merge pull request #9765 from gebart/pr/sprintf-len
tests/gnrc_netif: Fix -Wformat-overflow
2018-08-11 17:50:48 +02:00
Gaëtan Harter
6abcf2e015
cortexm_common_ldscript: add a README.md
Explain the test and the output you should get.
2018-08-11 11:34:10 +02:00
Gaëtan Harter
8ecc0ac652
cortexm_common_ldscript: add test for _fw_rom_length overflow
Verify that specifying a too big _fw_rom_length for the rom is detected and
prevent compilation.
2018-08-11 11:34:07 +02:00
Gaëtan Harter
6768763601
cortexm_common_ldscript: add test for linker FW_ROM_LEN
Compile an elf file with a length equals to half the rom length.
2018-08-11 11:34:04 +02:00
Gaëtan Harter
7dad2e7096
cortexm_common/ldscript: allow defining FW_ROM_SIZE
Allow defining a specific rom length to use for linking the firmware,
_fw_rom_length, instead of the default configuration to use the whole rom from
_rom_offset to the end.

 * Add cortexm_common/Makefile.include FW_ROM_SIZE configuration
 * Add an assertion that _fw_rom_length still respects _rom_length
2018-08-11 11:34:01 +02:00
Gaëtan Harter
642f5f2414
cortexm_common_ldscript: add test for linker script offset
Compile two elf files with different offset and verify the linked file offset.
I only enabled samr21-xpro and iotlab nodes for the moment.
2018-08-11 11:33:58 +02:00
Gaëtan Harter
c84539fdb3
cortexm_common: allow defining ROM_OFFFSET in a compilation rule
Define _rom_offset with a conditional evaluated at execution time to allow
setting it in compilation rules and generate in the same make instance different
elf files with different configurations.
2018-08-11 11:33:55 +02:00
Gaëtan Harter
9103dcaeda
cortexm_common: refactor the definition test
The variables should all always be defined.
2018-08-11 11:33:52 +02:00
Gaëtan Harter
def2858af9
cortexm_common_ldscript: test _rom_offfset taken into account
Test that _rom_offfset is removed from the available _rom_length.
2018-08-11 11:33:49 +02:00
Gaëtan Harter
83a617261a
cortexm_common/ldscript: add _fw_rom_length variable
It will help testing if it is taken into account and for defining for outside
after.
2018-08-11 11:33:47 +02:00
Gaëtan Harter
bbb1fbe0e3
cortexm_common_ldscript: add a test that checks if ROM_LEN is used
Trigger an overflow by 1 byte to detect in ROM_LEN is indeed used.
2018-08-11 11:33:43 +02:00
Gaëtan Harter
d9db258411
cortexm_common/ldscript: re-use _rom_offset variable name
Inspired by kaspar030 version to removing the new _boot_offset variable.

cbf324a66d/cpu/cortexm_common/ldscripts/cortexm.ld
2018-08-11 11:33:39 +02:00
Joakim Nohlgård
556d06d3bf tests/gnrc_netif: Fix -Wformat-overflow
Fixes the following error with GCC 7

main.c: In function 'test_netif_get_name':
main.c:1054:23: error: 'sprintf' may write a terminating nul past the end of the destination [-Werror=format-overflow=]
     sprintf(exp_name, "if%d", (int)netif);
                       ^~~~~~
main.c:1054:5: note: 'sprintf' output between 4 and 9 bytes into a destination of size 8
     sprintf(exp_name, "if%d", (int)netif);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2018-08-11 07:28:29 +02:00
Joakim Nohlgård
8487710173 frdm-k64f: Add ADC SAUL configuration 2018-08-11 06:38:23 +02:00
MrKevinWeiss
5fa366fc59 boards/stm32f103c8: Remove lines from openocd.cfg handled my makefile 2018-08-10 16:59:57 +02:00
Gaëtan Harter
67e3b3a8dd
Merge pull request #9761 from cladmi/pr/release/version
Makefile.include: Include VERSION file for release
2018-08-10 16:49:17 +02:00
Joakim Nohlgård
45edfa43bf frdm-k64f: Add configuration for dedicated analog pins
These pins have no alternate function in the pin mux so we might as well
make them available to applications. These pins are the only pins which
provide differential analog input pairs on this board.
2018-08-10 16:27:06 +02:00
Joakim Nohlgård
9d720877d3 frdm-k64f: Change ADC config to use the Arduino compatible pins 2018-08-10 16:25:35 +02:00
Joakim Nohlgård
da5a57e72d frdm-k64f: Correct and format ADC pin configuration
Only ADC1 has a connection with the configured pins, the chosen channels
on ADC0 are connected to other pins.
2018-08-10 16:23:59 +02:00
Gaëtan Harter
5c9213dfc6
Makefile.include: Include VERSION file for release
When downloading the release archive and building an example, the RIOT_VERSION string is not set to "Version 2018.04" but to
    
    Version: UNKNOWN (builddir: /home/me/Downloads/RIOT-2018.04)

This allows sourcing a global VERSION file to manually set it before releases.
2018-08-10 16:15:56 +02:00
f617a29156
Merge pull request #9758 from smlng/pr/dist/pythonlibs
make: introduce common Python lib path
2018-08-10 14:50:20 +02:00
MrKevinWeiss
2bf16a5555 boards/stm32f103c8: fix openocd config
When flashing multiple times the flasher gets stuck.
Default configuration is used that fixes running mulitple tests.
-c 'reset halt' is needed to support debug after config is changed.
2018-08-10 14:41:35 +02:00
José Alamos
3436d34c04
Merge pull request #9757 from aabadie/pr/boards/doc_cleanup
boards*: documentation cleanup
2018-08-10 14:40:39 +02:00