Mirror of CollapseOS
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

sio.md 1.0KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Using Zilog's SIO as a console
  2. The RC2014 has an optional module called the Dual Serial Module SIO/2 which is
  3. built around Zilog's SIO chip. This module is nice because when paired with the
  4. Dual Clock Module and when using port B, it's possible to run a UART with a baud
  5. rate lower than 115200.
  6. Collapse OS has a driver for it (although for now, only port A is supported by
  7. it). Let's use it.
  8. ## Gathering parts
  9. * A "classic" RC2014
  10. * A Dual Serial Module SIO/2
  11. ## Build the binary
  12. You'll have to edit the base recipe's xcomp unit like we do in the sdcard
  13. recipe.
  14. * Locate RC2014 recipe in blkfs
  15. * Locate SIO driver
  16. * The driver main page gives you references for declarations and for code.
  17. * In the base xcomp unit, replace ACIA declataions with SIO's
  18. * Replace ACIA code with SIO's
  19. * At the bottom, replace "ACIA$" with "SIO$".
  20. You can build with `make`.
  21. ## Setup
  22. After you've placed the binary on your RC2014's EEPROM, simply replace your
  23. regular Serial Module with the Dual Serial Module and plug yourself into port A.
  24. You should have a functional console.