Changeset 6843a9c in mainline for uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
- Timestamp:
- 2012-06-29T13:02:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 722912e
- Parents:
- ba72f2b (diff), 0bbd13e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
rba72f2b r6843a9c 52 52 #include "s3c24xx_ts.h" 53 53 54 #define NAME "s3c24 ser"54 #define NAME "s3c24xx_ts" 55 55 #define NAMESPACE "hid" 56 56 … … 62 62 63 63 static irq_code_t ts_irq_code = { 64 0, 65 NULL, 64 66 sizeof(ts_irq_cmds) / sizeof(irq_cmd_t), 65 67 ts_irq_cmds … … 82 84 int main(int argc, char *argv[]) 83 85 { 84 int rc; 85 86 printf(NAME ": S3C24xx touchscreen driver\n"); 87 88 rc = loc_server_register(NAME, s3c24xx_ts_connection); 89 if (rc < 0) { 90 printf(NAME ": Unable to register driver.\n"); 91 return -1; 86 printf("%s: S3C24xx touchscreen driver\n", NAME); 87 88 async_set_client_connection(s3c24xx_ts_connection); 89 int rc = loc_server_register(NAME); 90 if (rc != EOK) { 91 printf("%s: Unable to register driver.\n", NAME); 92 return rc; 92 93 } 93 94 … … 139 140 140 141 async_set_interrupt_received(s3c24xx_ts_irq_handler); 141 register_irq(inr, device_assign_devno(), 0, &ts_irq_code);142 irq_register(inr, device_assign_devno(), 0, &ts_irq_code); 142 143 143 144 s3c24xx_ts_wait_for_int_mode(ts, updn_down);
Note:
See TracChangeset
for help on using the changeset viewer.