Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct rtc_time {
- union time {
- struct full {
- uint32_t full_time[8];
- } full;
- struct fields {
- uint32_t second;
- uint32_t minute;
- uint32_t hour;
- uint32_t day_week;
- uint32_t day_month;
- uint32_t day_year;
- uint32_t month;
- uint32_t year;
- } fields;
- } time;
- };
- int main(void)
- {
- struct rtc_time tmm_time = {.time.full = {0, 33, 0, 7, 26, 0, 4, 2015}};
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement