From 4fec8fd31e7f1a10490c3cd717f2cd3b4c7e407b Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Fri, 13 Mar 2015 10:15:41 +0100 Subject: [PATCH 1/4] doc: improvement to IPC documentation Per default, doxygen will take only the part until the first dot into account for the brief description. In this case this leads to an ambiguous overview over the IPC send functions. --- core/include/msg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/include/msg.h b/core/include/msg.h index 9916c29cea..b44ee72cd8 100644 --- a/core/include/msg.h +++ b/core/include/msg.h @@ -60,7 +60,7 @@ typedef struct msg { /** - * @brief Send a message. (blocking) + * @brief Send a message (blocking). * * This function sends a message to another thread. The ``msg_t`` structure has * to be allocated (e.g. on the stack) before calling the function and can be @@ -81,7 +81,7 @@ int msg_send(msg_t *m, kernel_pid_t target_pid); /** - * @brief Send a message. (non-blocking) + * @brief Send a message (non-blocking). * * This function sends a message to another thread. The ``msg_t`` structure has * to be allocated (e.g. on the stack) before calling the function and can be From 8537344db9e6812b438385c274f63b29a6ed4924 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Fri, 13 Mar 2015 10:25:48 +0100 Subject: [PATCH 2/4] doc: update outdated vtimer documentation vtimer was changed in 6ee5e737f90281553ac5f21bcbbf9e21fd9d791b to use a user specified type for vtimer_set_msg(), but documentation didn't reflect this new API. --- sys/include/vtimer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/include/vtimer.h b/sys/include/vtimer.h index 1eb787db46..236638ab57 100644 --- a/sys/include/vtimer.h +++ b/sys/include/vtimer.h @@ -100,7 +100,7 @@ int vtimer_usleep(uint32_t us); int vtimer_sleep(timex_t time); /** - * @brief set a vtimer with msg event handler of type @ref MSG_TIMER + * @brief set a vtimer with msg event handler of the specified type * @param[in] t pointer to preinitialised vtimer_t * @param[in] interval vtimer timex_t interval * @param[in] pid process id From ddfc88323d49694f2b927ca68171a80a9b8a39c7 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Fri, 13 Mar 2015 10:28:28 +0100 Subject: [PATCH 3/4] examples: radio thread needs more stack The radio stack in default examples uses printf() and thus needs more stack. --- examples/default/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/default/main.c b/examples/default/main.c index 87f5375082..74180b10b9 100644 --- a/examples/default/main.c +++ b/examples/default/main.c @@ -49,7 +49,7 @@ #define SND_BUFFER_SIZE (100) #define RCV_BUFFER_SIZE (64) -#define RADIO_STACK_SIZE (KERNEL_CONF_STACKSIZE_DEFAULT) +#define RADIO_STACK_SIZE (KERNEL_CONF_STACKSIZE_MAIN) #ifdef MODULE_TRANSCEIVER From 9e4328311d37ebfcd1b58bab97885547539bac08 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Fri, 13 Mar 2015 10:29:08 +0100 Subject: [PATCH 4/4] examples: fix wording in warning --- examples/default/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/default/main.c b/examples/default/main.c index 74180b10b9..0829513c4b 100644 --- a/examples/default/main.c +++ b/examples/default/main.c @@ -111,7 +111,7 @@ void *radio(void *arg) puts("Transceiver buffer full"); } else { - puts("Unknown packet received"); + puts("Unknown message received"); } } }