FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  


Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support

New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: How to stop current thread and execute the other, when a condition is satisfied?  (Read 668 times)


  • Newbie
  • *
  • Posts: 8
    • View Profile

I have three threads namely setup,UART,BOMS for USB pendrive
One thread called firmware for  USB Keyboard
One thread called Device_Check to detect port status and corresponding device.

   tcbDevice_Check = vos_create_thread_ex(26, 1024, Device_Check, "Check", 0);
        tcbFIRMWARE     = vos_create_thread_ex(25, 4096, firmware, "Application", 0);
        tcbSETUP           = vos_create_thread_ex(24, 1024, setup, "Setup", 0);
   tcbUART             = vos_create_thread_ex(23, 1024, UART, "Read", 0);
   tcbBOMS            = vos_create_thread_ex(23, 1024, BOMS, "Write", 0);

If suppose Keyboard is detected on my port, how to use/call the firmware thread and similarly how to use/call the setup,uart,boms thread?

Please provide me an idea of how to move from one thread to other

Rajavelu Balasubramanian