cancel
Showing results for 
Search instead for 
Did you mean: 

how to add A function to background

Linda
Associate II
Posted on July 02, 2014 at 21:36

Hi,

I want to add a function to background, it should be work independently, I mean it won't affect clock and date.

Thanks

3 REPLIES 3
Linda
Associate II
Posted on July 02, 2014 at 23:46

I try to add 2 lines, but it does not work. why?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     xTaskCreate( *Monitorr, ''Monitorr()'', 0x0000400, NULL, 2, NULL );

    vTaskStartScheduler ();

  /* Create GUI task */

  osThreadDef(GUI_Thread, GUIThread, osPriorityHigh, 0, 15 * configMINIMAL_STACK_SIZE);

  osThreadCreate (osThread(GUI_Thread), NULL); 

~~~~~~~~~~~~

Please help

Thanks

Linda
Associate II
Posted on July 03, 2014 at 01:53

I make some correction, but it still doesn't work:

~~~~~~~~~~~~~~~

         // Create at least one task before starting the kernel.

         //xTaskCreate( vTaskCode, ''NAME'', STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );

     xTaskCreate(vTaskCode, ''Monitorr()'', 0x0000400, NULL, 2, NULL );

    vTaskStartScheduler();

~~~~~~~~~~~~~~~~~

Please help.

Thanks

Posted on July 03, 2014 at 03:07

Please help. Thanks

Sorry really don't have any experience with

http://www.hitex.co.uk/fileadmin/uk-files/downloads/ARM%20Day/Hitex%20Conference%20-%20CMSIS-RTOS%20Feabhas.pdf

. You'll need to read the manual or get some training.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..