Hi,
I'm trying to get the Timestamp using OSAL_Clock lib.
I tried declaring firstly two variables in order to handle what I'm going to get from the calls to the functions:
UTCTime timestamp;
UTCTimeStruct timestampstruct;
After that, in a periodic event function I want to get the timestamp every 5 seconds like this:
timestamp=osal_getClock(); // get the ms from the initial date set
osal_ConvertUTCTime( ×tampstruct, timestamp ); //to have the RTC as struct, easier to handle
ptext[15]=timestampstruct.seconds; //being text an uint8 in order to store the seconds.
And seems not to work well. May be it could be because in the doc says that I must enable the OSAL_CLOCK compiler flag to use this feature and I haven't done this. How can I enable this flag if it's the reason why it isn't working for me?
Regards
Iván Gómez Bustinduy