* \author Bernardo Innocenti <bernie@develer.com>
*/
-/*#*
- *#* $Log$
- *#* Revision 1.1 2007/06/07 09:09:42 batt
- *#* Move crc routines to algos/.
- *#*
- *#* Revision 1.5 2006/07/19 12:56:27 bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.4 2005/11/04 16:20:02 bernie
- *#* Fix reference to README.devlib in header.
- *#*
- *#* Revision 1.3 2004/08/25 14:12:09 rasky
- *#* Aggiornato il comment block dei log RCS
- *#*
- *#* Revision 1.2 2004/06/03 11:27:09 bernie
- *#* Add dual-license information.
- *#*
- *#* Revision 1.1 2004/06/03 08:58:16 bernie
- *#* Import into DevLib
- *#*
- *#*/
-
#include "crc.h"
/**
* \author Bernardo Innocenti <bernie@develer.com>
*/
-/*#*
- *#* $Log$
- *#* Revision 1.1 2007/06/07 09:09:41 batt
- *#* Move crc routines to algos/.
- *#*
- *#* Revision 1.7 2006/07/19 12:56:27 bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.6 2005/11/04 16:20:02 bernie
- *#* Fix reference to README.devlib in header.
- *#*
- *#* Revision 1.5 2005/04/11 19:10:28 bernie
- *#* Include top-level headers from cfg/ subdir.
- *#*
- *#* Revision 1.4 2004/08/25 14:12:09 rasky
- *#* Aggiornato il comment block dei log RCS
- *#*
- *#* Revision 1.3 2004/08/15 05:47:26 bernie
- *#* updcrc16(): inline version of UPDCRC16(); Cleanup documentation.
- *#*
- *#* Revision 1.2 2004/06/03 11:27:09 bernie
- *#* Add dual-license information.
- *#*
- *#* Revision 1.1 2004/06/03 08:58:16 bernie
- *#* Import into DevLib
- *#*
- *#*/
#ifndef CRC_H
#define CRC_H
* \brief Set system configuration
*/
-/*#*
- *#* $Log$
- *#* Revision 1.4 2006/07/19 12:56:25 bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.3 2006/02/24 00:27:56 bernie
- *#* Remove #error to allow compiling local demo.
- *#*
- *#* Revision 1.2 2005/11/04 16:20:01 bernie
- *#* Fix reference to README.devlib in header.
- *#*
- *#* Revision 1.1 2005/04/11 19:04:13 bernie
- *#* Move top-level headers to cfg/ subdir.
- *#*
- *#* Revision 1.3 2004/08/25 14:12:08 rasky
- *#* Aggiornato il comment block dei log RCS
- *#*
- *#* Revision 1.2 2004/06/03 11:27:09 bernie
- *#* Add dual-license information.
- *#*
- *#* Revision 1.1 2004/05/23 17:48:35 bernie
- *#* Add top-level files.
- *#*
- *#*/
#ifndef ARCH_CONFIG_H
#define ARCH_CONFIG_H
* \author Bernardo Innocenti <bernie@develer.com>
*/
-/*#*
- *#* $Log$
- *#* Revision 1.24 2007/01/09 08:58:14 bernie
- *#* Avoid dependency on cfg/compiler.h
- *#*
- *#* Revision 1.23 2006/09/13 18:28:38 bernie
- *#* Reformat.
- *#*
- *#* Revision 1.22 2006/07/19 12:56:25 bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.21 2006/07/19 12:53:43 bernie
- *#* Prune log.
- *#*
- *#* Revision 1.20 2006/06/10 05:36:15 bernie
- *#* Convert to new Doxygen comments.
- *#*
- *#* Revision 1.19 2006/04/11 00:07:33 bernie
- *#* Implemenent MF_SAVESEL flag.
- *#*
- *#* Revision 1.18 2006/03/22 13:34:34 bernie
- *#* MSVC support.
- *#*
- *#* Revision 1.17 2006/03/22 09:48:35 bernie
- *#* Formatting.
- *#*
- *#* Revision 1.16 2006/03/20 17:48:09 bernie
- *#* Fix for avr-libc; INTERRUPT(): Remove macro.
- *#*
- *#* Revision 1.15 2006/03/13 02:06:25 bernie
- *#* containerof(): New macro.
- *#*
- *#* Revision 1.14 2006/02/23 08:36:33 bernie
- *#* Emulate __func__ on MSVC.
- *#*
- *#* Revision 1.13 2006/02/23 07:37:37 bernie
- *#* Compile fix for MSVC.
- *#*
- *#* Revision 1.12 2006/02/21 16:06:31 bernie
- *#* Fix ssize_t redefinitions on glibc systems.
- *#*
- *#* Revision 1.11 2006/02/20 14:34:58 bernie
- *#* Use portable type checking.
- *#*
- *#* Revision 1.10 2006/02/15 09:12:01 bernie
- *#* Fixes for ARM/IAR support.
- *#*
- *#* Revision 1.9 2006/02/10 12:38:00 bernie
- *#* Add support for ARM on IAR.
- *#*
- *#* Revision 1.8 2006/01/16 03:27:49 bernie
- *#* Rename sig_t to sigbit_t to avoid clash with POSIX.
- *#*
- *#* Revision 1.7 2005/11/27 23:33:05 bernie
- *#* Drop avr-libc hack for missing stdint.h.
- *#*
- *#* Revision 1.6 2005/07/19 07:27:31 bernie
- *#* Don't use CPU_REG_BITS from cpu.h to avoid circular header dependendy.
- *#*
- *#* Revision 1.5 2005/06/27 21:24:37 bernie
- *#* ticks_t: New typedef.
- *#*
- *#* Revision 1.4 2005/06/14 06:15:10 bernie
- *#* Add X86_64 support.
- *#*
- *#* Revision 1.3 2005/04/12 01:37:01 bernie
- *#* Metrowerks touchups from HeCo.
- *#*
- *#* Revision 1.2 2005/04/11 19:10:27 bernie
- *#* Include top-level headers from cfg/ subdir.
- *#*
- *#* Revision 1.1 2005/04/11 19:04:13 bernie
- *#* Move top-level headers to cfg/ subdir.
- *#*/
#ifndef DEVLIB_COMPILER_H
#define DEVLIB_COMPILER_H
stat = dataflash_stat();
/*
- * Data flash has been terminate a sent command, and so
- * disable CS.
+ * Data flash has completed a bus cycle, so disable CS.
*/
CS_DISABLE();
* \author Giovanni Bajo <rasky@develer.com>
*/
-/*#*
- *#* $Log$
- *#* Revision 1.10 2006/07/19 12:56:26 bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.9 2006/02/17 22:23:06 bernie
- *#* Update POSIX serial emulator.
- *#*
- *#* Revision 1.8 2005/11/04 16:20:02 bernie
- *#* Fix reference to README.devlib in header.
- *#*
- *#* Revision 1.7 2005/01/14 00:47:56 aleph
- *#* Rename callbacks; SerialHardwareVT.txSending: New callback.
- *#*
- *#* Revision 1.6 2004/12/08 08:56:58 bernie
- *#* Reformat.
- *#*
- *#* Revision 1.5 2004/09/06 21:40:50 bernie
- *#* Move buffer handling in chip-specific driver.
- *#*
- *#* Revision 1.4 2004/08/25 14:12:08 rasky
- *#* Aggiornato il comment block dei log RCS
- *#*
- *#* Revision 1.3 2004/06/03 11:27:09 bernie
- *#* Add dual-license information.
- *#*
- *#* Revision 1.2 2004/05/23 18:21:53 bernie
- *#* Trim CVS logs and cleanup header info.
- *#*
- *#*/
#ifndef DRV_SER_P_H
#define DRV_SER_P_H
* \author Bernardo Innocenti <bernie@develer.com>
*/
-/*#*
- *#* $Log$
- *#* Revision 1.8 2006/07/19 12:56:27 bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.7 2006/03/20 17:52:22 bernie
- *#* Add missing forward declaration.
- *#*
- *#* Revision 1.6 2006/02/24 01:17:44 bernie
- *#* Update for new emulator.
- *#*
- *#* Revision 1.5 2006/02/24 00:26:21 bernie
- *#* Fix header name.
- *#*
- *#* Revision 1.4 2006/02/10 12:24:42 bernie
- *#* Fix standalone build.
- *#*
- *#* Revision 1.3 2006/01/16 03:27:49 bernie
- *#* Rename sig_t to sigbit_t to avoid clash with POSIX.
- *#*
- *#* Revision 1.2 2005/11/27 03:02:55 bernie
- *#* Convert to appconfig.h.
- *#*
- *#* Revision 1.1 2005/11/27 01:39:48 bernie
- *#* Move event.[ch] from kern/ to mware/.
- *#*
- *#* Revision 1.11 2005/04/11 19:10:28 bernie
- *#* Include top-level headers from cfg/ subdir.
- *#*
- *#* Revision 1.10 2005/01/24 04:22:02 bernie
- *#* Update copyright information.
- *#*
- *#* Revision 1.9 2005/01/24 04:19:55 bernie
- *#* Remove obsolete names.
- *#*
- *#* Revision 1.8 2005/01/24 04:19:05 bernie
- *#* Function pointer based event dispatching.
- *#*
- *#* Revision 1.7 2004/08/25 14:12:09 rasky
- *#* Aggiornato il comment block dei log RCS
- *#*
- *#* Revision 1.6 2004/08/14 19:37:57 rasky
- *#* Merge da SC: macros.h, pool.h, BIT_CHANGE, nome dei processi, etc.
- *#*
- *#* Revision 1.5 2004/07/30 14:30:27 rasky
- *#* Resa la sig_signal interrupt safe (con il nuovo scheduler IRQ-safe)
- *#* Rimossa event_doIntr (ora inutile) e semplificata la logica delle macro con funzioni inline
- *#*
- *#* Revision 1.4 2004/06/07 15:58:00 aleph
- *#* Add function prototypes
- *#*
- *#* Revision 1.3 2004/06/06 18:25:44 bernie
- *#* Rename event macros to look like regular functions.
- *#*
- *#* Revision 1.2 2004/06/03 11:27:09 bernie
- *#* Add dual-license information.
- *#*
- *#* Revision 1.1 2004/05/23 17:27:00 bernie
- *#* Import kern/ subdirectory.
- *#*
- *#*/
#ifndef KERN_EVENT_H
#define KERN_EVENT_H
* CmdTemplate table.
*/
-/*#*
- *#* $Log$
- *#* Revision 1.2 2006/07/19 12:56:28 bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.1 2006/06/01 12:27:39 marco
- *#* Added utilities for protocols
- *#*
- *#*/
#include "parser.h"
#include <drv/ser.h>
/**
* \file
+ * <!--
+ * This file is part of BeRTOS.
+ *
+ * Bertos is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * As a special exception, you may use this file as part of a free software
+ * library without restriction. Specifically, if other files instantiate
+ * templates or use macros or inline functions from this file, or you compile
+ * this file and link it with other files to produce an executable, this
+ * file does not by itself cause the resulting executable to be covered by
+ * the GNU General Public License. This exception does not however
+ * invalidate any other reasons why the executable file might be covered by
+ * the GNU General Public License.
+ *
* Copyright 2003, 2006 Develer S.r.l. (http://www.develer.com/)
* All Rights Reserved.
+ * -->
*
* \version $Id$
*
* \brief serial protocol parser and commands.
*/
-/*#*
- *#* $Log$
- *#* Revision 1.3 2006/07/19 12:56:28 bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.2 2006/06/12 21:37:02 marco
- *#* implemented some commands (ver and sleep)
- *#*
- *#* Revision 1.1 2006/06/01 12:27:39 marco
- *#* Added utilities for protocols
- *#*
- *#*/
#ifndef PARSER_H
#define PARSER_H
{
RC_ERROR = -1, ///< Reply with error.
RC_OK = 0, ///< No reply (ignore reply arguments).
- RC_REPLY = 1, ///< Reply command arguments.
- RC_SKIP = 2 ///< Skip following commands
+ RC_REPLY = 1, ///< Reply command arguments.
+ RC_SKIP = 2 ///< Skip following commands
} ResultCode;
/** union that contains parameters passed to and from commands */
* \author Giovanni Bajo <rasky@develer.com>
*/
-/*#*
- *#* $Log$
- *#* Revision 1.2 2006/07/19 12:56:28 bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.1 2006/06/01 12:27:39 marco
- *#* Added utilities for protocols
- *#*
- *#*/
#include "readline.h"
* \author Giovanni Bajo <rasky@develer.com>
*/
-/*#*
- *#* $Log$
- *#* Revision 1.2 2006/07/19 12:56:28 bernie
- *#* Convert to new Doxygen style.
- *#*
- *#* Revision 1.1 2006/06/01 12:27:39 marco
- *#* Added utilities for protocols
- *#*
- *#*/
#ifndef MWARE_READLINE_H
#define MWARE_READLINE_H