Subversion Repositories pentevo

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

  1. #ifndef RS232_H
  2. #define RS232_H
  3.  
  4. void rs232_init(void);
  5. void rs232_transmit(UBYTE data);
  6.  
  7. //#define LOGENABLE
  8. #ifdef LOGENABLE
  9. void to_log(char* ptr);
  10. #endif
  11.  
  12. /**
  13.  * ZX write to Kondratiev's rs232 registers.
  14.  * @param index [in] - index of Kondratiev's rs232 register
  15.  * @param byte [in] - data
  16.  */
  17. void rs232_zx_write(UBYTE index, UBYTE data);
  18.  
  19. /**
  20.  * ZX read from Kondratiev's rs232 registers.
  21.  * @return registers data
  22.  * @param index [in] - index of Kondratiev's rs232 register
  23.  */
  24. UBYTE rs232_zx_read(UBYTE index);
  25.  
  26. /** RS232 task. */
  27. void rs232_task(void);
  28.  
  29. #endif //RS232_H
  30.