Changeset bf70702 in rtems for cpukit/dev/serial/sc16is752.c
- Timestamp:
- 02/09/18 07:59:27 (5 years ago)
- Branches:
- 5, master
- Children:
- b2e26b7
- Parents:
- 6878519
- git-author:
- Christian Mauderer <christian.mauderer@…> (02/09/18 07:59:27)
- git-committer:
- Christian Mauderer <christian.mauderer@…> (02/12/18 13:36:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/dev/serial/sc16is752.c
r6878519 rbf70702 283 283 { 284 284 sc16is752_context *ctx = (sc16is752_context *)base; 285 uint8_t regval; 285 286 286 287 switch (request) { … … 290 291 case SC16IS752_GET_SLEEP_MODE: 291 292 *(int *)buffer = is_sleep_mode_enabled(ctx); 293 break; 294 case SC16IS752_SET_IOCONTROL: 295 regval = (*(uint8_t *)buffer) & ~SC16IS752_IOCONTROL_SRESET; 296 write_reg(ctx, SC16IS752_IOCONTROL, ®val, 1); 297 break; 298 case SC16IS752_GET_IOCONTROL: 299 read_reg(ctx, SC16IS752_IOCONTROL, (uint8_t *)buffer, 1); 300 break; 301 case SC16IS752_SET_IODIR: 302 write_reg(ctx, SC16IS752_IODIR, (uint8_t *)buffer, 1); 303 break; 304 case SC16IS752_GET_IODIR: 305 read_reg(ctx, SC16IS752_IODIR, (uint8_t *)buffer, 1); 306 break; 307 case SC16IS752_SET_IOSTATE: 308 write_reg(ctx, SC16IS752_IOSTATE, (uint8_t *)buffer, 1); 309 break; 310 case SC16IS752_GET_IOSTATE: 311 read_reg(ctx, SC16IS752_IOSTATE, (uint8_t *)buffer, 1); 292 312 break; 293 313 default:
Note: See TracChangeset
for help on using the changeset viewer.