Changeset 1021 for trunk/board_enable.c
- Timestamp:
- 05/31/10 00:24:40 (2 years ago)
- File:
-
- 1 edited
-
trunk/board_enable.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/board_enable.c
r1015 r1021 26 26 27 27 #include <string.h> 28 #include <fcntl.h>29 28 #include "flash.h" 30 29 … … 108 107 id = sio_read(port, 0x20); 109 108 if (id != 0x44) { 110 fprintf(stderr,"\nERROR: %s: FDC37B787: Wrong ID 0x%02X.\n",111 name, id);109 msg_perr("\nERROR: %s: FDC37B787: Wrong ID 0x%02X.\n", 110 name, id); 112 111 OUTB(0xAA, port); /* leave conf mode */ 113 112 return -1; … … 119 118 if ((val & 0x1B) != 0x10) /* output, no invert, GPIO */ 120 119 { 121 fprintf(stderr,"\nERROR: %s: GPIO50 mode 0x%02X unexpected.\n",122 name, val);120 msg_perr("\nERROR: %s: GPIO50 mode 0x%02X unexpected.\n", 121 name, val); 123 122 OUTB(0xAA, port); 124 123 return -1;
Note: See TracChangeset
for help on using the changeset viewer.
