| 95 |
95 |
/****************************************************************************************
|
| 96 |
96 |
* Local data declarations
|
| 97 |
97 |
****************************************************************************************/
|
| 98 |
|
/** \brief Name of the serial device, such as COM4 or /dev/ttyUSB0. */
|
|
98 |
/** \brief Name of the serial device, such as COM4, /dev/ttyUSB0 or /dev/ttyAMiRo0. */
|
| 99 |
99 |
static sb_char serialDeviceName[32];
|
| 100 |
100 |
|
| 101 |
101 |
/** \brief Id of the bluetooth device, such as 01:23:45:67:89:AB. */
|
| ... | ... | |
| 244 |
244 |
printf("Example 4: SerialBoot -dCOM4 -b57600 firmware.srec\n\n");
|
| 245 |
245 |
printf("WARNING: SerialBoot is not really functional with windows! Please use\n");
|
| 246 |
246 |
printf(" the Linux version.\n\n");
|
| 247 |
|
printf(" -> In all four cases it connects to COM4 and configures a communication\n");
|
|
247 |
printf(" -> In all four cases it connects to COM4.\n");
|
| 248 |
248 |
#else
|
| 249 |
|
printf("Example 2: SerialBoot -d/dev/ttyUSB0 -b57600 -T3 firmware.srec\n");
|
| 250 |
|
printf("Example 3: SerialBoot -d/dev/ttyUSB0 -b57600 -T0 firm1.srec -T3 firm2.srec\n");
|
| 251 |
|
printf("Example 4: SerialBoot -d/dev/ttyUSB0 -b57600 firmware.srec\n\n");
|
| 252 |
|
printf(" -> In all four cases it connects to ttyUSB0 and configures a communication\n");
|
|
249 |
printf("Example 2: SerialBoot -d/dev/ttyAMiRo0 -b57600 -T3 firmware.srec\n");
|
|
250 |
printf("Example 3: SerialBoot -d/dev/ttyAMiRo0 -b57600 -T0 firm1.srec -T3 firm2.srec\n");
|
|
251 |
printf("Example 4: SerialBoot -d/dev/ttyAMiRo0 -b57600 firmware.srec\n\n");
|
|
252 |
printf(" -> In all four cases it connects to '/dev/ttyAMiRo0' alias '/dev/ttyUSB0'.\n");
|
| 253 |
253 |
#endif
|
| 254 |
|
printf(" speed of 57600 bits/second. The bootloaders will be set into flashing\n");
|
| 255 |
|
printf(" mode and will be reset after flashing the last binary file.\n");
|
|
254 |
printf(" -> In all four cases a communication speed of 57600 bits/second is configured.\n");
|
|
255 |
printf(" The bootloaders will be set into flashing mode and will be reset after\n");
|
|
256 |
printf(" flashing the last binary file.\n");
|
| 256 |
257 |
printf(" -> In the first example this help will be opened\n");
|
| 257 |
258 |
printf(" -> In the second example the binary file 'firmware.srec' will be flashed on\n");
|
| 258 |
259 |
printf(" device 0x03.\n");
|