nuttx-apps
nuttx-apps copied to clipboard
Illegal use of wdog timers in FTPC
netutils/ftpc/ftpc_connect.c uses internal OS wdog timer functions wd_start(), wd_cancel(), etc. This is aviolation of the portable POSIX OS interface. wd_start(0 is not an application accessible interface. It is only for use inside the OS.
The wdog interface functions cannot be called in PROTECTED or KERNEL build modes nor can they do the interrupt handling logic access user space. Remember that the callback is in the context of the timer interrupt handler.
The use of the internal OS wdog function should be replaced with user POSIX timer interface functions.