[riot-commits] [RIOT-OS/RIOT] b2f90b: ringbuffer: add ringbuffer_remove and ringbuffer_g...

Kaspar Schleiser kaspar at schleiser.de
Thu Aug 21 23:27:35 CEST 2014


  Branch: refs/heads/newmsg
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: b2f90b1a10718ec257f5c4b8ae3ff99da24d8a0c
      https://github.com/RIOT-OS/RIOT/commit/b2f90b1a10718ec257f5c4b8ae3ff99da24d8a0c
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/include/ringbuffer.h
    M sys/lib/ringbuffer.c

  Log Message:
  -----------
  ringbuffer: add ringbuffer_remove and ringbuffer_get_free

ringbuffer_remove drops some some bytes from the buffer.
ringbuffer_get_free prints how many more bytes the ringbuffer can take
without overflowing.


  Commit: cd0c04979536d7461c2acfa2b48a4907fb3b6194
      https://github.com/RIOT-OS/RIOT/commit/cd0c04979536d7461c2acfa2b48a4907fb3b6194
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M core/include/msg.h
    M core/include/tcb.h
    M core/msg.c
    M core/thread.c

  Log Message:
  -----------
  core: make messaging more flexible by allowing arbitraryly sized msgs


  Commit: a48066b31a8faf8568e1169fb028e0fbb17aaf58
      https://github.com/RIOT-OS/RIOT/commit/a48066b31a8faf8568e1169fb028e0fbb17aaf58
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    A sys/include/msg_queue.h
    A sys/msg_queue/Makefile
    A sys/msg_queue/msg_queue.c

  Log Message:
  -----------
  sys: add new optional msg_queue module


  Commit: 8b4994abc70cb422693eb944b81e6f0f9083ce13
      https://github.com/RIOT-OS/RIOT/commit/8b4994abc70cb422693eb944b81e6f0f9083ce13
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M core/include/thread.h
    M core/thread.c

  Log Message:
  -----------
  core: add support for new msg_queues to threading


  Commit: e04b7a63553b8f04bef43384b69f6652cd8a2a53
      https://github.com/RIOT-OS/RIOT/commit/e04b7a63553b8f04bef43384b69f6652cd8a2a53
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M core/msg.c

  Log Message:
  -----------
  core: msg: make _msg_send_int use queue if available


  Commit: 422b10e89fa8d5dceda595fd66608fe12e15865f
      https://github.com/RIOT-OS/RIOT/commit/422b10e89fa8d5dceda595fd66608fe12e15865f
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/chardev_thread.c

  Log Message:
  -----------
  sys: chardev_thread: change to new msg api


  Commit: 2a30b1ce177367bfd33abe350e27c504fe14b445
      https://github.com/RIOT-OS/RIOT/commit/2a30b1ce177367bfd33abe350e27c504fe14b445
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/Makefile

  Log Message:
  -----------
  make: sys: include msg_queue module directory


  Commit: ae56345a4052036b7dc4d161868760d8dbf7c236
      https://github.com/RIOT-OS/RIOT/commit/ae56345a4052036b7dc4d161868760d8dbf7c236
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/include/vtimer.h
    M sys/vtimer/vtimer.c

  Log Message:
  -----------
  sys: vtimer: update to new msg api


  Commit: 92a7bc823aafe09861a5eacf0742cc9b804902f6
      https://github.com/RIOT-OS/RIOT/commit/92a7bc823aafe09861a5eacf0742cc9b804902f6
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M examples/ipc_pingpong/main.c

  Log Message:
  -----------
  examples: ipc_pingpong: update to new msg api


  Commit: f7d9a33cb25f3c5263a507c1b0733eddcedd6862
      https://github.com/RIOT-OS/RIOT/commit/f7d9a33cb25f3c5263a507c1b0733eddcedd6862
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M tests/thread_msg/main.c

  Log Message:
  -----------
  test_thread_msg: update to new msg api


  Commit: 2b564e38545281fe554c5d97d9e24e87efa61da8
      https://github.com/RIOT-OS/RIOT/commit/2b564e38545281fe554c5d97d9e24e87efa61da8
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M tests/disable_module/Makefile
    M tests/thread_msg_block_wo_queue/main.c

  Log Message:
  -----------
  test: test_thread_msg_block_w_queue: update to new msg api


  Commit: 0ce1c265dc3cf7f980890f6db598f299c7f3b3c5
      https://github.com/RIOT-OS/RIOT/commit/0ce1c265dc3cf7f980890f6db598f299c7f3b3c5
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M tests/queue_fairness/main.c

  Log Message:
  -----------
  tests: test_queue_fairness: update to new msg api


  Commit: 379e47555c0fb647cd66d7661505c25f63a2d5cd
      https://github.com/RIOT-OS/RIOT/commit/379e47555c0fb647cd66d7661505c25f63a2d5cd
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/include/msg_queue.h

  Log Message:
  -----------
  sys: msg_queue: add define for space required by one queued pulse


  Commit: bf611215682d50533eacaeb7cc7706f15deebb5f
      https://github.com/RIOT-OS/RIOT/commit/bf611215682d50533eacaeb7cc7706f15deebb5f
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/transceiver/transceiver.c

  Log Message:
  -----------
  sys: transceiver: adapt to new msg api


  Commit: 9dddef61cbc7f3e85184296d5d41641953d66ab4
      https://github.com/RIOT-OS/RIOT/commit/9dddef61cbc7f3e85184296d5d41641953d66ab4
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M cpu/native/net/interface.c

  Log Message:
  -----------
  native: update to new msg api


  Commit: fa7a902fc2b608fff79789ed4d31e7954d3c452c
      https://github.com/RIOT-OS/RIOT/commit/fa7a902fc2b608fff79789ed4d31e7954d3c452c
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M tests/vtimer_msg/Makefile
    M tests/vtimer_msg/main.c

  Log Message:
  -----------
  tests: test_vtimer_msg: update to new msg_api


  Commit: 9f6837180c0e649727a74377b7fc6179d0cf1c7e
      https://github.com/RIOT-OS/RIOT/commit/9f6837180c0e649727a74377b7fc6179d0cf1c7e
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M tests/nativenet/Makefile
    M tests/nativenet/main.c

  Log Message:
  -----------
  tests: test_nativenet: update to new msg api


  Commit: 660c1b47d00bad2613ab6973038141194f3de485
      https://github.com/RIOT-OS/RIOT/commit/660c1b47d00bad2613ab6973038141194f3de485
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/include/msg_queue.h
    M sys/msg_queue/msg_queue.c

  Log Message:
  -----------
  sys: msg_queue: add convenience functions


  Commit: 1448d64701b91cfc632e55c4e01352a49713e011
      https://github.com/RIOT-OS/RIOT/commit/1448d64701b91cfc632e55c4e01352a49713e011
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M core/msg.c

  Log Message:
  -----------
  core: msg: fix active_thread->sched_active_thread rebase


  Commit: 281ba8b68fb03a32f06aba24057aa66440e4d352
      https://github.com/RIOT-OS/RIOT/commit/281ba8b68fb03a32f06aba24057aa66440e4d352
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M tests/vtimer_msg/main.c

  Log Message:
  -----------
  test_vtimer_msg: switch to simplified msg_queue initialization


  Commit: dcb66e5d8ae9648d2a1d822051bf25a1809bca4c
      https://github.com/RIOT-OS/RIOT/commit/dcb66e5d8ae9648d2a1d822051bf25a1809bca4c
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/include/msg_queue.h

  Log Message:
  -----------
  msg_queue: use anonymous type instead of typedef'd msg_hdr_t


  Commit: 358fc0630ab566f520454190760a9fc5f75f00ee
      https://github.com/RIOT-OS/RIOT/commit/358fc0630ab566f520454190760a9fc5f75f00ee
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M core/include/flags.h
    M core/include/msg.h
    M core/include/tcb.h
    M core/include/thread.h
    M core/msg.c
    M core/thread.c
    M sys/msg_queue/msg_queue.c

  Log Message:
  -----------
  core: make send functions use message nodes

