Hi Ilias!

On Mon, Jan 09, 2017 at 11:54:46AM +0100, Ilias Seitanidis wrote:
> Today I came up with some strange errors while creating a new project.
> The first one is "'CREATE_STACKTEST' undeclared (first use in this function)
>                              THREAD_PRIORITY_MAIN - 1, CREATE_STACKTEST,"
> 
> my code is "kernel_pid_t pid = thread_create(second_thread_stack,
> sizeof(second_thread_stack),
>                             THREAD_PRIORITY_MAIN - 1, CREATE_STACKTEST,
>                             second_thread, NULL, "pong");"
> -I used the same code ~7 months ago and it was working.

CREATE_STACKTEST got renamed some time ago:
$ git grep CREATE_STACKTEST
core/include/thread.h: *  @ref THREAD_CREATE_STACKTEST  | measures the stack's 
memory usage

I.e., it's called THREAD_CREATE_STACKTEST now.

(See also http://doc.riot-os.org/group__core__thread.html)

> The second one is "implicit declaration of function 'xtimer_usleep_until'
> [-Werror=implicit-function-declaration]
>       xtimer_usleep_until(&last_wakeup, INTERVAL);"
> 
> - I use the same code in another project and works

xtimer_sleep_until() got refactored to xtimer_periodic_wakeup() in
4449ba493350a3683d48a91934aa767409c42ec7

$ git log | grep -B2 xtimer_usleep_until
Merge pull request #5612 from gebart/pr/xtimer-periodic-wakeup
    xtimer: Refactor xtimer_usleep_until and rename to xtimer_periodic_wakeup

(See also http://doc.riot-os.org/group__sys__xtimer.html)

Cheers,
Oleg
-- 
panic("Unable to find empty mailbox for aha1542.\n");
        linux-2.2.16/drivers/scsi/aha1542.c

Attachment: signature.asc
Description: PGP signature

_______________________________________________
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel

Reply via email to