Refactor SERIAL macro.
[bertos.git] / bertos / kern / kfile.h
index 1f352699610af7282d2e530e7399fb8b054c5593..bcc88e7218751bd2b4862eb3329b980915e767d4 100644 (file)
  * {
  *             KFile fd;
  *             Serial *ser;
- * } SerialKFile;
+ * } Serial;
  * \endcode
  *
  * You should also supply a macro for casting KFile to SerialKFile:
  *
  * \code
- * INLINE SerialKFile * SERIALKFILE(KFile *fd)
+ * INLINE Serial * SERIAL_CAST(KFile *fd)
  * {
  *             ASSERT(fd->_type == KFT_SERIAL);
- *             return (SerialKFile *)fd;
+ *             return (Serial *)fd;
  * }
  * \endcode
  *