Changeset 4863bb52 in mainline
- Timestamp:
- 2012-03-30T08:56:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a31ca11f
- Parents:
- c9f703b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/time/rtc.c
rc9f703b r4863bb52 36 36 */ 37 37 38 #include <errno.h> 38 39 #include <ddi.h> 39 40 #include <stdio.h> 40 41 #include <ddf/driver.h> 41 42 #include <ddf/log.h> 43 #include <ops/clock.h> 42 44 43 45 #define NAME "RTC" 46 47 static int 48 rtc_time_get(ddf_fun_t *fun, time_t *t); 49 50 static int 51 rtc_time_set(ddf_fun_t *fun, time_t t); 52 44 53 45 54 static ddf_dev_ops_t rtc_dev_ops; … … 48 57 .name = NAME, 49 58 .driver_ops = NULL, 59 }; 60 61 static clock_dev_ops_t rtc_clock_dev_ops = { 62 .time_get = rtc_time_get, 63 .time_set = rtc_time_set, 50 64 }; 51 65 … … 57 71 } rtc_t; 58 72 73 74 /** Initialize the RTC driver */ 59 75 static void 60 76 rtc_init(void) … … 64 80 rtc_dev_ops.open = NULL; 65 81 rtc_dev_ops.close = NULL; 82 83 rtc_dev_ops.interfaces[CLOCK_DEV_IFACE] = &rtc_clock_dev_ops; 84 rtc_dev_ops.default_handler = NULL; 85 } 86 87 static int 88 rtc_time_get(ddf_fun_t *fun, time_t *t) 89 { 90 return EOK; 91 } 92 93 static int 94 rtc_time_set(ddf_fun_t *fun, time_t t) 95 { 96 return EOK; 66 97 } 67 98
Note:
See TracChangeset
for help on using the changeset viewer.