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

5114 Commits

Author SHA1 Message Date
Cenk Gündoğan
05d4c23c4a ethertype: use correct type for NDN and CCNx 2018-05-24 10:58:26 +02:00
Cenk Gündoğan
1fb4789e1b auto_init: add ndn-riot 2018-05-24 10:58:26 +02:00
smlng
e97882dc56 evtimer: use conversion macro US_PER_MS 2018-05-23 15:13:31 +02:00
Sebastian Meiling
9d83b60f3b
Merge pull request #9083 from smlng/pr/gcoap/cleanup
gcoap: enhance gcoap_req_init
2018-05-23 10:40:54 +01:00
Cenk Gündoğan
441f11ea45 gnrc_rpl: shell: adapt to evtimer for RPL events 2018-05-23 09:42:12 +02:00
Cenk Gündoğan
b819ac8d35 gnrc_rpl: adapt to evtimer for RPL events 2018-05-23 09:42:12 +02:00
Cenk Gündoğan
4c9e947d43 gnrc_rpl: adjust author and copyright 2018-05-22 23:46:55 +02:00
smlng
b9ca8f466f gcoap: add asserts for path in gcoap_req_init 2018-05-22 21:28:58 +02:00
smlng
c9e9f72454 gcoap: use const path parameter 2018-05-22 21:28:58 +02:00
Bas Stottelaar
7781da7799 sys: netopt: add busy option 2018-05-21 16:37:38 +02:00
Bas Stottelaar
02395e593d sys: netopt: add checksum option 2018-05-21 16:37:38 +02:00
Juan Carrano
cf686bde2d pkg/tlsf: Refactor the TLSF package and bring back original TLSF api.
- Cleanup package makefile.
- Download directly from git.
- Remove giant patch.
- Implement malloc function as a contrib package.
- Update ccn example.
- Update ps command.
2018-05-18 15:41:07 +02:00
Cenk Gündoğan
94541e1802
Merge pull request #9145 from bergzand/pr/trickle/ms_us_swap
trickle: remove msg_time member from struct
2018-05-18 15:00:52 +02:00
Cenk Gündoğan
ab0071622b
Merge pull request #9121 from kaspar030/uart_stdio_workaround
sys/uart_stdio: compile with -Wno-cast-function-type
2018-05-17 17:13:30 +02:00
1c03b67cab sys/uart_stdio: compile with -Wno-cast-function-type 2018-05-17 17:03:27 +02:00
aa84c3e6b8
trickle: remove msg_time member from struct
The msg_time member is only locally used and set before read. It can
be removed as the state kept by the member is not used.
2018-05-17 10:40:12 +02:00
d6f9be77b5
Merge pull request #9123 from maribu/pack_structs
gnrc/netif/hdr.h: Optimized structure layout
2018-05-14 14:29:09 +02:00
Marian Buschsieweke
4b8881abb4
gnrc/netif/hdr.h: Optimized structure layout
Reordered struct members to not waste memory due to padding.

Before:
``` C
typedef struct {
    uint8_t src_l2addr_len;
    uint8_t dst_l2addr_len;
    kernel_pid_t if_pid;    // <-- 16 bit, is aligned to 16 bit
    uint8_t flags;
    uint8_t __padding_byte; // <-- Inserted to fulfill padding requirements
    int16_t rssi;           // <-- 16 bit, is NOT aligned to 16 bit
    uint8_t lqi;
    uint8_t __padding_byte2;// <-- Inserted to fulfill padding requirements
} gnrc_netif_hdr_t;
```

Now:
``` C
typedef struct {
    uint8_t src_l2addr_len;
    uint8_t dst_l2addr_len;
    kernel_pid_t if_pid;    // <-- 16 bit, is aligned to 16 bit
    uint8_t flags;
    uint8_t lqi;
    int16_t rssi;           // <-- 16 bit, is aligned to 16 bit
} gnrc_netif_hdr_t;
```

When build for the `bluepill` board, the new layout reduces the size by 2 bytes.
2018-05-14 14:01:29 +02:00
372aadd626
Merge pull request #8978 from Hyungsin/forupstream_fxos8700
drivers: add driver for FXOS8700 3-axis accelerometer/magnetometer
2018-05-14 08:45:58 +02:00
Hyungsin
beaf08bcb2 drivers: add driver for FXOS8700 3-axis accelerometer/magnetometer 2018-05-12 17:51:58 -07:00
Gaëtan Harter
60d09e6b21
sys/icmpv6_hdr_print: replace PRIu8 by PRIu16
PRIu8 is not supported on samr21-xpro:

    type:   hu  code:   hu

After fix

    type: 133  code:   0

Found by running 'tests/gnrc_netif'
2018-05-11 17:41:25 +02:00
Gaëtan Harter
d0f22b787c
Merge pull request #8112 from cladmi/pr/crypto/input_len
crypto/ccm: fix input_len checking with length_encoding
2018-05-09 18:56:34 +02:00
Gaëtan Harter
fa33eacd1f
crypto/ccm: fix _fits_in_nbytes function
Function is broken with num_bytes >= 4.

