Changeset 199e748 in rtems for cpukit/libi2c
- Timestamp:
- Nov 6, 2005, 9:22:09 AM (14 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, master
- Children:
- 616d5d5
- Parents:
- 7880193
- Location:
- cpukit/libi2c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libi2c/libi2c.c
r7880193 r199e748 2 2 3 3 /* libi2c Implementation */ 4 5 #if HAVE_CONFIG_H 6 #include "config.h" 7 #endif 4 8 5 9 #include <string.h> … … 381 385 382 386 rtems_status_code 383 rtems_libi2c_send_start (u nsigned32minor)387 rtems_libi2c_send_start (uint32_t minor) 384 388 { 385 389 int rval; … … 412 416 413 417 rtems_status_code 414 rtems_libi2c_send_stop (u nsigned32minor)418 rtems_libi2c_send_stop (uint32_t minor) 415 419 { 416 420 rtems_status_code rval; … … 429 433 430 434 rtems_status_code 431 rtems_libi2c_send_addr (u nsigned32minor, int rw)435 rtems_libi2c_send_addr (uint32_t minor, int rw) 432 436 { 433 437 rtems_status_code sc; … … 444 448 445 449 int 446 rtems_libi2c_read_bytes (u nsigned32minor, unsigned char *bytes, int nbytes)450 rtems_libi2c_read_bytes (uint32_t minor, unsigned char *bytes, int nbytes) 447 451 { 448 452 int sc; … … 459 463 460 464 int 461 rtems_libi2c_write_bytes (u nsigned32minor, unsigned char *bytes, int nbytes)465 rtems_libi2c_write_bytes (uint32_t minor, unsigned char *bytes, int nbytes) 462 466 { 463 467 int sc; … … 474 478 475 479 static int 476 do_s_rw (u nsigned32minor, unsigned char *bytes, int nbytes, int rw)480 do_s_rw (uint32_t minor, unsigned char *bytes, int nbytes, int rw) 477 481 { 478 482 rtems_status_code sc; … … 502 506 503 507 int 504 rtems_libi2c_start_read_bytes (u nsigned32minor, unsigned char *bytes,508 rtems_libi2c_start_read_bytes (uint32_t minor, unsigned char *bytes, 505 509 int nbytes) 506 510 { … … 509 513 510 514 int 511 rtems_libi2c_start_write_bytes (u nsigned32minor, unsigned char *bytes,515 rtems_libi2c_start_write_bytes (uint32_t minor, unsigned char *bytes, 512 516 int nbytes) 513 517 { … … 550 554 char *str; 551 555 dev_t dev; 552 u nsigned32mode;556 uint32_t mode; 553 557 554 558 /* found a free slot; encode slot + 1 ! */ -
cpukit/libi2c/libi2c.h
r7880193 r199e748 50 50 /* initiate transfer from (rw!=0) or to a device */ 51 51 rtems_status_code (*send_addr) (rtems_libi2c_bus_t * bushdl, 52 u nsigned32addr, int rw);52 uint32_t addr, int rw); 53 53 /* read a number of bytes */ 54 54 int (*read_bytes) (rtems_libi2c_bus_t * bushdl, unsigned char *bytes, … … 220 220 /* Send start, send address and read bytes */ 221 221 int 222 rtems_libi2c_start_read_bytes (u nsigned32minor, unsigned char *bytes,222 rtems_libi2c_start_read_bytes (uint32_t minor, unsigned char *bytes, 223 223 int nbytes); 224 224 225 225 /* Send start, send address and write bytes */ 226 226 int 227 rtems_libi2c_start_write_bytes (u nsigned32minor, unsigned char *bytes,227 rtems_libi2c_start_write_bytes (uint32_t minor, unsigned char *bytes, 228 228 int nbytes); 229 229
Note: See TracChangeset
for help on using the changeset viewer.