this is the first step to decoupling message endpoints from threads.

Includes making messaging optional for threads.


  Commit: f3347b2b6382e5993889bdfc0a09d79b44e482d1
      https://github.com/RIOT-OS/RIOT/commit/f3347b2b6382e5993889bdfc0a09d79b44e482d1
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M core/include/msg.h
    M core/msg.c

  Log Message:
  -----------
  core: msg: expose msg_send_receive and msg_reply


  Commit: cf9f27b9e41c6d481e9e7da0876a2a92cb00cf9f
      https://github.com/RIOT-OS/RIOT/commit/cf9f27b9e41c6d481e9e7da0876a2a92cb00cf9f
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    A examples/ipc_raw_pingpong/Makefile
    A examples/ipc_raw_pingpong/main.c

  Log Message:
  -----------
  examples: add example for non-pulse messages


  Commit: ded909f29b374bdb0ba3bed0f5255d6b00851f0f
      https://github.com/RIOT-OS/RIOT/commit/ded909f29b374bdb0ba3bed0f5255d6b00851f0f
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    A examples/ipc_raw_pingpong_sync/Makefile
    A examples/ipc_raw_pingpong_sync/main.c

  Log Message:
  -----------
  examples: add example for raw messages using msg_send_receive/msg_reply


  Commit: 85b75cc8c3788e1fdad602edc76f8f7b19e16834
      https://github.com/RIOT-OS/RIOT/commit/85b75cc8c3788e1fdad602edc76f8f7b19e16834
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/include/ringbuffer.h

  Log Message:
  -----------
  sys: ringbuffer: fix ringbuffer_remove signature typo


  Commit: ffe9d1851258563b9969c428b38e229e39273a8f
      https://github.com/RIOT-OS/RIOT/commit/ffe9d1851258563b9969c428b38e229e39273a8f
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M core/include/msg.h

  Log Message:
  -----------
  core: msg: switch to use priority queue


  Commit: 22bec15935ee89ea072cf08b6e47617c1b6d0657
      https://github.com/RIOT-OS/RIOT/commit/22bec15935ee89ea072cf08b6e47617c1b6d0657
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/Makefile

  Log Message:
  -----------
  make: fix rebase error


  Commit: 959bb3afa9ee3f305903733f4ecc32c3791cc30a
      https://github.com/RIOT-OS/RIOT/commit/959bb3afa9ee3f305903733f4ecc32c3791cc30a
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M examples/ipc_pingpong/main.c

  Log Message:
  -----------
  examples: ipc_pingpong: fix compiler warning


  Commit: 37901b0f35cafe3a1124a9bf2ec9325df53dffa2
      https://github.com/RIOT-OS/RIOT/commit/37901b0f35cafe3a1124a9bf2ec9325df53dffa2
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M examples/ipc_raw_pingpong/main.c

  Log Message:
  -----------
  examples: ipc_raw_pingpong: adapt to thread_create with args


  Commit: 0c6b2bb95b364412e912bdeaba351b5f90992b62
      https://github.com/RIOT-OS/RIOT/commit/0c6b2bb95b364412e912bdeaba351b5f90992b62
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/include/vtimer.h
    M sys/vtimer/vtimer.c

  Log Message:
  -----------
  Revert "sys: vtimer: update to new msg api"

