Changeset a31ca11f in mainline
- Timestamp:
- 2012-03-30T12:53:31Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b329749
- Parents:
- 4863bb52
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/time/rtc.c
r4863bb52 ra31ca11f 51 51 rtc_time_set(ddf_fun_t *fun, time_t t); 52 52 53 static int 54 rtc_dev_add(ddf_dev_t *dev); 55 53 56 54 57 static ddf_dev_ops_t rtc_dev_ops; 55 58 59 /** The RTC device driver's standard operations */ 60 static driver_ops_t rtc_ops = { 61 .dev_add = rtc_dev_add, 62 .dev_remove = NULL, 63 }; 64 65 /** The RTC device driver structure */ 56 66 static driver_t rtc_driver = { 57 67 .name = NAME, 58 .driver_ops = NULL,68 .driver_ops = &rtc_ops, 59 69 }; 60 70 71 /** Clock interface */ 61 72 static clock_dev_ops_t rtc_clock_dev_ops = { 62 73 .time_get = rtc_time_get, … … 97 108 } 98 109 110 /** The dev_add callback of the rtc driver 111 * 112 * @param dev The RTC device 113 * 114 * @return EOK on success or a negative error code 115 */ 116 static int 117 rtc_dev_add(ddf_dev_t *dev) 118 { 119 return EOK; 120 } 121 99 122 int 100 123 main(int argc, char **argv)
Note:
See TracChangeset
for help on using the changeset viewer.