Could happen when storing input_len with len_encoding >= 4.
It can take values from 2 to 8, so make it work for cases it would overflow.
2018-05-07 15:08:00 +02:00
Gaëtan Harter
ee311a331b
crypto/ccm: refactor input_len check in a function
Refactorg checking that length can be stored in a number of bytes to a
subfunction.
2018-05-07 15:08:00 +02:00
Wentao Shang
89023b3499
crypto/ccm: fix input_len check
Maximum input_len depends only on length_encoding and not auth_data_len.
The current length_max value was also wrong.

RFC3610 page 2

   3. The message m, consisting of a string of l(m) octets where 0 <=
      l(m) < 2^(8L).  The length restriction ensures that l(m) can be
      encoded in a field of L octets.
2018-05-07 15:08:00 +02:00
Martine Lenders
8a46cf611e gcoap: make message queue size configurable 2018-05-06 16:41:43 +02:00
9020767c2d
Merge pull request #9071 from cladmi/pr/make/riottools/arduino
sys/arduino: use RIOTTOOLS variable
2018-05-04 23:10:07 +02:00
Martine Lenders
3d821ee195 gnrc_rpl: remove route before updating it
The "new" forwarding table does not update an old route but just adds
another as long as it is not *exactly* the same. However, the RPL
adaptation missed to remove the old route so RPL got easily confused
about where it actually needed to send packets.
2018-05-04 17:46:02 +02:00
Gaëtan Harter
14ac80e15a
sys/arduino: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-04 11:16:48 +02:00
f9c75d0df7
Merge pull request #8915 from ZetaR60/RIOT_ads101x
drivers/ads101x: support for ADCs
2018-05-03 08:31:03 +02:00
b81b12de4e
cbor: Move header to cbor subdirectory
Prevents conflicts when multiple modules/packages provide a `cbor.h`
header.
2018-05-01 11:12:39 +02:00
Joakim Nohlgård
9c85ce1916
Merge pull request #8733 from gebart/pr/matstat
matstat: Integer mathematical statistics library
2018-04-28 09:37:02 +02:00
Joakim Nohlgård
6927260973 sys/matstat: Integer mathematical statistics library 2018-04-28 08:03:35 +02:00
0a18bc9e97
Merge pull request #9027 from bergzand/pr/nanocoap/req_ent_incomp
nanocoap: add request entity incomplete response code
2018-04-26 11:05:29 +02:00
51f06d5127
nanocoap: Add request entity incomplete code 2018-04-26 10:50:08 +02:00
4def1fa5fd
Merge pull request #8992 from Josar/evtimer_3
evtimer: optimized adding
2018-04-26 10:00:35 +02:00
Josarn
111f021eb3 evtimer: optimized adding 2018-04-25 17:58:54 +02:00
Martine Lenders
dc41f49229 cbor: add deprecation note 2018-04-25 16:46:17 +02:00
5251e140e6
Merge pull request #8991 from Hyungsin/forupstream_pulse_counter_fix
sys/auto_init: fix syntax error on auto_init_pulse_counter.c
2018-04-23 15:52:12 +02:00
Sebastian Meiling
4f97fc76fd
Merge pull request #8894 from beduino-project/fix-gnrc_ipv6_blacklist-build
gnrc: fix build of gnrc_ipv6_blacklist when ENABLE_DEBUG is disabled
2018-04-23 14:26:53 +02:00
e1f6a5afd3 net/gcoap: increase stack size by sizeof(coap_pkt_t) 2018-04-22 23:15:16 +02:00
734944a56b
Merge pull request #8986 from haukepetersen/opt_event_allowmultipleposts
sys/event: allow calling event_post multiple times
2018-04-20 10:59:14 +02:00
Hyungsin
770b74636b sys/auto_init: fix syntax error on auto_init_pulse_counter.c 2018-04-19 19:17:02 -07:00
Hauke Petersen
46888a1eaf sys/event: allow calling event_post multiple times 2018-04-19 16:41:13 +02:00
Hauke Petersen
cf7fb4b886 net/rdcli: fix doxygen groups for RD client code 2018-04-19 16:27:59 +02:00
Martine Lenders
07eb208bc6
Merge pull request #8963 from Josar/pr/eventTimer_2
evtimer: ticks vs ms
2018-04-17 10:53:27 +02:00
f18f25c5c2
Merge pull request #8577 from gebart/pr/analog_util-refactor
sys/analog_util: Refactor, add test
2018-04-17 10:40:53 +02:00
8475844213 sys/net/uhcpc: add missing stdio.h include 2018-04-16 23:06:15 +02:00
f62818ea7b sys/auto_init/io1_xplained: fix gpios index 2018-04-16 15:57:36 +02:00
Josarn
515027b9a5 evtimer: ticks vs ms 2018-04-16 15:13:12 +02:00