This reverts commit ae56345a4052036b7dc4d161868760d8dbf7c236.

rebase errors...


  Commit: 081c57dcaa0480e0afc7e56e8cf2e32911c19c71
      https://github.com/RIOT-OS/RIOT/commit/081c57dcaa0480e0afc7e56e8cf2e32911c19c71
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/include/ringbuffer.h

  Log Message:
  -----------
  sys: ringbuffer: add ringbuffer_get_free


  Commit: 82bde2afe9f66270b3f6d28f7fb8cdfc2fc9c87d
      https://github.com/RIOT-OS/RIOT/commit/82bde2afe9f66270b3f6d28f7fb8cdfc2fc9c87d
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M examples/ipc_raw_pingpong_sync/main.c

  Log Message:
  -----------
  examples: ipc_raw_pingpong_sync: adapt to changed thread_create


  Commit: d2ce261e6e5daa067d294612e22912163a36a7a2
      https://github.com/RIOT-OS/RIOT/commit/d2ce261e6e5daa067d294612e22912163a36a7a2
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/msg_queue/msg_queue.c

  Log Message:
  -----------
  sys: msg_queue: adapt to changed thread_pid


  Commit: 0c929eb240a41694f7d32450c496a0b6c76fd35f
      https://github.com/RIOT-OS/RIOT/commit/0c929eb240a41694f7d32450c496a0b6c76fd35f
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M tests/nativenet/main.c

  Log Message:
  -----------
  tests: nativenet: use new msg_queue api


  Commit: 97bf91be14c53636be4d62f1edb54da890b7b52d
      https://github.com/RIOT-OS/RIOT/commit/97bf91be14c53636be4d62f1edb54da890b7b52d
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/include/vtimer.h
    M sys/vtimer/vtimer.c

  Log Message:
  -----------
  sys: vtimer: adapt to newmsg IPC changes


  Commit: 4a63d45f58f5a59f32705837380a16f05ec4d59a
      https://github.com/RIOT-OS/RIOT/commit/4a63d45f58f5a59f32705837380a16f05ec4d59a
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/uart0/uart0.c

  Log Message:
  -----------
  sys: uart0: adapt to new IPC api


  Commit: 5c6b67497914290ca4b7396bd45ff3483fe935db
      https://github.com/RIOT-OS/RIOT/commit/5c6b67497914290ca4b7396bd45ff3483fe935db
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M sys/posix/posix_io.c

  Log Message:
  -----------
  sys: posix_io: adapt to new IPC API


  Commit: e5f22b9c5d34bb885fceeb95bc64beedfbe9d024
      https://github.com/RIOT-OS/RIOT/commit/e5f22b9c5d34bb885fceeb95bc64beedfbe9d024
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M tests/thread_msg_block_w_queue/Makefile

  Log Message:
  -----------
  tests: thread_msg_block_w_queue: msg_queues are now a module


  Commit: 272e61bef6b5536898b45ec0bbdc9588ff7acbdf
      https://github.com/RIOT-OS/RIOT/commit/272e61bef6b5536898b45ec0bbdc9588ff7acbdf
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2014-08-21 (Thu, 21 Aug 2014)

  Changed paths:
    M examples/default/Makefile
    M examples/default/main.c
    M examples/rpl_udp/Makefile
    M examples/rpl_udp/helper.c
    M examples/rpl_udp/rpl.c
    M sys/net/link_layer/net_if/net_if.c
    M sys/net/network_layer/sixlowpan/ip.c
    M sys/net/network_layer/sixlowpan/lowpan.c
    M sys/net/network_layer/sixlowpan/mac.c
    M sys/net/routing/etx_beaconing.c
    M sys/net/routing/rpl/rpl.c
    M sys/net/routing/rpl/rpl.h
    M sys/net/transport_layer/destiny/msg_help.c
    M sys/net/transport_layer/destiny/msg_help.h
    M sys/net/transport_layer/destiny/socket.c
    M sys/net/transport_layer/destiny/tcp.c
    M sys/net/transport_layer/destiny/tcp_timer.c
    M sys/net/transport_layer/destiny/udp.c
    M sys/shell/commands/sc_transceiver.c
    M sys/transceiver/transceiver.c

  Log Message:
  -----------
  adapt to new IPC API

msg_t -> msg_pulse_t
msg_receive() -> msg_receive_pulse()
msg_send(..., 1) -> msg_send_pulse()
msg_send(..., 0) -> msg_try_send_pulse()
msg_send_receive() -> msg_send_receive_pulse()
msg_reply() -> msg_reply_pulse(

and, use new msg queue stuff.


Compare: https://github.com/RIOT-OS/RIOT/compare/b2f90b1a1071^...272e61bef6b5


More information about the commits mailing list