You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

serial.h 844B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef CONFIG_SERIAL_H
  2. #define CONFIG_SERIAL_H
  3. /** @file
  4. *
  5. * Serial port configuration
  6. *
  7. * These options affect the operation of the serial console. They
  8. * take effect only if the serial console is included using the
  9. * CONSOLE_SERIAL option.
  10. *
  11. */
  12. FILE_LICENCE ( GPL2_OR_LATER );
  13. #define COM1 0x3f8
  14. #define COM2 0x2f8
  15. #define COM3 0x3e8
  16. #define COM4 0x2e8
  17. #define COMCONSOLE COM1 /* I/O port address */
  18. /* Keep settings from a previous user of the serial port (e.g. lilo or
  19. * LinuxBIOS), ignoring COMSPEED, COMDATA, COMPARITY and COMSTOP.
  20. */
  21. #undef COMPRESERVE
  22. #ifndef COMPRESERVE
  23. #define COMSPEED 115200 /* Baud rate */
  24. #define COMDATA 8 /* Data bits */
  25. #define COMPARITY 0 /* Parity: 0=None, 1=Odd, 2=Even */
  26. #define COMSTOP 1 /* Stop bits */
  27. #endif
  28. #include <config/local/serial.h>
  29. #endif /* CONFIG_SERIAL_H */