bd3908b2a9
This commit changes the net_buf getter functions in nbuf.h by adding a timeout parameter. These function prototypes are changed to accept a timeout parameter. net_nbuf_get_rx() net_nbuf_get_tx() net_nbuf_get_data() net_nbuf_get_reserve_rx() net_nbuf_get_reserve_tx() net_nbuf_get_reserve_data() net_nbuf_copy() net_nbuf_copy_all() net_nbuf_push() net_nbuf_append() net_nbuf_write() net_nbuf_insert() Following convinience functions have not been changed net_nbuf_append_u8 net_nbuf_append_be16 net_nbuf_append_be32 net_nbuf_insert_u8 net_nbuf_insert_be16 net_nbuf_insert_be32 net_nbuf_write_u8 net_nbuf_write_be16 net_nbuf_write_be32 so they call the base function using K_FOREVER. Use the base function if you want to have a timeout when net_buf is allocated. Change-Id: I20bb602ffb73069e5a02668fce60575141586c0f Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> |
||
---|---|---|
.. | ||
src | ||
Makefile | ||
README | ||
prj.conf | ||
testcase.ini |
README
Application implementing 802.15.4 "serial-radio" protocol. How to use: 1. Build and flash Zephyr application to Quark board with 802.15.4 radio, at the moment CC2520 radio is supported. 2. Connect board to Linux PC, /dev/ttyACM[number] should appear 3. Run Contiki-based native border router (6lbr, native-router, etc) Example for Contiki: $ cd examples/ipv6/native-border-router $ make $ sudo ./border-router.native -v5 -s ttyACM0 fd01::1/64 Now you have Contiki native border router, simple web server should show some 802.15.4 devices. Web server address is printed in the border-router output screen: ... Server IPv6 addresses: 0x62c5c0: =>fd01::212:4b00:531f:113a ... Go to http://[fd01::212:4b00:531f:113a]/ It shall show you Neighbors and Routes. PS: Make sure your disto ModemManager is disabled, otherwise it sends AT commands to our device ;) $ sudo systemctl disable ModemManager.service