hi i want to write data read from internal temparature sensnor and RTC to flash memory periodically. for that what i did is : i added osal_read() and write functions within EDPDevice_performPeriodicTask();. is that the right way to do this???? or any other way?
if (events & EDP_PERIODIC_EVT)
{
events &= ~EDP_PERIODIC_EVT;
Util_startClock(&periodicClock);
// Perform periodic application task
EDPDevice_performPeriodicTask();
}