00001 #if !defined(__SERIAL_DRIVER_HPP__) 00002 #define __SERIAL_DRIVER_HPP__ 00003 00004 // 00005 // local includes 00006 // 00007 #include "core/drivers/drivers.hpp" 00008 00012 struct serial_driver 00013 { 00017 virtual inline ~serial_driver(void) 00018 {} 00019 00023 virtual const char *name(void) const = 0; 00024 00028 virtual int reset(void) = 0; 00029 00033 virtual int write(uint8_t c) = 0; 00034 }; 00035 00036 #endif 00037 00038 // ***** end of source ***** // 00039