Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.

Dependents:   denki-yohou_b TestY201 Network-RTOS NTPClient_HelloWorld ... more

Issue: The Thread Example Can not Running!!!

Your Code:

  1. include "mbed.h"
  2. include "rtos.h"

Thread thread; DigitalOut led1(LED1); volatile bool running = true;

Blink function toggles the led in a long running loop void blink(DigitalOut *led) { while (running) {

  • led = !*led; Thread::wait(1000); } }

Spawns a thread to run blink for 5 seconds int main() { thread.start(led1, blink); Thread::wait(5000); running = false; thread.join(); }

////////////// thread.start(led1, blink);

Error: No instance of overloaded function "rtos::Thread::start" matches the argument list in "main.cpp", Line: 18, Col: 17