• initialization of packed unsigned int
    I am trying to implement Mass storage device class using nxpusblib and got stuck in initialization of a packed structure. The structure is typedef ATTR_IAR_PACKED struct { unsigned DeviceType : 5;...
  • Date and Time
    Hi I need to compare two different date&time. Anyone ho have any app note on this?
  • day and date
    can someone help me write a C++ program that displays the day of the week of a particular date that is entered.E.g.the date entered is 23/03/2003,the program displays both the date and the corresponding...
  • date/time as string
    I have the following code that sets the date & time: date_time_get_current_time(¤t_time); if(current_time.hours > 4 && current_time.hours <10) { When the device boots, time will be set 0 (2017...
  • Display Time and Date
    Here is the code I found on Keil APP note and when I used it, it did not even compile !! Yes. There are numerous ways to associate the time and date of a routine with that routine. Most of these methods...