timer example won't compile

i got the following code from here: https://docs.nordicsemi.com/bundle/ncs-3.1.1/page/zephyr/kernel/services/timing/timers.html, and am using version 3.1.1 of the SDK

void my_work_handler(struct k_work *work)
{
    /* do the processing that needs to be done periodically */
}

K_WORK_DEFINE(my_work, my_work_handler);
void my_timer_handler(struct k_timer *dummy)
{
    k_work_submit(&my_work);
}

K_TIMER_DEFINE(my_timer, my_timer_handler, NULL);
k_timer_start(&my_timer, K_SECONDS(1), K_SECONDS(1));
but with the last function call(k_timer_start()), I get:
"declaration is incompatible with "void k_timer_start(struct k_timer *timer, k_timeout_t duration, k_timeout_t period)" (declared at line 460 of "C:\Github\bci-vm-embedded\build\bci-vm-embedded\zephyr\include\generated\zephyr\syscalls\kernel.h")"
And on the two parameters (K_SECONDS(1)) I get "expected a type specifier "
What seems to be the problem?
Related