Author Topic: Creating a new Task  (Read 38703 times)

Offline Marco

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Creating a new Task
« Reply #15 on: February 08, 2009, 03:13:31 PM »
Hi Mark

I have followed the "uTasker - First Steps for new users" manual, when trying to create a new application.  I have even reproduced it exactly as is on the manual but no luck. 

I get a whole veriaty of errors on compile if "*ptrTaskTable" is present in the new c-source file.  If I remove it, the program compiles, and gives me "Warning C1013: Old style Declaration" and the task does not run.

Does the c-source file need a specific name?  or do you reacon I am doing something else wrong?

cheers

Marco

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3243
    • View Profile
    • uTasker
Re: Creating a new Task
« Reply #16 on: February 08, 2009, 04:40:04 PM »
Hi Marco

This may be because the new file is missing the header include:

#include "config.h"

It does look as though this 'detail' is not mentioned in the document.
Tell me if it solves your problem and then I will update the document.

The c file doesn't otherwise need any specific name.

Regards

Mark

Offline Marco

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Creating a new Task
« Reply #17 on: February 10, 2009, 06:52:31 AM »
Hi Mark

Thanks for that, I think that solved the problem.  Can I ask you, if i wanted send a UDP message from this application saying hello world.  Is the following correct?

fnSendUDP(0, 192, 168, 0, 101, 1234, "Hello World ", 512 );

and would I have to include another file?

cheers

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3243
    • View Profile
    • uTasker
Re: Creating a new Task
« Reply #18 on: February 10, 2009, 08:31:19 AM »
Hi Marco

You don't need to include any additional files (just ensure that UDP is active in config.h with #define USE_UDP).

The use of UDP is described in the following: http://www.utasker.com/forum/index.php?topic=41.msg171#msg171

You example is not yet correct but you should find all that you need in the other thread.

Regards

Mark