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

20648 Commits

Author SHA1 Message Date
Francisco Acosta
8e5ac629e0 tests/riotboot: extend to accept slot 0 or 1
Modify the test to accept slot values 0 and 1.
2019-01-14 16:14:34 +01:00
Francisco Acosta
e8660b2012 cpu/cortex_common: add support for multislot
A second slot is defined with a calculated size, from the
remaining flash after the bootloader and the first slot.
Both slots are defined as equal size, but it can be overriden.
2019-01-02 17:56:11 +01:00
Francisco Acosta
8a0a0be426 riotboot: allow to overwrite slot 1
By erasing slot 1 header the slot gets invalidated.
This is very useful while debugging, since we can
force the bootloader to ignore anything on that
slot.
2019-01-02 17:56:11 +01:00
Francisco Acosta
ec24ea49b1 riotboot: add support for multislot
riotboot looks for valid, available slots and compares its
version. The slot with the highest version is booted, otherwise
if no valid slot is found it loops on `while(1);`
2019-01-02 17:56:11 +01:00
Francisco Acosta
8f22175af3 riotboot_slot: add second slot compatibility
When a second slot is defined, the "partition table"
gets a second field which represents the starting of
the second slot, at a defined offset.
2019-01-02 17:56:11 +01:00
Kevin "Bear Puncher" Weiss
90b5865692
Merge pull request #10691 from aabadie/pr/boards/stm32_useless_defines
boards/stm32: remove useless empty conf defines
2019-01-02 17:00:30 +01:00
Kevin "Bear Puncher" Weiss
24837e9f17
Merge pull request #10690 from aabadie/pr/boards/stm32_common_i2c_f0_f2
boards/stm32: factorize i2c configuration on stm32f0 and stm32f2 based nucleo boards
2019-01-02 16:05:36 +01:00
Kevin "Bear Puncher" Weiss
5fd304b5f5
Merge pull request #10588 from aabadie/pr/tests/bench_coreapis_pexpect_fix
tests/bench_runtime_coreapis: improve pexpect autotest
2019-01-02 15:06:51 +01:00
9a69c9bbc5 boards/stm32: remove useless empty conf defines 2019-01-02 14:52:38 +01:00
3eba44a660 boards/nucleo-f0207zg: use common clock and i2c configuration 2019-01-02 14:29:26 +01:00
24bc5ae254 boards/nucleo-f0xx: use common i2c configuration 2019-01-02 14:23:46 +01:00
541fc7f93f boards/stm32: add f2 common clock configuration 2019-01-02 14:23:46 +01:00
f90c69cf6e tests/bench_runtime_coreapis: improve pexpect autotest 2019-01-02 14:22:37 +01:00
4e7bfb65df tests/bench_runtime_coreapis: globally import testrunner 2019-01-02 14:22:28 +01:00
Kevin "Bear Puncher" Weiss
02ec3845de
Merge pull request #9728 from aabadie/pr/boards/stm32_common_i2c
boards: factorize some nucleo f4/f7/l4 i2c configuration
2019-01-02 14:05:32 +01:00
536e4a55a8 boards/nucleo-l496zg: provide and configure i2c 2019-01-02 11:27:42 +01:00
ed6dcfe872 boards/nucleo-f746zg: provide and configure i2c 2019-01-02 11:27:25 +01:00
4fd4ce4c54 boards/nucleo-f722/l476: use common i2c configuration 2019-01-02 11:26:54 +01:00
f8d8ddb1ef boards/stm32: adapt common i2c config to f7 and l4 2019-01-02 11:25:32 +01:00
0d6af64a15
Merge pull request #10647 from aabadie/pr/boards/nucleo-l422rc-i2c
boards/nucleo-l433rc: add I2C configuration
2019-01-02 11:01:17 +01:00
b81941f953 boards/nucleo-f4**: use common clock and I2c configuration 2019-01-02 10:30:13 +01:00
08608c350c boards/stm32: add common I2C configuration
This configuration provides 1 I2C using I2C1 on PB8 and PB9, which is very common for STMs
2019-01-02 10:30:13 +01:00
11da5036fb boards/stm32: add new common clock configurations 2019-01-02 10:30:13 +01:00
824201b9ea boards/nucleo-l433rc: add I2C configuration 2019-01-02 10:19:46 +01:00
Kevin "Bear Puncher" Weiss
7f179cd0bf
Merge pull request #10689 from aabadie/pr/boards/st_adc_numof_cleanup
boards/stm32: remove unnecessary ADC defines in board config
2019-01-02 10:10:29 +01:00
973a6a4c93 boards/stm32: remove unnecessary ADC defines in board config 2019-01-02 09:15:22 +01:00
Gunar Schorcht
d3f78a5a40
Merge pull request #10679 from miri64/gnrc_sixlowpan_frag/fix/send-check-msg-queue
gnrc_sixlowpan_frag: check if own message queue is full
2018-12-30 15:48:26 +01:00
Gunar Schorcht
934c4225d2
Merge pull request #10680 from miri64/gnrc_sixlowpan_frag/fix/rbuf-full-release
gnrc_sixlowpan_frag: release packet rbuf_add error cases
2018-12-30 15:47:59 +01:00
Martine Lenders
e8da744e6d gnrc_sixlowpan_frag: release packet when frag hdr can't be marked
Otherwise, there will be leaks ;-).
2018-12-30 01:05:34 +01:00
Martine Lenders
a409603f84 gnrc_sixlowpan_frag: release packet when rbuf is full
Otherwise, there will be leaks ;-).
2018-12-30 00:59:04 +01:00
Martine Lenders
9e3cdebae1 gnrc_sixlowpan_frag: check if own message queue is full
When issueing the sending of the next fragment the current version of
`gnrc_sixlowpan_frag` doesn't check if the queue is full. This leads to
leakage of the packet buffer, since when it is full, the package never
gets released.

