uart.h 620 B

12345678910111213141516171819
  1. /*
  2. This program is free software; you can redistribute it and/or
  3. modify it under the terms of the GNU General Public License
  4. as published by the Free Software Foundation; either version 2
  5. of the License, or (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. Author: hakanai
  11. Email: hakanai at dnmx.0rg
  12. */
  13. void uart_init(int baud);
  14. void uart_putchar(char c);
  15. int uart_getchar();