ppos

Usermode educational operating system.
Log | Files | Refs

serial.h (579B)


      1 // PingPongOS - PingPong Operating System
      2 // © Prof. Carlos A. Maziero, DINF UFPR
      3 // Versão 2.1 -- 06/2026
      4 
      5 // ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO;
      6 // ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO.
      7 
      8 // Emulação de uma interface serial com E/S de caracteres.
      9 
     10 #ifndef __HW_SERIAL__
     11 #define __HW_SERIAL__
     12 
     13 // Envia um caractere à interface serial (bloqueante).
     14 // Return: NOERROR ou ERROR.
     15 int hw_putchar(char c);
     16 
     17 // Recebe um caractere da interface serial (não bloqueante).
     18 // Return: caractere ASCII ou 0 se não há nada a ser lido.
     19 char hw_getchar();
     20 
     21 #endif