This change adds a checks and error exits in case the queue is full.
2018-12-29 22:54:52 +01:00
Martine Lenders
d5bbf45d32 gnrc_sixlowpan_frag: reduce code duplication in send 2018-12-29 22:54:14 +01:00
Gunar Schorcht
a87c2c9563
Merge pull request #10675 from miri64/dist/enh/print-toolchain-version-xtensa
print_toolchain_versions.sh: add xtensa toolchains
2018-12-29 15:44:44 +01:00
Martine Lenders
4887b22ef5 print_toolchain_versions.sh: add xtensa newlibs 2018-12-29 15:26:36 +01:00
Martine Lenders
fa3d617e2e
Merge pull request #10657 from maribu/netdev_driver_pre
netdev_driver_t::recv(): Clarified documentation
2018-12-29 14:34:42 +01:00
Martine Lenders
745574266c print_toolchain_versions.sh: add xtensa toolchains 2018-12-29 14:28:08 +01:00
Martine Lenders
7bdbd163c9 print_toolchain_versions.sh: make lists easily diff-able 2018-12-29 14:27:35 +01:00
Martine Lenders
5dda85f54d
Merge pull request #10581 from TimoRoth/master
esp_now: avoid parsing IPv6 header in netdev driver
2018-12-29 14:08:38 +01:00
Marian Buschsieweke
58f496de47
netdev_driver_t::recv: Extend doc on size feature
Some drivers return on netdev_driver_t::recv() not the actual frame size, but
an upper bound estimation of it. The upper layer code is already prepared to
handle that. This brings the doc in sync with the code.
2018-12-29 13:59:58 +01:00
Timo Rothenpieler
814e4ecbbe gnrc_netif: ESP-NOW talks 6Lo now 2018-12-29 13:15:44 +01:00
Timo Rothenpieler
6be81fbd93 esp_now: use custom netif instead of raw one
Avoids parsing IPv6 packets to determine destination address.
Allows using 6Lo over ESP-NOW, which is required due to the low MTU of
ESP-NOW.

Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2018-12-29 13:15:44 +01:00
Marian Buschsieweke
e81b6191aa
netdev_driver_t::recv: Clarified small buf case
Clarified in the documentation how netdev_driver_t::recv() should behave in case
the size of the buffer in parameter buf (indicated by parameter len) is to small
to fit the received frame.
2018-12-28 20:23:19 +01:00
Marian Buschsieweke
87055d7b6d
netdev_driver_t::recv: Added drop and size to doc
netdev_driver_t::recv does on of three things:
 - Receive the frame
 - Drop it
 - Get (an estimation of) the size of the frame

The brief section of the documentation was changed to reflect this. (And it
starts with the least obvious thing in the hope readers of the API stumble upon
it...)
2018-12-28 20:23:11 +01:00
Marian Buschsieweke
b6069eb5f5
netdev_driver_t::recv: Fixed preconditions in doc
Removed the invalid precondition in netdev_driver_t::recv that the buffer never
NULL and the length positive. (In the "get message size" case both is wrong, in
the drop message case the first part is wrong.)
2018-12-28 20:22:57 +01:00
Timo Rothenpieler
34c42cbcc2 esp_now: code style amendments 2018-12-28 13:35:46 +01:00
Timo Rothenpieler
a46023a523 esp_now: remove unnecessary ifdef 2018-12-28 13:35:46 +01:00
Martine Lenders
07ceddd9b1
Merge pull request #10668 from miri64/esp_now/doc/fix-grouping
esp_now: fix doxygen groups
2018-12-28 13:17:33 +01:00
Martine Lenders
9f0dfb5222 esp_now: fix doxygen groups 2018-12-28 12:14:16 +01:00
Martine Lenders
9f51e15889
Merge pull request #10606 from aabadie/pr/tests/posix_semaphore_timeout_margin
tests/posix_semaphore: increase timeout margin
2018-12-28 12:10:10 +01:00
Martine Lenders
b0f64dbb98
Merge pull request #9847 from aabadie/pr/tools/pyocd
dist/tools: add support for PyOCD programmer/debugger
2018-12-28 12:09:51 +01:00