projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f775961
)
Convert to new Doxygen style.
author
bernie
<bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 19 Jul 2006 12:56:28 +0000
(12:56 +0000)
committer
bernie
<bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 19 Jul 2006 12:56:28 +0000
(12:56 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@671
38d2e660
-2303-0410-9eaa-
f027e97ec537
141 files changed:
app/demo/appconfig.h
patch
|
blob
|
history
app/demo/verstag.h
patch
|
blob
|
history
app/triface/appconfig.h
patch
|
blob
|
history
app/triface/verstag.h
patch
|
blob
|
history
appconfig_common.h
patch
|
blob
|
history
cfg/arch_config.h
patch
|
blob
|
history
cfg/compiler.h
patch
|
blob
|
history
cfg/cpu.h
patch
|
blob
|
history
cfg/cpu_detect.h
patch
|
blob
|
history
cfg/debug.h
patch
|
blob
|
history
cfg/macros.h
patch
|
blob
|
history
cfg/module.h
patch
|
blob
|
history
cfg/os.h
patch
|
blob
|
history
config.mk
patch
|
blob
|
history
config_kern.h
patch
|
blob
|
history
drv/adc.c
patch
|
blob
|
history
drv/adc.h
patch
|
blob
|
history
drv/buzzer.c
patch
|
blob
|
history
drv/buzzer.h
patch
|
blob
|
history
drv/buzzerled.c
patch
|
blob
|
history
drv/buzzerled.h
patch
|
blob
|
history
drv/buzzerled_dsp56k.h
patch
|
blob
|
history
drv/eeprom.c
patch
|
blob
|
history
drv/eeprom.h
patch
|
blob
|
history
drv/kbd.c
patch
|
blob
|
history
drv/kbd.h
patch
|
blob
|
history
drv/kdebug.c
patch
|
blob
|
history
drv/lcd_gfx.c
patch
|
blob
|
history
drv/lcd_gfx.h
patch
|
blob
|
history
drv/lcd_gfx_qt.cpp
patch
|
blob
|
history
drv/lcd_hd44.c
patch
|
blob
|
history
drv/lcd_hd44.h
patch
|
blob
|
history
drv/lcd_text.c
patch
|
blob
|
history
drv/lcd_text.h
patch
|
blob
|
history
drv/ntc.c
patch
|
blob
|
history
drv/ntc.h
patch
|
blob
|
history
drv/phase.c
patch
|
blob
|
history
drv/phase.h
patch
|
blob
|
history
drv/pwm.c
patch
|
blob
|
history
drv/pwm.h
patch
|
blob
|
history
drv/ser.c
patch
|
blob
|
history
drv/ser.h
patch
|
blob
|
history
drv/ser_avr.c
patch
|
blob
|
history
drv/ser_dsp56k.c
patch
|
blob
|
history
drv/ser_i196.c
patch
|
blob
|
history
drv/ser_p.h
patch
|
blob
|
history
drv/ser_posix.c
patch
|
blob
|
history
drv/ser_simple.c
patch
|
blob
|
history
drv/ser_simple.h
patch
|
blob
|
history
drv/thermo.c
patch
|
blob
|
history
drv/thermo.h
patch
|
blob
|
history
drv/timer.c
patch
|
blob
|
history
drv/timer.h
patch
|
blob
|
history
drv/timer_avr.c
patch
|
blob
|
history
drv/timer_avr.h
patch
|
blob
|
history
drv/timer_dsp56k.h
patch
|
blob
|
history
drv/timer_i196.h
patch
|
blob
|
history
drv/timer_posix.c
patch
|
blob
|
history
drv/timer_posix.h
patch
|
blob
|
history
drv/timer_qt.c
patch
|
blob
|
history
drv/timer_qt.h
patch
|
blob
|
history
drv/timer_simple.c
patch
|
blob
|
history
drv/timer_simple.h
patch
|
blob
|
history
drv/timer_test.c
patch
|
blob
|
history
drv/twi.c
patch
|
blob
|
history
drv/twi.h
patch
|
blob
|
history
drv/wdt.h
patch
|
blob
|
history
dt/dnotifier.c
patch
|
blob
|
history
dt/dnotifier.h
patch
|
blob
|
history
dt/dtag.h
patch
|
blob
|
history
dt/dwidget.c
patch
|
blob
|
history
dt/dwidget.h
patch
|
blob
|
history
dt/editbool.c
patch
|
blob
|
history
dt/editbool.h
patch
|
blob
|
history
dt/editint.c
patch
|
blob
|
history
dt/editint.h
patch
|
blob
|
history
fonts/fixed6x8.c
patch
|
blob
|
history
gfx/bitmap.c
patch
|
blob
|
history
gfx/charts.c
patch
|
blob
|
history
gfx/charts.h
patch
|
blob
|
history
gfx/font.h
patch
|
blob
|
history
gfx/gfx.h
patch
|
blob
|
history
gfx/gfx_p.h
patch
|
blob
|
history
gfx/line.c
patch
|
blob
|
history
gfx/text.c
patch
|
blob
|
history
gfx/text.h
patch
|
blob
|
history
gfx/text_format.c
patch
|
blob
|
history
gfx/win.c
patch
|
blob
|
history
gfx/win.h
patch
|
blob
|
history
gui/menu.c
patch
|
blob
|
history
gui/menu.h
patch
|
blob
|
history
hw/hw_buzzer.h
patch
|
blob
|
history
hw/hw_kbd.h
patch
|
blob
|
history
hw/kbd_map.h
patch
|
blob
|
history
kern/file.h
patch
|
blob
|
history
kern/monitor.c
patch
|
blob
|
history
kern/monitor.h
patch
|
blob
|
history
kern/msg.h
patch
|
blob
|
history
kern/proc.c
patch
|
blob
|
history
kern/proc.h
patch
|
blob
|
history
kern/proc_p.h
patch
|
blob
|
history
kern/sem.c
patch
|
blob
|
history
kern/sem.h
patch
|
blob
|
history
kern/signal.c
patch
|
blob
|
history
kern/signal.h
patch
|
blob
|
history
kern/switch_dsp56k.c
patch
|
blob
|
history
mware/cmd_hunk.h
patch
|
blob
|
history
mware/crc.c
patch
|
blob
|
history
mware/crc.h
patch
|
blob
|
history
mware/event.c
patch
|
blob
|
history
mware/event.h
patch
|
blob
|
history
mware/fifobuf.h
patch
|
blob
|
history
mware/formatwr.c
patch
|
blob
|
history
mware/formatwr.h
patch
|
blob
|
history
mware/hashtable.c
patch
|
blob
|
history
mware/hashtable.h
patch
|
blob
|
history
mware/heap.c
patch
|
blob
|
history
mware/heap.h
patch
|
blob
|
history
mware/hex.c
patch
|
blob
|
history
mware/hex.h
patch
|
blob
|
history
mware/kfile.h
patch
|
blob
|
history
mware/list.h
patch
|
blob
|
history
mware/msg.c
patch
|
blob
|
history
mware/parser.c
patch
|
blob
|
history
mware/parser.h
patch
|
blob
|
history
mware/pgm.h
patch
|
blob
|
history
mware/pool.h
patch
|
blob
|
history
mware/readline.c
patch
|
blob
|
history
mware/readline.h
patch
|
blob
|
history
mware/rle.c
patch
|
blob
|
history
mware/rle.h
patch
|
blob
|
history
mware/sprintf.c
patch
|
blob
|
history
mware/sprintf_test.c
patch
|
blob
|
history
mware/strtol10.c
patch
|
blob
|
history
mware/strtol10.h
patch
|
blob
|
history
mware/xmodem.c
patch
|
blob
|
history
mware/xmodem.h
patch
|
blob
|
history
os/hptime.c
patch
|
blob
|
history
rules.mk
patch
|
blob
|
history
verstag.c
patch
|
blob
|
history
verstag.h
patch
|
blob
|
history
diff --git
a/app/demo/appconfig.h
b/app/demo/appconfig.h
index 70a02afaaf1ffee12faf27543972e6219c7d65d4..8e2eca46da71ebefa7e04be073dd1911c79dcbe8 100755
(executable)
--- a/
app/demo/appconfig.h
+++ b/
app/demo/appconfig.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-46,6
+46,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.3 2006/07/19 12:56:24 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.2 2006/05/28 12:18:12 bernie
*#* Disable menu timeout.
*#*
*#* Revision 1.2 2006/05/28 12:18:12 bernie
*#* Disable menu timeout.
*#*
@@
-92,10
+95,10
@@
#ifndef CONFIG_COMMON_H
#define CONFIG_COMMON_H
#ifndef CONFIG_COMMON_H
#define CONFIG_COMMON_H
-/*
!
Baud-rate for the kdebug console */
+/*
*
Baud-rate for the kdebug console */
#define CONFIG_KDEBUG_BAUDRATE 19200
#define CONFIG_KDEBUG_BAUDRATE 19200
-/*
!
+/*
*
* printf()-style formatter configuration.
*
* \sa PRINTF_DISABLED
* printf()-style formatter configuration.
*
* \sa PRINTF_DISABLED
@@
-106,54
+109,54
@@
*/
#define CONFIG_PRINTF PRINTF_FULL
*/
#define CONFIG_PRINTF PRINTF_FULL
-/*
!
+/*
*
* Multithreading kernel.
*
* \sa config_kern.h
*/
#define CONFIG_KERNEL 1
* Multithreading kernel.
*
* \sa config_kern.h
*/
#define CONFIG_KERNEL 1
-/*
!
+/*
*
* \name Serial driver parameters
* \{
*/
* \name Serial driver parameters
* \{
*/
- /*
!
[bytes] Size of the outbound FIFO buffer for port 0. */
+ /*
*
[bytes] Size of the outbound FIFO buffer for port 0. */
#define CONFIG_UART0_TXBUFSIZE 32
#define CONFIG_UART0_TXBUFSIZE 32
- /*
!
[bytes] Size of the inbound FIFO buffer for port 0. */
+ /*
*
[bytes] Size of the inbound FIFO buffer for port 0. */
#define CONFIG_UART0_RXBUFSIZE 64
#define CONFIG_UART0_RXBUFSIZE 64
- /*
!
[bytes] Size of the outbound FIFO buffer for port 1. */
+ /*
*
[bytes] Size of the outbound FIFO buffer for port 1. */
#define CONFIG_UART1_TXBUFSIZE 32
#define CONFIG_UART1_TXBUFSIZE 32
- /*
!
[bytes] Size of the inbound FIFO buffer for port 1. */
+ /*
*
[bytes] Size of the inbound FIFO buffer for port 1. */
#define CONFIG_UART1_RXBUFSIZE 64
#define CONFIG_UART1_RXBUFSIZE 64
- /*
!
[bytes] Size of the outbound FIFO buffer for SPI port (AVR only). */
+ /*
*
[bytes] Size of the outbound FIFO buffer for SPI port (AVR only). */
#define CONFIG_SPI_TXBUFSIZE 16
#define CONFIG_SPI_TXBUFSIZE 16
- /*
!
[bytes] Size of the inbound FIFO buffer for SPI port (AVR only). */
+ /*
*
[bytes] Size of the inbound FIFO buffer for SPI port (AVR only). */
#define CONFIG_SPI_RXBUFSIZE 32
#define CONFIG_SPI_RXBUFSIZE 32
- /*
!
Default transmit timeout (ms). Set to -1 to disable timeout support */
+ /*
*
Default transmit timeout (ms). Set to -1 to disable timeout support */
#define CONFIG_SER_TXTIMEOUT -1
#define CONFIG_SER_TXTIMEOUT -1
- /*
!
Default receive timeout (ms). Set to -1 to disable timeout support */
+ /*
*
Default receive timeout (ms). Set to -1 to disable timeout support */
#define CONFIG_SER_RXTIMEOUT -1
#define CONFIG_SER_RXTIMEOUT -1
- /*
!
Use RTS/CTS handshake */
+ /*
*
Use RTS/CTS handshake */
#define CONFIG_SER_HWHANDSHAKE 0
#define CONFIG_SER_HWHANDSHAKE 0
- /*
!
Default baud rate (set to 0 to disable) */
+ /*
*
Default baud rate (set to 0 to disable) */
#define CONFIG_SER_DEFBAUDRATE 0
#define CONFIG_SER_DEFBAUDRATE 0
- /*
!
Enable ser_gets() and ser_gets_echo() */
+ /*
*
Enable ser_gets() and ser_gets_echo() */
#define CONFIG_SER_GETS 0
/** Enable second serial port in emulator. */
#define CONFIG_EMUL_UART1 0
#define CONFIG_SER_GETS 0
/** Enable second serial port in emulator. */
#define CONFIG_EMUL_UART1 0
- /*
!
+ /*
*
* Transmit always something on serial port 0 TX
* to avoid interference when sending burst of data,
* using AVR multiprocessor serial mode
* Transmit always something on serial port 0 TX
* to avoid interference when sending burst of data,
* using AVR multiprocessor serial mode
@@
-163,16
+166,16
@@
#define CONFIG_SER_STROBE 0
/*\}*/
#define CONFIG_SER_STROBE 0
/*\}*/
-//
!
Hardware timer selection for drv/timer.c
+//
/
Hardware timer selection for drv/timer.c
#define CONFIG_TIMER TIMER_ON_OUTPUT_COMPARE2
#define CONFIG_TIMER TIMER_ON_OUTPUT_COMPARE2
-//
!
Debug timer interrupt using a strobe pin.
+//
/
Debug timer interrupt using a strobe pin.
#define CONFIG_TIMER_STROBE 0
#define CONFIG_TIMER_STROBE 0
-//
!
Enable watchdog timer.
+//
/
Enable watchdog timer.
#define CONFIG_WATCHDOG 1
#define CONFIG_WATCHDOG 1
-//
!
EEPROM type for drv/eeprom.c
+//
/
EEPROM type for drv/eeprom.c
#define CONFIG_EEPROM_TYPE EEPROM_24XX256
/// Select bitmap pixel format.
#define CONFIG_EEPROM_TYPE EEPROM_24XX256
/// Select bitmap pixel format.
@@
-196,7
+199,7
@@
/// Enable key beeps.
#define CONFIG_KBD_BEEP 1
/// Enable key beeps.
#define CONFIG_KBD_BEEP 1
-/*
!
+/*
*
* \name Type for the chart dataset
* \{
*/
* \name Type for the chart dataset
* \{
*/
diff --git
a/app/demo/verstag.h
b/app/demo/verstag.h
index 5989123dd55418dbd6a30630b7c9a7468692aa4c..5777807d1dabc56a8ece1c350363a4eacb9d881e 100755
(executable)
--- a/
app/demo/verstag.h
+++ b/
app/demo/verstag.h
@@
-29,7
+29,7
@@
#define VERS_REV 0
#define VERS_LETTER ""
#define VERS_REV 0
#define VERS_LETTER ""
-/*
!
+/*
*
* If _SNAPSHOT is defined, \c VERS_TAG contains the build date
* date instead of a numeric version string.
*/
* If _SNAPSHOT is defined, \c VERS_TAG contains the build date
* date instead of a numeric version string.
*/
@@
-44,7
+44,7
@@
#define __STRINGIZE(x) #x
#define _STRINGIZE(x) __STRINGIZE(x)
#define __STRINGIZE(x) #x
#define _STRINGIZE(x) __STRINGIZE(x)
-/*
!
Build application version string (i.e.: "1.7.0") */
+/*
*
Build application version string (i.e.: "1.7.0") */
#define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
#ifdef _SNAPSHOT
#define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
#define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
#ifdef _SNAPSHOT
#define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
@@
-52,18
+52,18
@@
#define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
#endif
#define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
#endif
-/*
!
Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */
+/*
*
Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */
#define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
#define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
#define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
#define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
-/*
!
The revision string (contains VERS_TAG) */
+/*
*
The revision string (contains VERS_TAG) */
extern const char vers_tag[];
extern const char vers_tag[];
-/*
!
Sequential build number (contains VERS_BUILD) */
+/*
*
Sequential build number (contains VERS_BUILD) */
extern const int vers_build_nr;
//extern const char vers_build_str[];
extern const int vers_build_nr;
//extern const char vers_build_str[];
-/*
!
Hostname of the machine used to build this binary (contains VERS_HOST) */
+/*
*
Hostname of the machine used to build this binary (contains VERS_HOST) */
extern const char vers_host[];
#endif /* DEVLIB_VERSTAG_H */
extern const char vers_host[];
#endif /* DEVLIB_VERSTAG_H */
diff --git
a/app/triface/appconfig.h
b/app/triface/appconfig.h
index c7ceca08aa137dc2c19fd0c7cd28128cb787a0a0..06f3030a62f42d711d7fe3a3696af0fe0f3c682d 100755
(executable)
--- a/
app/triface/appconfig.h
+++ b/
app/triface/appconfig.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-46,6
+46,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2006/06/12 21:37:01 marco
*#* implemented some commands (ver and sleep)
*#*
*#* Revision 1.3 2006/06/12 21:37:01 marco
*#* implemented some commands (ver and sleep)
*#*
diff --git
a/app/triface/verstag.h
b/app/triface/verstag.h
index 86ea7c43fd2654ca2aa09b6ecc9ac96108ec69ae..dc815b8fd8c55c2faf7dfbe9e3e7ccd707cdfd14 100755
(executable)
--- a/
app/triface/verstag.h
+++ b/
app/triface/verstag.h
@@
-29,7
+29,7
@@
#define VERS_REV 0
#define VERS_LETTER ""
#define VERS_REV 0
#define VERS_LETTER ""
-/*
!
+/*
*
* If _SNAPSHOT is defined, \c VERS_TAG contains the build date
* date instead of a numeric version string.
*/
* If _SNAPSHOT is defined, \c VERS_TAG contains the build date
* date instead of a numeric version string.
*/
@@
-44,7
+44,7
@@
#define __STRINGIZE(x) #x
#define _STRINGIZE(x) __STRINGIZE(x)
#define __STRINGIZE(x) #x
#define _STRINGIZE(x) __STRINGIZE(x)
-/*
!
Build application version string (i.e.: "1.7.0") */
+/*
*
Build application version string (i.e.: "1.7.0") */
#define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
#ifdef _SNAPSHOT
#define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
#define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
#ifdef _SNAPSHOT
#define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
@@
-52,18
+52,18
@@
#define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
#endif
#define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
#endif
-/*
!
Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */
+/*
*
Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */
#define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
#define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
#define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
#define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
-/*
!
The revision string (contains VERS_TAG) */
+/*
*
The revision string (contains VERS_TAG) */
extern const char vers_tag[];
extern const char vers_tag[];
-/*
!
Sequential build number (contains VERS_BUILD) */
+/*
*
Sequential build number (contains VERS_BUILD) */
extern const int vers_build_nr;
//extern const char vers_build_str[];
extern const int vers_build_nr;
//extern const char vers_build_str[];
-/*
!
Hostname of the machine used to build this binary (contains VERS_HOST) */
+/*
*
Hostname of the machine used to build this binary (contains VERS_HOST) */
extern const char vers_host[];
#endif /* DEVLIB_VERSTAG_H */
extern const char vers_host[];
#endif /* DEVLIB_VERSTAG_H */
diff --git
a/appconfig_common.h
b/appconfig_common.h
index fc6a0b2248bb2c3830396fe7a768c10ffe0ae1ab..ee3100246cc6a271f51e7b5d611a47e412307eae 100755
(executable)
--- a/
appconfig_common.h
+++ b/
appconfig_common.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-46,6
+46,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:24 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2006/05/18 00:40:43 bernie
*#* Rename appconfig.h to appconfig_common.h.
*#*
*#* Revision 1.1 2006/05/18 00:40:43 bernie
*#* Rename appconfig.h to appconfig_common.h.
*#*
@@
-86,10
+89,10
@@
#ifndef CONFIG_COMMON_H
#define CONFIG_COMMON_H
#ifndef CONFIG_COMMON_H
#define CONFIG_COMMON_H
-/*
!
Baud-rate for the kdebug console */
+/*
*
Baud-rate for the kdebug console */
#define CONFIG_KDEBUG_BAUDRATE 19200
#define CONFIG_KDEBUG_BAUDRATE 19200
-/*
!
+/*
*
* printf()-style formatter configuration.
*
* \sa PRINTF_DISABLED
* printf()-style formatter configuration.
*
* \sa PRINTF_DISABLED
@@
-100,54
+103,54
@@
*/
#define CONFIG_PRINTF PRINTF_FULL
*/
#define CONFIG_PRINTF PRINTF_FULL
-/*
!
+/*
*
* Multithreading kernel.
*
* \sa config_kern.h
*/
#define CONFIG_KERNEL 1
* Multithreading kernel.
*
* \sa config_kern.h
*/
#define CONFIG_KERNEL 1
-/*
!
+/*
*
* \name Serial driver parameters
* \{
*/
* \name Serial driver parameters
* \{
*/
- /*
!
[bytes] Size of the outbound FIFO buffer for port 0. */
+ /*
*
[bytes] Size of the outbound FIFO buffer for port 0. */
#define CONFIG_UART0_TXBUFSIZE 32
#define CONFIG_UART0_TXBUFSIZE 32
- /*
!
[bytes] Size of the inbound FIFO buffer for port 0. */
+ /*
*
[bytes] Size of the inbound FIFO buffer for port 0. */
#define CONFIG_UART0_RXBUFSIZE 64
#define CONFIG_UART0_RXBUFSIZE 64
- /*
!
[bytes] Size of the outbound FIFO buffer for port 1. */
+ /*
*
[bytes] Size of the outbound FIFO buffer for port 1. */
#define CONFIG_UART1_TXBUFSIZE 32
#define CONFIG_UART1_TXBUFSIZE 32
- /*
!
[bytes] Size of the inbound FIFO buffer for port 1. */
+ /*
*
[bytes] Size of the inbound FIFO buffer for port 1. */
#define CONFIG_UART1_RXBUFSIZE 64
#define CONFIG_UART1_RXBUFSIZE 64
- /*
!
[bytes] Size of the outbound FIFO buffer for SPI port (AVR only). */
+ /*
*
[bytes] Size of the outbound FIFO buffer for SPI port (AVR only). */
#define CONFIG_SPI_TXBUFSIZE 16
#define CONFIG_SPI_TXBUFSIZE 16
- /*
!
[bytes] Size of the inbound FIFO buffer for SPI port (AVR only). */
+ /*
*
[bytes] Size of the inbound FIFO buffer for SPI port (AVR only). */
#define CONFIG_SPI_RXBUFSIZE 32
#define CONFIG_SPI_RXBUFSIZE 32
- /*
!
Default transmit timeout (ms). Set to -1 to disable timeout support */
+ /*
*
Default transmit timeout (ms). Set to -1 to disable timeout support */
#define CONFIG_SER_TXTIMEOUT -1
#define CONFIG_SER_TXTIMEOUT -1
- /*
!
Default receive timeout (ms). Set to -1 to disable timeout support */
+ /*
*
Default receive timeout (ms). Set to -1 to disable timeout support */
#define CONFIG_SER_RXTIMEOUT -1
#define CONFIG_SER_RXTIMEOUT -1
- /*
!
Use RTS/CTS handshake */
+ /*
*
Use RTS/CTS handshake */
#define CONFIG_SER_HWHANDSHAKE 0
#define CONFIG_SER_HWHANDSHAKE 0
- /*
!
Default baud rate (set to 0 to disable) */
+ /*
*
Default baud rate (set to 0 to disable) */
#define CONFIG_SER_DEFBAUDRATE 0
#define CONFIG_SER_DEFBAUDRATE 0
- /*
!
Enable ser_gets() and ser_gets_echo() */
+ /*
*
Enable ser_gets() and ser_gets_echo() */
#define CONFIG_SER_GETS 0
/** Enable second serial port in emulator. */
#define CONFIG_EMUL_UART1 0
#define CONFIG_SER_GETS 0
/** Enable second serial port in emulator. */
#define CONFIG_EMUL_UART1 0
- /*
!
+ /*
*
* Transmit always something on serial port 0 TX
* to avoid interference when sending burst of data,
* using AVR multiprocessor serial mode
* Transmit always something on serial port 0 TX
* to avoid interference when sending burst of data,
* using AVR multiprocessor serial mode
@@
-157,16
+160,16
@@
#define CONFIG_SER_STROBE 0
/*\}*/
#define CONFIG_SER_STROBE 0
/*\}*/
-//
!
Hardware timer selection for drv/timer.c
+//
/
Hardware timer selection for drv/timer.c
#define CONFIG_TIMER TIMER_ON_OUTPUT_COMPARE2
#define CONFIG_TIMER TIMER_ON_OUTPUT_COMPARE2
-//
!
Debug timer interrupt using a strobe pin.
+//
/
Debug timer interrupt using a strobe pin.
#define CONFIG_TIMER_STROBE 0
#define CONFIG_TIMER_STROBE 0
-//
!
Enable watchdog timer.
+//
/
Enable watchdog timer.
#define CONFIG_WATCHDOG 1
#define CONFIG_WATCHDOG 1
-//
!
EEPROM type for drv/eeprom.c
+//
/
EEPROM type for drv/eeprom.c
#define CONFIG_EEPROM_TYPE EEPROM_24XX256
/// Select bitmap pixel format.
#define CONFIG_EEPROM_TYPE EEPROM_24XX256
/// Select bitmap pixel format.
@@
-190,7
+193,7
@@
/// Enable key beeps
#define CONFIG_KBD_BEEP 1
/// Enable key beeps
#define CONFIG_KBD_BEEP 1
-/*
!
+/*
*
* \name Type for the chart dataset
* \{
*/
* \name Type for the chart dataset
* \{
*/
diff --git
a/cfg/arch_config.h
b/cfg/arch_config.h
index c1307135d62c65b01a9707ad0439f6b9344bd32b..53da57c30e70195a02d393b1974d545f1e51f2dc 100755
(executable)
--- a/
cfg/arch_config.h
+++ b/
cfg/arch_config.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $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.3 2006/02/24 00:27:56 bernie
*#* Remove #error to allow compiling local demo.
*#*
@@
-38,7
+41,7
@@
#ifndef ARCH_CONFIG_H
#define ARCH_CONFIG_H
#ifndef ARCH_CONFIG_H
#define ARCH_CONFIG_H
-/*
!
+/*
*
* \name Architectures
* \{
*/
* \name Architectures
* \{
*/
diff --git
a/cfg/compiler.h
b/cfg/compiler.h
index aadb25217a04d8d8dc390a9e4ffae6d68bcb904e..9f5462b3aa8ccacfc5c9f6ecb9fd5686c3bcd0fb 100755
(executable)
--- a/
cfg/compiler.h
+++ b/
cfg/compiler.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* 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.21 2006/07/19 12:53:43 bernie
*#* Prune log.
*#*
diff --git
a/cfg/cpu.h
b/cfg/cpu.h
index 949282150a6f54ebc65dbfc0b87b1032a7353203..66ae5d731b891f7cbb3000ff1d04b0e14ba15e6e 100755
(executable)
--- a/
cfg/cpu.h
+++ b/
cfg/cpu.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-17,6
+17,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.15 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.14 2006/07/19 12:54:12 bernie
*#* Documentation fixes.
*#*
*#* Revision 1.14 2006/07/19 12:54:12 bernie
*#* Documentation fixes.
*#*
@@
-372,7
+375,7
@@
#define CPU_BYTE_ORDER CPU_LITTLE_ENDIAN
#define CPU_HARVARD 1
#define CPU_BYTE_ORDER CPU_LITTLE_ENDIAN
#define CPU_HARVARD 1
- /*
!
+ /*
*
* Initialization value for registers in stack frame.
* The register index is not directly corrispondent to CPU
* register numbers. Index 0 is the SREG register: the initial
* Initialization value for registers in stack frame.
* The register index is not directly corrispondent to CPU
* register numbers. Index 0 is the SREG register: the initial
@@
-384,7
+387,7
@@
#error No CPU_... defined.
#endif
#error No CPU_... defined.
#endif
-/*
!
+/*
*
* Execute \a CODE atomically with respect to interrupts.
*
* \see IRQ_SAVE_DISABLE IRQ_RESTORE
* Execute \a CODE atomically with respect to interrupts.
*
* \see IRQ_SAVE_DISABLE IRQ_RESTORE
@@
-398,7
+401,7
@@
} while (0)
} while (0)
-//
!
Default for macro not defined in the right arch section
+//
/
Default for macro not defined in the right arch section
#ifndef CPU_REG_INIT_VALUE
#define CPU_REG_INIT_VALUE(reg) 0
#endif
#ifndef CPU_REG_INIT_VALUE
#define CPU_REG_INIT_VALUE(reg) 0
#endif
@@
-478,7
+481,7
@@
#endif
#endif
-/*
!
+/*
*
* \name Default type sizes.
*
* These defaults are reasonable for most 16/32bit machines.
* \name Default type sizes.
*
* These defaults are reasonable for most 16/32bit machines.
@@
-572,7
+575,7
@@
STATIC_ASSERT(sizeof(int64_t) * CPU_BITS_PER_CHAR == 64);
STATIC_ASSERT(sizeof(uint64_t) * CPU_BITS_PER_CHAR == 64);
#endif
STATIC_ASSERT(sizeof(uint64_t) * CPU_BITS_PER_CHAR == 64);
#endif
-/*
!
+/*
*
* \def CPU_IDLE
*
* \brief Invoked by the scheduler to stop the CPU when idle.
* \def CPU_IDLE
*
* \brief Invoked by the scheduler to stop the CPU when idle.
diff --git
a/cfg/cpu_detect.h
b/cfg/cpu_detect.h
index 47b029fe394296e9d3fd2c35a1c4eaa2887d3c3b..2a285ba3cb8e6416be48bc1c586c0f6aeb8c2a6d 100755
(executable)
--- a/
cfg/cpu_detect.h
+++ b/
cfg/cpu_detect.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-12,6
+12,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2006/02/10 12:37:37 bernie
*#* Add support for ARM on IAR.
*#*
*#* Revision 1.3 2006/02/10 12:37:37 bernie
*#* Add support for ARM on IAR.
*#*
diff --git
a/cfg/debug.h
b/cfg/debug.h
index fc811ee5b089019fb193d3b6ba516d829e8ca3ab..f31fc556340c98fdca80d50ff629fb292e81d85a 100755
(executable)
--- a/
cfg/debug.h
+++ b/
cfg/debug.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-17,6
+17,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.14 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.13 2006/03/22 13:34:34 bernie
*#* MSVC support.
*#*
*#* Revision 1.13 2006/03/22 13:34:34 bernie
*#* MSVC support.
*#*
@@
-129,7
+132,7
@@
#undef NDEBUG
#endif
#undef NDEBUG
#endif
- /*
!
+ /*
*
* This macro duplicates the old MSVC trick of redefining
* THIS_FILE locally to avoid the overhead of many duplicate
* strings in ASSERT().
* This macro duplicates the old MSVC trick of redefining
* THIS_FILE locally to avoid the overhead of many duplicate
* strings in ASSERT().
@@
-138,7
+141,7
@@
#define THIS_FILE __FILE__
#endif
#define THIS_FILE __FILE__
#endif
- /*
!
+ /*
*
* This macro can be used to conditionally exclude one or more
* statements conditioned on \c _DEBUG, avoiding the clutter
* of ifdef/endif pairs.
* This macro can be used to conditionally exclude one or more
* statements conditioned on \c _DEBUG, avoiding the clutter
* of ifdef/endif pairs.
@@
-291,7
+294,7
@@
#endif /* !OS_HOSTED */
#endif /* !OS_HOSTED */
- /*
!
+ /*
*
* \name Walls to detect data corruption
* \{
*/
* \name Walls to detect data corruption
* \{
*/
@@
-303,7
+306,7
@@
#define CHECK_WALL(name) __check_wall((name), countof(name), #name, THIS_FILE, __LINE__)
/*\}*/
#define CHECK_WALL(name) __check_wall((name), countof(name), #name, THIS_FILE, __LINE__)
/*\}*/
- /*
!
+ /*
*
* Check that the given pointer actually points to an object
* of the specified type.
*/
* Check that the given pointer actually points to an object
* of the specified type.
*/
@@
-312,7
+315,7
@@
ASSERT(dynamic_cast<_t>((_o)) != NULL); \
}
ASSERT(dynamic_cast<_t>((_o)) != NULL); \
}
- /*
!
+ /*
*
* \name Debug object creation and destruction.
*
* These macros help track some kinds of leaks in C++ programs.
* \name Debug object creation and destruction.
*
* These macros help track some kinds of leaks in C++ programs.
diff --git
a/cfg/macros.h
b/cfg/macros.h
index a017457e2d7e2bebbf8f67c0aac87cee395f693b..17ee7887759914cca7814d090cfff253e2998fbd 100755
(executable)
--- a/
cfg/macros.h
+++ b/
cfg/macros.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.9 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.8 2006/03/13 02:06:55 bernie
*#* ROUND_UP2: Rename from ROUND2.
*#*
*#* Revision 1.8 2006/03/13 02:06:55 bernie
*#* ROUND_UP2: Rename from ROUND2.
*#*
@@
-124,14
+127,14
@@
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif /* !(COMPILER_STATEMENT_EXPRESSIONS && COMPILER_TYPEOF) */
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif /* !(COMPILER_STATEMENT_EXPRESSIONS && COMPILER_TYPEOF) */
-/*
!
Bound \a x between \a min and \a max. */
+/*
*
Bound \a x between \a min and \a max. */
#define MINMAX(min,x,max) (MIN(MAX(min, x), max))
#ifdef __cplusplus
/* Use standard implementation from <algorithm> */
#define SWAP(a,b) std::swap(a, b)
#elif COMPILER_TYPEOF
#define MINMAX(min,x,max) (MIN(MAX(min, x), max))
#ifdef __cplusplus
/* Use standard implementation from <algorithm> */
#define SWAP(a,b) std::swap(a, b)
#elif COMPILER_TYPEOF
- /*
!
+ /*
*
* Type-generic macro to swap \a a with \a b.
*
* \note Arguments are evaluated multiple times.
* Type-generic macro to swap \a a with \a b.
*
* \note Arguments are evaluated multiple times.
@@
-156,7
+159,7
@@
#endif /* COMPILER_TYPEOF */
#ifndef BV
#endif /* COMPILER_TYPEOF */
#ifndef BV
- /*
!
Convert a bit value to a binary flag. */
+ /*
*
Convert a bit value to a binary flag. */
#define BV(x) (1<<(x))
#endif
#define BV(x) (1<<(x))
#endif
@@
-166,7
+169,7
@@
/* OBSOLETE */
#define ROUND2 ROUND_UP2
/* OBSOLETE */
#define ROUND2 ROUND_UP2
-/*
!
+/*
*
* \name Integer round macros.
*
* Round \a x to a multiple of \a base.
* \name Integer round macros.
*
* Round \a x to a multiple of \a base.
@@
-181,7
+184,7
@@
/** Check if \a x is an integer power of 2. */
#define IS_POW2(x) (!(bool)((x) & ((x)-1)))
/** Check if \a x is an integer power of 2. */
#define IS_POW2(x) (!(bool)((x) & ((x)-1)))
-/*
!
Calculate a compile-time log2 for a uint8_t */
+/*
*
Calculate a compile-time log2 for a uint8_t */
#define UINT8_LOG2(x) \
((x) < 2 ? 0 : \
((x) < 4 ? 1 : \
#define UINT8_LOG2(x) \
((x) < 2 ? 0 : \
((x) < 4 ? 1 : \
@@
-191,16
+194,16
@@
((x) < 64 ? 5 : \
((x) < 128 ? 6 : 7)))))))
((x) < 64 ? 5 : \
((x) < 128 ? 6 : 7)))))))
-/*
!
Calculate a compile-time log2 for a uint16_t */
+/*
*
Calculate a compile-time log2 for a uint16_t */
#define UINT16_LOG2(x) \
((x < 256) ? UINT8_LOG2(x) : UINT8_LOG2((x) >> 8) + 8)
#define UINT16_LOG2(x) \
((x < 256) ? UINT8_LOG2(x) : UINT8_LOG2((x) >> 8) + 8)
-/*
!
Calculate a compile-time log2 for a uint32_t */
+/*
*
Calculate a compile-time log2 for a uint32_t */
#define UINT32_LOG2(x) \
((x < 65536UL) ? UINT16_LOG2(x) : UINT16_LOG2((x) >> 16) + 16)
#if COMPILER_VARIADIC_MACROS
#define UINT32_LOG2(x) \
((x < 65536UL) ? UINT16_LOG2(x) : UINT16_LOG2((x) >> 16) + 16)
#if COMPILER_VARIADIC_MACROS
- /*
!
Count the number of arguments (up to 16). */
+ /*
*
Count the number of arguments (up to 16). */
#define PP_COUNT(...) \
PP_COUNT__(__VA_ARGS__,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0)
#define PP_COUNT__(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,count,...) \
#define PP_COUNT(...) \
PP_COUNT__(__VA_ARGS__,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0)
#define PP_COUNT__(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,count,...) \
@@
-208,7
+211,7
@@
#endif
#if COMPILER_VARIADIC_MACROS
#endif
#if COMPILER_VARIADIC_MACROS
- /*
!
+ /*
*
* \def BIT_CHANGE(reg, (mask, value), ...)
*
* This macro allows for efficient and compact bit toggling in a hardware
* \def BIT_CHANGE(reg, (mask, value), ...)
*
* This macro allows for efficient and compact bit toggling in a hardware
@@
-247,7
+250,7
@@
* for use with C90 compilers, through Boost Preprocessor.
*/
* for use with C90 compilers, through Boost Preprocessor.
*/
- /*
!
+ /*
*
* \def BIT_CHANGE_BV(reg, (bit, value), ...)
*
* Similar to BIT_CHANGE(), but get bits instead of masks (and applies BV() to convert
* \def BIT_CHANGE_BV(reg, (bit, value), ...)
*
* Similar to BIT_CHANGE(), but get bits instead of masks (and applies BV() to convert
diff --git
a/cfg/module.h
b/cfg/module.h
index 31bb07f23edeb88885a6572f9365c9cce73731f5..750368aac4c63cabb42dba741eb8b459b617c6f1 100755
(executable)
--- a/
cfg/module.h
+++ b/
cfg/module.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
diff --git
a/cfg/os.h
b/cfg/os.h
index eb82043ae0d4c6f613e2d220f9fd6a5f8c2afaac..249a947ad0fafbf90de485de8ce6187e4f038bfe 100755
(executable)
--- a/
cfg/os.h
+++ b/
cfg/os.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.10 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.9 2006/03/22 13:34:34 bernie
*#* MSVC support.
*#*
*#* Revision 1.9 2006/03/22 13:34:34 bernie
*#* MSVC support.
*#*
@@
-48,7
+51,7
@@
#ifndef DEVLIB_OS_H
#define DEVLIB_OS_H
#ifndef DEVLIB_OS_H
#define DEVLIB_OS_H
-/*
!
Macro to include OS-specific versions of the headers. */
+/*
*
Macro to include OS-specific versions of the headers. */
#define OS_HEADER(module) PP_STRINGIZE(PP_CAT3(module, _, OS_ID).h)
#define OS_CSOURCE(module) PP_STRINGIZE(PP_CAT3(module, _, OS_ID).c)
#define OS_HEADER(module) PP_STRINGIZE(PP_CAT3(module, _, OS_ID).h)
#define OS_CSOURCE(module) PP_STRINGIZE(PP_CAT3(module, _, OS_ID).c)
diff --git
a/config.mk
b/config.mk
index fec9b52d52fc5dfee9980215797c76a0a4975283..dd3128d3bd5f55b3edef79b24d42d8e157545f23 100755
(executable)
--- a/
config.mk
+++ b/
config.mk
@@
-10,6
+10,9
@@
# Author: Bernardo Innocenti <bernie@develer.com>
#
# $Log$
# Author: Bernardo Innocenti <bernie@develer.com>
#
# $Log$
+# Revision 1.7 2006/07/19 12:56:24 bernie
+# Convert to new Doxygen style.
+#
# Revision 1.6 2006/06/12 22:05:09 marco
# Bring back config wrongly commited
#
# Revision 1.6 2006/06/12 22:05:09 marco
# Bring back config wrongly commited
#
@@
-36,6
+39,9
@@
DPROG = -V -c stk500 -P /dev/ttyS0
# STK200 parallel cable
#DPROG = -c stk200 -E noreset
# STK200 parallel cable
#DPROG = -c stk200 -E noreset
+# JTAG ICE mkII
+#DPROG = avarice --mkII -j usb -l
+
# PonyProg serial programmer
#DPROG = -c dasa2
# PonyProg serial programmer
#DPROG = -c dasa2
@@
-50,7
+56,7
@@
DEBUGCFLAGS = -ggdb
#
# define some variables based on the AVR base path in $(AVR)
#
#
# define some variables based on the AVR base path in $(AVR)
#
-CROSS =
+CROSS =
avr-
CC = $(CROSS)gcc
AS = $(CC) -x assembler-with-cpp
LD = $(CC)
CC = $(CROSS)gcc
AS = $(CC) -x assembler-with-cpp
LD = $(CC)
diff --git
a/config_kern.h
b/config_kern.h
index 420a48e8bfe9d5e5fc774ed0307347521b3313fc..06779c27685d37de73f9c9c30f6efa2f5488e483 100755
(executable)
--- a/
config_kern.h
+++ b/
config_kern.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.8 2006/07/19 12:56:24 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.7 2006/02/21 16:05:53 bernie
*#* Move from cfg/ to top-level.
*#*
*#* Revision 1.7 2006/02/21 16:05:53 bernie
*#* Move from cfg/ to top-level.
*#*
@@
-49,7
+52,7
@@
#include <cfg/arch_config.h> /* ARCH_EMUL */
#include <cfg/arch_config.h> /* ARCH_EMUL */
-/*
!
+/*
*
* \name Modules activation
*
* \{
* \name Modules activation
*
* \{
@@
-66,12
+69,12
@@
/* EXPERIMENTAL */
#define CONFIG_KERN_PREEMPTIVE (0 && CONFIG_KERN_SCHED && CONFIG_KERN_TIMER)
/* EXPERIMENTAL */
#define CONFIG_KERN_PREEMPTIVE (0 && CONFIG_KERN_SCHED && CONFIG_KERN_TIMER)
-#define CONFIG_KERN_QUANTUM 50 /*
!
< Time sharing quantum in timer ticks. */
+#define CONFIG_KERN_QUANTUM 50 /*
*
< Time sharing quantum in timer ticks. */
#if (ARCH & ARCH_EMUL)
#define CONFIG_KERN_DEFSTACKSIZE 65536
#else
#if (ARCH & ARCH_EMUL)
#define CONFIG_KERN_DEFSTACKSIZE 65536
#else
- #define CONFIG_KERN_DEFSTACKSIZE 128 /*
!
< Default stack size for each thread. */
+ #define CONFIG_KERN_DEFSTACKSIZE 128 /*
*
< Default stack size for each thread. */
#endif
/* Memory fill codes to help debugging */
#endif
/* Memory fill codes to help debugging */
diff --git
a/drv/adc.c
b/drv/adc.c
index c775e16175f0c86ba62e2fffd00e5dd92e3f14fe..dffb9ce47f3b2ad488a4a6c4234161ed8371fcf0 100755
(executable)
--- a/
drv/adc.c
+++ b/
drv/adc.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/06/27 21:28:31 bernie
*#* Import ADC driver.
*#*
*#* Revision 1.1 2005/06/27 21:28:31 bernie
*#* Import ADC driver.
*#*
@@
-31,7
+34,7
@@
DB(bool adc_initialized = false;)
DB(bool adc_initialized = false;)
-/*
!
+/*
*
* Read the ADC channel \a ch.
*/
adcread_t adc_read(uint16_t ch)
* Read the ADC channel \a ch.
*/
adcread_t adc_read(uint16_t ch)
@@
-44,7
+47,7
@@
adcread_t adc_read(uint16_t ch)
return(adc_hw_read());
}
return(adc_hw_read());
}
-/*
!
+/*
*
* Initialize the ADC hardware.
*/
void adc_init(void)
* Initialize the ADC hardware.
*/
void adc_init(void)
diff --git
a/drv/adc.h
b/drv/adc.h
index d87a26872de9fdac1104a8cd76401539ddad4cee..6a36683d65202a2ea339d310ba2b2a54dd771ddc 100755
(executable)
--- a/
drv/adc.h
+++ b/
drv/adc.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/06/27 21:28:31 bernie
*#* Import ADC driver.
*#*
*#* Revision 1.1 2005/06/27 21:28:31 bernie
*#* Import ADC driver.
*#*
@@
-27,7
+30,7
@@
#include <cfg/compiler.h>
#include <cfg/debug.h>
#include <cfg/compiler.h>
#include <cfg/debug.h>
-/*
!
Type for ADC return value. */
+/*
*
Type for ADC return value. */
typedef uint16_t adcread_t;
#define adc_bits() ADC_BITS
typedef uint16_t adcread_t;
#define adc_bits() ADC_BITS
diff --git
a/drv/buzzer.c
b/drv/buzzer.c
index f5d047b6e3947804efddcef8c51f7754e2f0dc1c..940bad6a8a2acef0bb78182f5fa8884d20fe8695 100755
(executable)
--- a/
drv/buzzer.c
+++ b/
drv/buzzer.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-17,6
+17,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.19 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.18 2006/02/17 21:15:25 bernie
*#* Add MOD_CHECK() checks.
*#*
*#* Revision 1.18 2006/02/17 21:15:25 bernie
*#* Add MOD_CHECK() checks.
*#*
@@
-66,7
+69,7
@@
static mtime_t buz_repeat_interval;
static mtime_t buz_repeat_duration;
static mtime_t buz_repeat_duration;
-/*
!
+/*
*
* Turn off buzzer, called by software timer
*/
static void buz_softint(void)
* Turn off buzzer, called by software timer
*/
static void buz_softint(void)
@@
-95,7
+98,7
@@
static void buz_softint(void)
}
}
-/*
!
+/*
*
* Beep for the specified ms time
*/
void buz_beep(mtime_t time)
* Beep for the specified ms time
*/
void buz_beep(mtime_t time)
@@
-119,7
+122,7
@@
void buz_beep(mtime_t time)
}
}
-/*
!
+/*
*
* Start buzzer repetition
*/
void buz_repeat_start(mtime_t duration, mtime_t interval)
* Start buzzer repetition
*/
void buz_repeat_start(mtime_t duration, mtime_t interval)
@@
-130,7
+133,7
@@
void buz_repeat_start(mtime_t duration, mtime_t interval)
}
}
-/*
!
+/*
*
* Stop buzzer repetition
*/
void buz_repeat_stop(void)
* Stop buzzer repetition
*/
void buz_repeat_stop(void)
@@
-153,7
+156,7
@@
void buz_repeat_stop(void)
MOD_DEFINE(buzzer)
MOD_DEFINE(buzzer)
-/*
!
+/*
*
* Initialize buzzer.
*/
void buz_init(void)
* Initialize buzzer.
*/
void buz_init(void)
diff --git
a/drv/buzzer.h
b/drv/buzzer.h
index 65c02d8e332d73a6ced64c7278da7a2eda1f402c..f7118ab478bee4a9e6d2e98fd16b758a91a6e0ef 100755
(executable)
--- a/
drv/buzzer.h
+++ b/
drv/buzzer.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003,2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003,2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.10 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.9 2005/11/27 23:32:15 bernie
*#* Update copyright information.
*#*
*#* Revision 1.9 2005/11/27 23:32:15 bernie
*#* Update copyright information.
*#*
diff --git
a/drv/buzzerled.c
b/drv/buzzerled.c
index 3e8841c49dfc7c57b1a95954df55dc32fba84366..92f5dfa0c50cf0d8194d05a45e64cc53739b5192 100755
(executable)
--- a/
drv/buzzerled.c
+++ b/
drv/buzzerled.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-27,6
+27,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:25 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.6 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
diff --git
a/drv/buzzerled.h
b/drv/buzzerled.h
index aa1c7afdfe4bdd5073327dece092c05a33759128..012def4ea9069a07c16d351fca6535feb41b6b94 100755
(executable)
--- a/
drv/buzzerled.h
+++ b/
drv/buzzerled.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.8 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.7 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.7 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-43,7
+46,7
@@
#include <cfg/cpu.h>
#include <cfg/cpu.h>
-/*
!
Include hw.h. We expect hw.h to define enum BLD_DEVICE, which must contain
+/*
*
Include hw.h. We expect hw.h to define enum BLD_DEVICE, which must contain
* an enumarator for each device, plus a special symbol NUM_BLDS containing the
* number of devices.
*/
* an enumarator for each device, plus a special symbol NUM_BLDS containing the
* number of devices.
*/
@@
-57,14
+60,14
@@
#include CPU_HEADER(buzzerled)
#include CPU_HEADER(buzzerled)
-/*
!
Initialize the buzzerled library.
+/*
*
Initialize the buzzerled library.
*
* \note This function must be called before any other function in the library.
*/
void bld_init(void);
*
* \note This function must be called before any other function in the library.
*/
void bld_init(void);
-/*
!
Set or reset a device.
+/*
*
Set or reset a device.
*
* \param device Device to be set
* \param enable Enable/disable status
*
* \param device Device to be set
* \param enable Enable/disable status
@@
-72,7
+75,7
@@
void bld_init(void);
#define bld_set(device, enable) bld_hw_set(device, enable)
#define bld_set(device, enable) bld_hw_set(device, enable)
-/*
!
Enable a device for a certain interval of time
+/*
*
Enable a device for a certain interval of time
*
* \param device Device to be enabled
* \param duration Number of milliseconds the device must be enabled
*
* \param device Device to be enabled
* \param duration Number of milliseconds the device must be enabled
@@
-82,7
+85,7
@@
void bld_init(void);
void bld_beep(enum BLD_DEVICE device, uint16_t duration);
void bld_beep(enum BLD_DEVICE device, uint16_t duration);
-/*
!
Enable a device for a certain interval of time and wait.
+/*
*
Enable a device for a certain interval of time and wait.
*
* \param device Device to be enabled
* \param duration Number of milliseconds the device must be enabled
*
* \param device Device to be enabled
* \param duration Number of milliseconds the device must be enabled
diff --git
a/drv/buzzerled_dsp56k.h
b/drv/buzzerled_dsp56k.h
index f1b0ba27eef0ce84fac97e9a6eb8262ae9f6c90e..3a7a2bf822852f615fc0c6b60e517468b03bf68a 100755
(executable)
--- a/
drv/buzzerled_dsp56k.h
+++ b/
drv/buzzerled_dsp56k.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:25 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.6 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-44,7
+47,7
@@
#if ARCH & ARCH_HECO
#if ARCH & ARCH_HECO
-/*
!
+/*
*
* \name Connection of the leds to the DSP:
* <pre>
* Led Line DSP Pin
* \name Connection of the leds to the DSP:
* <pre>
* Led Line DSP Pin
diff --git
a/drv/eeprom.c
b/drv/eeprom.c
index 9eeb011a96110813474f051e3318d0ee93f33ad1..fb83a07148022570b427da94a059479e167f1ef1 100755
(executable)
--- a/
drv/eeprom.c
+++ b/
drv/eeprom.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.20 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.19 2006/03/20 17:49:50 bernie
*#* Make the TWI driver more generic to work with devices other than EEPROMS.
*#*
*#* Revision 1.19 2006/03/20 17:49:50 bernie
*#* Make the TWI driver more generic to work with devices other than EEPROMS.
*#*
@@
-68,7
+71,7
@@
-/*
!
+/*
*
* Copy \c count bytes from buffer \c buf to
* eeprom at address \c addr.
*/
* Copy \c count bytes from buffer \c buf to
* eeprom at address \c addr.
*/
@@
-134,7
+137,7
@@
static bool eeprom_writeRaw(e2addr_t addr, const void *buf, size_t count)
#if CONFIG_EEPROM_VERIFY
#if CONFIG_EEPROM_VERIFY
-/*
!
+/*
*
* Check that the contents of an EEPROM range
* match with a provided data buffer.
*
* Check that the contents of an EEPROM range
* match with a provided data buffer.
*
@@
-194,7
+197,7
@@
bool eeprom_write(e2addr_t addr, const void *buf, size_t count)
}
}
-/*
!
+/*
*
* Copy \c count bytes at address \c addr
* from eeprom to RAM to buffer \c buf.
*
* Copy \c count bytes at address \c addr
* from eeprom to RAM to buffer \c buf.
*
@@
-240,7
+243,7
@@
bool eeprom_read(e2addr_t addr, void *buf, size_t count)
}
}
-/*
!
+/*
*
* Write a single character \a c at address \a addr.
*/
bool eeprom_write_char(e2addr_t addr, char c)
* Write a single character \a c at address \a addr.
*/
bool eeprom_write_char(e2addr_t addr, char c)
@@
-249,7
+252,7
@@
bool eeprom_write_char(e2addr_t addr, char c)
}
}
-/*
!
+/*
*
* Read a single character at address \a addr.
*
* \return the requested character or -1 in case of failure.
* Read a single character at address \a addr.
*
* \return the requested character or -1 in case of failure.
@@
-265,7
+268,7
@@
int eeprom_read_char(e2addr_t addr)
}
}
-/*
!
+/*
*
* Erase specified part of eeprom, writing 0xFF.
*
* \param addr starting address
* Erase specified part of eeprom, writing 0xFF.
*
* \param addr starting address
@@
-290,7
+293,7
@@
void eeprom_erase(e2addr_t addr, size_t count)
}
}
-/*
!
+/*
*
* Initialize TWI module.
*/
void eeprom_init(void)
* Initialize TWI module.
*/
void eeprom_init(void)
diff --git
a/drv/eeprom.h
b/drv/eeprom.h
index ec2f52861fb03957e5b1f9d745d08f0b886c9778..c41519d7244cc0427c5c6394d8d8cb0a2c7762d7 100755
(executable)
--- a/
drv/eeprom.h
+++ b/
drv/eeprom.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.9 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.8 2005/11/27 23:33:40 bernie
*#* Use appconfig.h instead of cfg/config.h.
*#*
*#* Revision 1.8 2005/11/27 23:33:40 bernie
*#* Use appconfig.h instead of cfg/config.h.
*#*
@@
-46,7
+49,7
@@
#include <cfg/compiler.h>
#include <appconfig.h>
#include <cfg/compiler.h>
#include <appconfig.h>
-/*
!
+/*
*
* \name Values for CONFIG_EEPROM_TYPE
* \{
*/
* \name Values for CONFIG_EEPROM_TYPE
* \{
*/
@@
-55,16
+58,16
@@
/*\}*/
#if CONFIG_EEPROM_TYPE == EEPROM_24XX16
/*\}*/
#if CONFIG_EEPROM_TYPE == EEPROM_24XX16
- #define EEPROM_BLKSIZE 0x10 //
!
< Eeprom block size (16byte)
- #define EEPROM_SIZE 0x800 //
!
< Eeprom total size (2kB)
+ #define EEPROM_BLKSIZE 0x10 //
/
< Eeprom block size (16byte)
+ #define EEPROM_SIZE 0x800 //
/
< Eeprom total size (2kB)
#elif CONFIG_EEPROM_TYPE == EEPROM_24XX256
#elif CONFIG_EEPROM_TYPE == EEPROM_24XX256
- #define EEPROM_BLKSIZE 0x40 //
!
< Eeprom block size (64byte)
- #define EEPROM_SIZE 0x8000 //
!
< Eeprom total size (32kB)
+ #define EEPROM_BLKSIZE 0x40 //
/
< Eeprom block size (64byte)
+ #define EEPROM_SIZE 0x8000 //
/
< Eeprom total size (32kB)
#else
#error Unsupported EEPROM type.
#endif
#else
#error Unsupported EEPROM type.
#endif
-//
!
Type for EEPROM addresses
+//
/
Type for EEPROM addresses
typedef uint16_t e2addr_t;
bool eeprom_write(e2addr_t addr, const void *buf, size_t count);
typedef uint16_t e2addr_t;
bool eeprom_write(e2addr_t addr, const void *buf, size_t count);
diff --git
a/drv/kbd.c
b/drv/kbd.c
index 4dabd3b3b942931931d0cfed67ed388e19c95851..6f51f4c8c7f062469da47f4d274b94f460c6d9f2 100755
(executable)
--- a/
drv/kbd.c
+++ b/
drv/kbd.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-17,6
+17,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.8 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.7 2006/06/03 13:57:36 bernie
*#* Make keyboard repeat mask run-time configurable.
*#*
*#* Revision 1.7 2006/06/03 13:57:36 bernie
*#* Make keyboard repeat mask run-time configurable.
*#*
@@
-64,38
+67,38
@@
#include <drv/buzzer.h>
#endif
#include <drv/buzzer.h>
#endif
-#define KBD_CHECK_INTERVAL 10 /*
!
< (ms) Timing for kbd softint */
-#define KBD_DEBOUNCE_TIME 30 /*
!
< (ms) Debounce time */
-#define KBD_BEEP_TIME 5 /*
!
< (ms) Duration of keybeep */
+#define KBD_CHECK_INTERVAL 10 /*
*
< (ms) Timing for kbd softint */
+#define KBD_DEBOUNCE_TIME 30 /*
*
< (ms) Debounce time */
+#define KBD_BEEP_TIME 5 /*
*
< (ms) Duration of keybeep */
-#define KBD_REPEAT_DELAY 400 /*
!
< (ms) Keyboard repeat delay for first character */
-#define KBD_REPEAT_RATE 100 /*
!
< (ms) Initial interchar delay for keyboard repeat */
-#define KBD_REPEAT_MAXRATE 20 /*
!
< (ms) Minimum delay for keyboard repeat */
-#define KBD_REPEAT_ACCEL 5 /*
!
< (ms) Keyboard repeat speed increase */
+#define KBD_REPEAT_DELAY 400 /*
*
< (ms) Keyboard repeat delay for first character */
+#define KBD_REPEAT_RATE 100 /*
*
< (ms) Initial interchar delay for keyboard repeat */
+#define KBD_REPEAT_MAXRATE 20 /*
*
< (ms) Minimum delay for keyboard repeat */
+#define KBD_REPEAT_ACCEL 5 /*
*
< (ms) Keyboard repeat speed increase */
-#define KBD_LNG_DELAY 1000 /*
!
< (ms) Keyboard long pression keys delay */
+#define KBD_LNG_DELAY 1000 /*
*
< (ms) Keyboard long pression keys delay */
-/*
!
Status for keyboard repeat state machine */
+/*
*
Status for keyboard repeat state machine */
static enum { KS_IDLE, KS_REPDELAY, KS_REPEAT } kbd_rptStatus;
static enum { KS_IDLE, KS_REPDELAY, KS_REPEAT } kbd_rptStatus;
-static volatile keymask_t kbd_buf; /*
!
< Single entry keyboard buffer */
-static volatile keymask_t kbd_cnt; /*
!
< Number of keypress events in \c kbd_buf */
+static volatile keymask_t kbd_buf; /*
*
< Single entry keyboard buffer */
+static volatile keymask_t kbd_cnt; /*
*
< Number of keypress events in \c kbd_buf */
static keymask_t kbd_rpt_mask; /**< Mask of repeatable keys. */
#if CONFIG_KBD_POLL == KBD_POLL_SOFTINT
static keymask_t kbd_rpt_mask; /**< Mask of repeatable keys. */
#if CONFIG_KBD_POLL == KBD_POLL_SOFTINT
-static Timer kbd_timer; /*
!
< Keyboard softtimer */
+static Timer kbd_timer; /*
*
< Keyboard softtimer */
#endif
#endif
-static List kbd_rawHandlers; /*
!
< Raw keyboard handlers */
-static List kbd_handlers; /*
!
< Cooked keyboard handlers */
+static List kbd_rawHandlers; /*
*
< Raw keyboard handlers */
+static List kbd_handlers; /*
*
< Cooked keyboard handlers */
-static KbdHandler kbd_defHandler; /*
!
< The default keyboard handler */
-static KbdHandler kbd_debHandler; /*
!
< The debounce keyboard handler */
-static KbdHandler kbd_rptHandler; /*
!
< Auto-repeat keyboard handler */
+static KbdHandler kbd_defHandler; /*
*
< The default keyboard handler */
+static KbdHandler kbd_debHandler; /*
*
< The debounce keyboard handler */
+static KbdHandler kbd_rptHandler; /*
*
< Auto-repeat keyboard handler */
#ifdef K_LNG_MASK
#ifdef K_LNG_MASK
-static KbdHandler kbd_lngHandler; /*
!
< Long pression keys handler */
+static KbdHandler kbd_lngHandler; /*
*
< Long pression keys handler */
#endif
#if CONFIG_KBD_OBSERVER
#endif
#if CONFIG_KBD_OBSERVER
@@
-104,7
+107,7
@@
static KbdHandler kbd_lngHandler; /*!< Long pression keys handler */
#endif
#endif
-/*
!
+/*
*
* Poll keyboard and dispatch keys to handlers.
*
* Read the key states and invoke all keyboard
* Poll keyboard and dispatch keys to handlers.
*
* Read the key states and invoke all keyboard
@@
-115,7
+118,7
@@
static KbdHandler kbd_lngHandler; /*!< Long pression keys handler */
*/
static void kbd_poll(void)
{
*/
static void kbd_poll(void)
{
- /*
!
Currently depressed key */
+ /*
*
Currently depressed key */
static keymask_t current_key;
struct KbdHandler *handler;
static keymask_t current_key;
struct KbdHandler *handler;
@@
-139,7
+142,7
@@
static void kbd_poll(void)
#if CONFIG_KBD_POLL == KBD_POLL_SOFTINT
#if CONFIG_KBD_POLL == KBD_POLL_SOFTINT
-/*
!
+/*
*
* Keyboard soft-irq handler.
*/
static void kbd_softint(UNUSED_ARG(iptr_t, arg))
* Keyboard soft-irq handler.
*/
static void kbd_softint(UNUSED_ARG(iptr_t, arg))
@@
-164,7
+167,7
@@
static portTASK_FUNCTION(kbd_task, arg)
#endif /* CONFIG_KBD_POLL */
#endif /* CONFIG_KBD_POLL */
-/*
!
+/*
*
* \brief Read a key from the keyboard buffer.
*
* When a key is kept depressed between calls of this function a value
* \brief Read a key from the keyboard buffer.
*
* When a key is kept depressed between calls of this function a value
@@
-197,7
+200,7
@@
keymask_t kbd_peek(void)
return key;
}
return key;
}
-/*
!
+/*
*
* Wait for a keypress and return the mask of depressed keys.
*
* \note This function is \b not interrupt safe!
* Wait for a keypress and return the mask of depressed keys.
*
* \note This function is \b not interrupt safe!
@@
-212,7
+215,7
@@
keymask_t kbd_get(void)
}
}
-/*
!
+/*
*
* Wait up to \c timeout ms for a keypress
* and return the mask of depressed keys, or K_TIMEOUT
* if the timeout was reacked.
* Wait up to \c timeout ms for a keypress
* and return the mask of depressed keys, or K_TIMEOUT
* if the timeout was reacked.
@@
-268,7
+271,7
@@
void kbd_remHandler(struct KbdHandler *handler)
}
}
-/*
!
+/*
*
* This is the default key handler, called after
* all other handlers have had their chance to
* do their special processing. This handler
* This is the default key handler, called after
* all other handlers have had their chance to
* do their special processing. This handler
@@
-296,18
+299,18
@@
static keymask_t kbd_defHandlerFunc(keymask_t key)
return 0;
}
return 0;
}
-/*
!
+/*
*
* Handle keyboard debounce
*/
static keymask_t kbd_debHandlerFunc(keymask_t key)
{
* Handle keyboard debounce
*/
static keymask_t kbd_debHandlerFunc(keymask_t key)
{
- /*
!
Buffer for debounce */
+ /*
*
Buffer for debounce */
static keymask_t debounce_key;
static keymask_t debounce_key;
- /*
!
Timer for keyboard debounce */
+ /*
*
Timer for keyboard debounce */
static ticks_t debounce_time;
static ticks_t debounce_time;
- /*
!
Key aquired after debounce */
+ /*
*
Key aquired after debounce */
static keymask_t new_key;
static keymask_t new_key;
@@
-359,7
+362,7
@@
keymask_t kbd_setRepeatMask(keymask_t mask)
return oldmask;
}
return oldmask;
}
-/*
!
+/*
*
* Handle keyboard repeat
*/
static keymask_t kbd_rptHandlerFunc(keymask_t key)
* Handle keyboard repeat
*/
static keymask_t kbd_rptHandlerFunc(keymask_t key)
@@
-368,7
+371,7
@@
static keymask_t kbd_rptHandlerFunc(keymask_t key)
static ticks_t repeat_time;
/* Current repeat rate (for acceleration). */
static ticks_t repeat_time;
/* Current repeat rate (for acceleration). */
- static ticks_t repeat_rate; /*
!
Current repeat rate (for acceleration) */
+ static ticks_t repeat_rate; /*
*
Current repeat rate (for acceleration) */
ticks_t now = timer_clock();
ticks_t now = timer_clock();
@@
-427,7
+430,7
@@
static keymask_t kbd_rptHandlerFunc(keymask_t key)
MOD_DEFINE(kbd)
MOD_DEFINE(kbd)
-/*
!
+/*
*
* Initialize keyboard ports and softtimer
*/
void kbd_init(void)
* Initialize keyboard ports and softtimer
*/
void kbd_init(void)
diff --git
a/drv/kbd.h
b/drv/kbd.h
index b9a253c3effbc38664c76435540055a5677737d5..f6193738d786bee9f4e61c756ed7df75b732052f 100755
(executable)
--- a/
drv/kbd.h
+++ b/
drv/kbd.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.6 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.5 2006/06/03 13:57:36 bernie
*#* Make keyboard repeat mask run-time configurable.
*#*
*#* Revision 1.5 2006/06/03 13:57:36 bernie
*#* Make keyboard repeat mask run-time configurable.
*#*
@@
-51,18
+54,18
@@
#define KBD_POLL_FREERTOS 2
/* \} */
#define KBD_POLL_FREERTOS 2
/* \} */
-/*
!
+/*
*
* Keyboard handler descriptor
*/
typedef struct KbdHandler
{
Node link;
* Keyboard handler descriptor
*/
typedef struct KbdHandler
{
Node link;
- keymask_t (*hook)(keymask_t); /*
!
< Hook function */
- int8_t pri; /*
!
< Priority in input queue */
- uint8_t flags; /*
!
< See below for definitions */
+ keymask_t (*hook)(keymask_t); /*
*
< Hook function */
+ int8_t pri; /*
*
< Priority in input queue */
+ uint8_t flags; /*
*
< See below for definitions */
} KbdHandler;
} KbdHandler;
-#define KHF_RAWKEYS BV(0) /*
!
< Handler gets raw key events */
+#define KHF_RAWKEYS BV(0) /*
*
< Handler gets raw key events */
void kbd_init(void);
void kbd_init(void);
diff --git
a/drv/kdebug.c
b/drv/kdebug.c
index 729c9ec0b03958e92db242d1f0e7a50075a913f9..bd21cbbbf7700bf57b5226863cd33815f493c7c7 100755
(executable)
--- a/
drv/kdebug.c
+++ b/
drv/kdebug.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.28 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.27 2006/06/01 12:32:06 marco
*#* Updated include reference.
*#*
*#* Revision 1.27 2006/06/01 12:32:06 marco
*#* Updated include reference.
*#*
@@
-240,7
+243,7
@@
void kdbg_init(void)
}
}
-/*
!
+/*
*
* Output one character to the debug console
*/
static void __kputchar(char c, UNUSED_ARG(void *, unused))
* Output one character to the debug console
*/
static void __kputchar(char c, UNUSED_ARG(void *, unused))
@@
-313,7
+316,7
@@
void PGM_FUNC(kputs)(const char * PGM_ATTR str)
}
}
-/*
!
+/*
*
* Cheap function to print small integers without using printf().
*/
int kputnum(int num)
* Cheap function to print small integers without using printf().
*/
int kputnum(int num)
@@
-426,7
+429,7
@@
int PGM_FUNC(__check_wall)(long *wall, int size, const char * PGM_ATTR name, con
#if CONFIG_PRINTF
#if CONFIG_PRINTF
-/*
!
+/*
*
* Dump binary data in hex
*/
void kdump(const void *_buf, size_t len)
* Dump binary data in hex
*/
void kdump(const void *_buf, size_t len)
diff --git
a/drv/lcd_gfx.c
b/drv/lcd_gfx.c
index 2054e41cc1a2a2f75030d95908519e23dddc3cd7..3a5135c69a170a26ef0a111dea5e52095feda473 100755
(executable)
--- a/
drv/lcd_gfx.c
+++ b/
drv/lcd_gfx.c
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.5 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.4 2006/04/27 05:40:11 bernie
*#* Naming convention fixes; Partial merge from project_grl.
*#*
*#* Revision 1.4 2006/04/27 05:40:11 bernie
*#* Naming convention fixes; Partial merge from project_grl.
*#*
@@
-54,18
+57,18
@@
#if CONFIG_LCD_SOFTINT_REFRESH
#if CONFIG_LCD_SOFTINT_REFRESH
- /*
!
Interval between softint driven lcd refresh */
+ /*
*
Interval between softint driven lcd refresh */
# define LCD_REFRESH_INTERVAL 20 /* 20ms -> 50fps */
#endif /* CONFIG_LCD_SOFTINT_REFRESH */
# define LCD_REFRESH_INTERVAL 20 /* 20ms -> 50fps */
#endif /* CONFIG_LCD_SOFTINT_REFRESH */
-/*
!
Number of LCD pages */
+/*
*
Number of LCD pages */
#define LCD_PAGES 4
#define LCD_PAGES 4
-/*
!
Width of an LCD page */
+/*
*
Width of an LCD page */
#define LCD_PAGESIZE (LCD_WIDTH / 2)
#define LCD_PAGESIZE (LCD_WIDTH / 2)
-/*
!
+/*
*
* \name LCD I/O pins/ports
* @{
*/
* \name LCD I/O pins/ports
* @{
*/
@@
-83,7
+86,7
@@
#define LCD_PE_E2 PE6
/*@}*/
#define LCD_PE_E2 PE6
/*@}*/
-/*
!
+/*
*
* \name DB high nibble (DB[4-7])
* @{
*/
* \name DB high nibble (DB[4-7])
* @{
*/
@@
-94,7
+97,7
@@
#define LCD_DATA_HI_MASK 0xF0
/*@}*/
#define LCD_DATA_HI_MASK 0xF0
/*@}*/
-/*
!
+/*
*
* \name DB low nibble (DB[0-3])
* @{
*/
* \name DB low nibble (DB[0-3])
* @{
*/
@@
-105,7
+108,7
@@
#define LCD_DATA_LO_MASK 0xF0
/*@}*/
#define LCD_DATA_LO_MASK 0xF0
/*@}*/
-/*
!
+/*
*
* \name LCD bus control macros
* @{
*/
* \name LCD bus control macros
* @{
*/
@@
-121,7
+124,7
@@
#define LCD_CLR_E(x) (PORTE &= ~(x))
/*@}*/
#define LCD_CLR_E(x) (PORTE &= ~(x))
/*@}*/
-/*
!
+/*
*
* \name Chip select bits for LCD_SET_E()
* @{
*/
* \name Chip select bits for LCD_SET_E()
* @{
*/
@@
-129,41
+132,41
@@
#define LCDF_E2 (BV(LCD_PE_E2))
/*@}*/
#define LCDF_E2 (BV(LCD_PE_E2))
/*@}*/
-/*
!
Read from the LCD data bus (DB[0-7]) */
+/*
*
Read from the LCD data bus (DB[0-7]) */
#define LCD_READ ( \
((LCD_DATA_LO_PIN & LCD_DATA_LO_MASK) >> LCD_DATA_LO_SHIFT) | \
((LCD_DATA_HI_PIN & LCD_DATA_HI_MASK) >> LCD_DATA_HI_SHIFT) \
)
#define LCD_READ ( \
((LCD_DATA_LO_PIN & LCD_DATA_LO_MASK) >> LCD_DATA_LO_SHIFT) | \
((LCD_DATA_HI_PIN & LCD_DATA_HI_MASK) >> LCD_DATA_HI_SHIFT) \
)
-/*
!
Write to the LCD data bus (DB[0-7]) */
+/*
*
Write to the LCD data bus (DB[0-7]) */
#define LCD_WRITE(d) \
do { \
LCD_DATA_LO_PORT = (LCD_DATA_LO_PORT & ~LCD_DATA_LO_MASK) | (((d)<<LCD_DATA_LO_SHIFT) & LCD_DATA_LO_MASK); \
LCD_DATA_HI_PORT = (LCD_DATA_HI_PORT & ~LCD_DATA_HI_MASK) | (((d)<<LCD_DATA_HI_SHIFT) & LCD_DATA_HI_MASK); \
} while (0)
#define LCD_WRITE(d) \
do { \
LCD_DATA_LO_PORT = (LCD_DATA_LO_PORT & ~LCD_DATA_LO_MASK) | (((d)<<LCD_DATA_LO_SHIFT) & LCD_DATA_LO_MASK); \
LCD_DATA_HI_PORT = (LCD_DATA_HI_PORT & ~LCD_DATA_HI_MASK) | (((d)<<LCD_DATA_HI_SHIFT) & LCD_DATA_HI_MASK); \
} while (0)
-/*
!
Set data bus direction to output (write to display) */
+/*
*
Set data bus direction to output (write to display) */
#define LCD_DB_OUT \
do { \
LCD_DATA_LO_DDR |= LCD_DATA_LO_MASK; \
LCD_DATA_HI_DDR |= LCD_DATA_HI_MASK; \
} while (0)
#define LCD_DB_OUT \
do { \
LCD_DATA_LO_DDR |= LCD_DATA_LO_MASK; \
LCD_DATA_HI_DDR |= LCD_DATA_HI_MASK; \
} while (0)
-/*
!
Set data bus direction to input (read from display) */
+/*
*
Set data bus direction to input (read from display) */
#define LCD_DB_IN \
do { \
LCD_DATA_LO_DDR &= ~LCD_DATA_LO_MASK; \
LCD_DATA_HI_DDR &= ~LCD_DATA_HI_MASK; \
} while (0)
#define LCD_DB_IN \
do { \
LCD_DATA_LO_DDR &= ~LCD_DATA_LO_MASK; \
LCD_DATA_HI_DDR &= ~LCD_DATA_HI_MASK; \
} while (0)
-/*
!
Delay for tEW (160ns) */
+/*
*
Delay for tEW (160ns) */
#define LCD_DELAY_WRITE \
do { \
NOP; \
NOP; \
} while (0)
#define LCD_DELAY_WRITE \
do { \
NOP; \
NOP; \
} while (0)
-/*
!
Delay for tACC6 (180ns) */
+/*
*
Delay for tACC6 (180ns) */
#define LCD_DELAY_READ \
do { \
NOP; \
#define LCD_DELAY_READ \
do { \
NOP; \
@@
-172,7
+175,7
@@
} while (0)
} while (0)
-/*
!
+/*
*
* \name 32122A Commands
* @{
*/
* \name 32122A Commands
* @{
*/
@@
-199,7
+202,7
@@
MOD_DEFINE(lcd)
#define LCDF_BUSY BV(7)
#if CONFIG_LCD_WAIT
#define LCDF_BUSY BV(7)
#if CONFIG_LCD_WAIT
-/*
!
+/*
*
* \code
* __ __
* RS __\____________/__
* \code
* __ __
* RS __\____________/__
@@
-236,7
+239,7
@@
MOD_DEFINE(lcd)
#endif /* CONFIG_LCD_WAIT */
#endif /* CONFIG_LCD_WAIT */
-/*
!
+/*
*
* Raster buffer to draw into.
*
* Bits in the bitmap bytes have vertical orientation,
* Raster buffer to draw into.
*
* Bits in the bitmap bytes have vertical orientation,
@@
-246,13
+249,13
@@
DECLARE_WALL(wall_before_raster, WALL_SIZE)
static uint8_t lcd_raster[RASTER_SIZE(LCD_WIDTH, LCD_HEIGHT)];
DECLARE_WALL(wall_after_raster, WALL_SIZE)
static uint8_t lcd_raster[RASTER_SIZE(LCD_WIDTH, LCD_HEIGHT)];
DECLARE_WALL(wall_after_raster, WALL_SIZE)
-/*
!
Default LCD bitmap */
+/*
*
Default LCD bitmap */
struct Bitmap lcd_bitmap;
#if CONFIG_LCD_SOFTINT_REFRESH
struct Bitmap lcd_bitmap;
#if CONFIG_LCD_SOFTINT_REFRESH
-/*
!
Timer for regular LCD refresh */
+/*
*
Timer for regular LCD refresh */
static Timer *lcd_refresh_timer;
#endif /* CONFIG_LCD_SOFTINT_REFRESH */
static Timer *lcd_refresh_timer;
#endif /* CONFIG_LCD_SOFTINT_REFRESH */
@@
-311,7
+314,7
@@
static inline uint8_t lcd_read(uint8_t chip)
WAIT_LCD;
WAIT_LCD;
- /*
!
+ /*
*
* \code
* __________________
* A0 __/ \__
* \code
* __________________
* A0 __/ \__
@@
-343,7
+346,7
@@
static inline void lcd_write(uint8_t c, uint8_t chip)
{
WAIT_LCD;
{
WAIT_LCD;
- /*
!
+ /*
*
* \code
* __________________
* A0 ___/ \___
* \code
* __________________
* A0 ___/ \___
@@
-367,7
+370,7
@@
static inline void lcd_write(uint8_t c, uint8_t chip)
}
}
-/*
!
+/*
*
* Set LCD contrast PWM.
*/
void lcd_setPwm(int duty)
* Set LCD contrast PWM.
*/
void lcd_setPwm(int duty)
@@
-440,7
+443,7
@@
static void lcd_refreshSoftint(void)
#endif /* CONFIG_LCD_SOFTINT_REFRESH */
#endif /* CONFIG_LCD_SOFTINT_REFRESH */
-/*
!
+/*
*
* Initialize LCD subsystem.
*
* \note The PWM used for LCD contrast is initialized in drv/pwm.c
* Initialize LCD subsystem.
*
* \note The PWM used for LCD contrast is initialized in drv/pwm.c
diff --git
a/drv/lcd_gfx.h
b/drv/lcd_gfx.h
index 98cdfe1eed13ae829e601ed3d6afa7be46aac83b..77bf8f8f3e9b4f2f393e95edf0767c3df5196154 100755
(executable)
--- a/
drv/lcd_gfx.h
+++ b/
drv/lcd_gfx.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.6 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.5 2006/04/27 05:40:11 bernie
*#* Naming convention fixes; Partial merge from project_grl.
*#*
*#* Revision 1.5 2006/04/27 05:40:11 bernie
*#* Naming convention fixes; Partial merge from project_grl.
*#*
diff --git
a/drv/lcd_gfx_qt.cpp
b/drv/lcd_gfx_qt.cpp
index 16d1eab8660bc83aa11cc470844190f93f1afdac..48456fce9afa2d219e91460926ef4d7daa123ab2 100755
(executable)
--- a/
drv/lcd_gfx_qt.cpp
+++ b/
drv/lcd_gfx_qt.cpp
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.9 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.8 2006/05/28 12:17:57 bernie
*#* Drop almost all the Qt3 cruft.
*#*
*#* Revision 1.8 2006/05/28 12:17:57 bernie
*#* Drop almost all the Qt3 cruft.
*#*
@@
-144,7
+147,7
@@
DECLARE_WALL(wall_before_raster, WALL_SIZE)
static uint8_t lcd_raster[RASTER_SIZE(EmulLCD::WIDTH, EmulLCD::HEIGHT)];
DECLARE_WALL(wall_after_raster, WALL_SIZE)
static uint8_t lcd_raster[RASTER_SIZE(EmulLCD::WIDTH, EmulLCD::HEIGHT)];
DECLARE_WALL(wall_after_raster, WALL_SIZE)
-/*
!
Default LCD bitmap */
+/*
*
Default LCD bitmap */
struct Bitmap lcd_bitmap;
/*extern "C"*/ void lcd_init(void)
struct Bitmap lcd_bitmap;
/*extern "C"*/ void lcd_init(void)
diff --git
a/drv/lcd_hd44.c
b/drv/lcd_hd44.c
index ecfea365aa3b6df26bbbffbb28b4dd0df5f961bd..de7bdf7af4f0e9910afa81a11d5162c83545cfad 100755
(executable)
--- a/
drv/lcd_hd44.c
+++ b/
drv/lcd_hd44.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:00:42 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:00:42 bernie
*#* Import into DevLib.
*#*
@@
-46,10
+49,10
@@
#error Incomplete or missing LCD_READ/LCD_WRITE macros
#endif
#error Incomplete or missing LCD_READ/LCD_WRITE macros
#endif
-/*
!
Flag di stato del display */
+/*
*
Flag di stato del display */
#define LCDF_BUSY BV(7)
#define LCDF_BUSY BV(7)
-/*
!
+/*
*
* Addresses of LCD display character positions, expanded
* for faster access (DB7 = 1).
*/
* Addresses of LCD display character positions, expanded
* for faster access (DB7 = 1).
*/
@@
-97,7
+100,7
@@
static const uint8_t lcd_address[] =
STATIC_ASSERT(countof(lcd_address) == LCD_ROWS * LCD_COLS);
STATIC_ASSERT(countof(lcd_address) == LCD_ROWS * LCD_COLS);
-/*
!
+/*
*
* Current display position. We remember this to optimize
* LCD output by avoiding to set the address every time.
*/
* Current display position. We remember this to optimize
* LCD output by avoiding to set the address every time.
*/
@@
-260,7
+263,7
@@
extern uint8_t Emul_LCDReadData(void);
#endif /* ARCH_EMUL */
#endif /* ARCH_EMUL */
-/*
!
+/*
*
* Wait until the LCD busy flag clears.
*/
void lcd_waitBusy(void)
* Wait until the LCD busy flag clears.
*/
void lcd_waitBusy(void)
@@
-274,7
+277,7
@@
void lcd_waitBusy(void)
}
}
-/*
!
+/*
*
* Move the cursor to \a addr, only if not already there.
*/
void lcd_moveTo(uint8_t addr)
* Move the cursor to \a addr, only if not already there.
*/
void lcd_moveTo(uint8_t addr)
@@
-288,7
+291,7
@@
void lcd_moveTo(uint8_t addr)
}
}
-/*
!
+/*
*
* Write a value in LCD data register, waiting for the busy flag.
*/
void lcd_setReg(uint8_t val)
* Write a value in LCD data register, waiting for the busy flag.
*/
void lcd_setReg(uint8_t val)
@@
-298,7
+301,7
@@
void lcd_setReg(uint8_t val)
}
#include <cfg/debug.h>
}
#include <cfg/debug.h>
-/*
!
+/*
*
* Write the character \a c on display address \a addr.
*
* NOTE: argh, the HD44 lcd type is a bad beast: our
* Write the character \a c on display address \a addr.
*
* NOTE: argh, the HD44 lcd type is a bad beast: our
@@
-324,7
+327,7
@@
void lcd_putc(uint8_t addr, uint8_t c)
}
}
-/*
!
+/*
*
* Remap the glyph of a character.
*
* glyph - bitmap of 8x8 bits.
* Remap the glyph of a character.
*
* glyph - bitmap of 8x8 bits.
diff --git
a/drv/lcd_hd44.h
b/drv/lcd_hd44.h
index 0413bed6af27ac9659d82ea4b4ce0cb1c69ec4c3..9a0d4b121e9a114563bacf02dcdd914c581c6d82 100755
(executable)
--- a/
drv/lcd_hd44.h
+++ b/
drv/lcd_hd44.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:00:42 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:00:42 bernie
*#* Import into DevLib.
*#*
@@
-38,7
+41,7
@@
#include <cfg/compiler.h> /* For stdint types */
#include <cfg/compiler.h> /* For stdint types */
-/*
!
+/*
*
* \name Display dimensions (in chars)
* \{
*/
* \name Display dimensions (in chars)
* \{
*/
@@
-46,19
+49,19
@@
#define LCD_COLS 16
/* \} */
#define LCD_COLS 16
/* \} */
-/*
!
+/*
*
* \name Hitachi HD44 commands.
* \{
*/
#define LCD_CMD_DISPLAY_INI 0x30
* \name Hitachi HD44 commands.
* \{
*/
#define LCD_CMD_DISPLAY_INI 0x30
-//#define LCD_CMD_SETFUNC 0x38 /*
!
< 8 bits, 2 lines, 5x7 dots */
-#define LCD_CMD_SETFUNC 0x28 /*
!
< 4 bits, 2 lines, 5x7 dots */
-#define LCD_CMD_DISPLAY_ON 0x0F /*
!
< Switch on display */
-#define LCD_CMD_DISPLAY_OFF 0x08 /*
!
< Switch off display */
-#define LCD_CMD_CLEAR 0x01 /*
!
< Clear display */
-#define LCD_CMD_CURSOR_BLOCK 0x0D /*
!
< Show cursor (block) */
-#define LCD_CMD_CURSOR_LINE 0x0F /*
!
< Show cursor (line) */
-#define LCD_CMD_CURSOR_OFF 0x0C /*
!
< Hide cursor */
+//#define LCD_CMD_SETFUNC 0x38 /*
*
< 8 bits, 2 lines, 5x7 dots */
+#define LCD_CMD_SETFUNC 0x28 /*
*
< 4 bits, 2 lines, 5x7 dots */
+#define LCD_CMD_DISPLAY_ON 0x0F /*
*
< Switch on display */
+#define LCD_CMD_DISPLAY_OFF 0x08 /*
*
< Switch off display */
+#define LCD_CMD_CLEAR 0x01 /*
*
< Clear display */
+#define LCD_CMD_CURSOR_BLOCK 0x0D /*
*
< Show cursor (block) */
+#define LCD_CMD_CURSOR_LINE 0x0F /*
*
< Show cursor (line) */
+#define LCD_CMD_CURSOR_OFF 0x0C /*
*
< Hide cursor */
#define LCD_CMD_DISPLAYMODE 0x06
#define LCD_CMD_SET_CGRAMADDR 0x40
#define LCD_CMD_RESET_DDRAM 0x80
#define LCD_CMD_DISPLAYMODE 0x06
#define LCD_CMD_SET_CGRAMADDR 0x40
#define LCD_CMD_RESET_DDRAM 0x80
@@
-68,7
+71,7
@@
#define LCD_CMD_MOVESHIFT_RIGHT 0x04
/*\}*/
#define LCD_CMD_MOVESHIFT_RIGHT 0x04
/*\}*/
-/*
!
Type for combined LCD cursor position (x,y). */
+/*
*
Type for combined LCD cursor position (x,y). */
typedef uint8_t lcdpos_t;
void lcd_waitBusy(void);
typedef uint8_t lcdpos_t;
void lcd_waitBusy(void);
diff --git
a/drv/lcd_text.c
b/drv/lcd_text.c
index 0527e520696d2e542c825fab2f21b1d4e873d281..232c1498cd7b10c8e51d2b82e55d5b7314e93e56 100755
(executable)
--- a/
drv/lcd_text.c
+++ b/
drv/lcd_text.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.3 2006/07/19 12:56:25 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.2 2006/02/24 00:27:14 bernie
*#* Use new naming convention for list macros.
*#*
*#* Revision 1.2 2006/02/24 00:27:14 bernie
*#* Use new naming convention for list macros.
*#*
@@
-52,11
+55,11
@@
#include <string.h> // strlen()
#include <string.h> // strlen()
-/*
!
Maximum number of layers. */
+/*
*
Maximum number of layers. */
#define LCD_LAYERS 6
#if CONFIG_KERNEL
#define LCD_LAYERS 6
#if CONFIG_KERNEL
- /*
!
Semaphore to arbitrate access to the display. */
+ /*
*
Semaphore to arbitrate access to the display. */
static struct Semaphore lcd_semaphore;
#define LOCK_LCD sem_obtain(&lcd_semaphore)
#define UNLOCK_LCD sem_release(&lcd_semaphore)
static struct Semaphore lcd_semaphore;
#define LOCK_LCD sem_obtain(&lcd_semaphore)
#define UNLOCK_LCD sem_release(&lcd_semaphore)
@@
-72,14
+75,14
@@
static Layer lcd_LayersPool[LCD_LAYERS];
static LIST_TYPE(Layer) lcd_Layers;
static LIST_TYPE(Layer) lcd_FreeLayers;
static LIST_TYPE(Layer) lcd_Layers;
static LIST_TYPE(Layer) lcd_FreeLayers;
-/*
!
+/*
*
* Current cursor status.
*
* One of LCD_CMD_CURSOR_OFF, LCD_CMD_CURSOR_BLOCK or LCD_CMD_CURSOR_LINE.
*/
static uint8_t lcd_CursorStatus;
* Current cursor status.
*
* One of LCD_CMD_CURSOR_OFF, LCD_CMD_CURSOR_BLOCK or LCD_CMD_CURSOR_LINE.
*/
static uint8_t lcd_CursorStatus;
-/*
!
Current cursor position, encoded as a Cursor position and status. */
+/*
*
Current cursor position, encoded as a Cursor position and status. */
static lcdpos_t lcd_CursorAddr;
static lcdpos_t lcd_CursorAddr;
@@
-108,7
+111,7
@@
void lcd_unlock(void)
#endif /* CONFIG_KERNEL */
#endif /* CONFIG_KERNEL */
-/*
!
+/*
*
* Write one character to the display at the current
* cursor prosition, then move the cursor right. The
* cursor is wrapped to the next line when it moves
* Write one character to the display at the current
* cursor prosition, then move the cursor right. The
* cursor is wrapped to the next line when it moves
@@
-280,7
+283,7
@@
int lcd_printf(Layer *layer, lcdpos_t addr, uint8_t mode, const char *format, ..
}
}
-/*
!
+/*
*
* Internal function to move a layer between two positions.
*
* \note The layer must be *already* enqueued in some list.
* Internal function to move a layer between two positions.
*
* \note The layer must be *already* enqueued in some list.
@@
-330,7
+333,7
@@
Layer *lcd_newLayer(char pri)
return layer;
}
return layer;
}
-/*
!
+/*
*
* Redraw the display (internal).
*
* \note The display must be already locked.
* Redraw the display (internal).
*
* \note The display must be already locked.
@@
-363,7
+366,7
@@
static void lcd_refresh(void)
}
}
}
}
-/*
!
+/*
*
* Rearrange layer depth and refresh display accordingly.
*
* \note Setting a priority of LAYER_HIDDEN makes the layer invisible.
* Rearrange layer depth and refresh display accordingly.
*
* \note Setting a priority of LAYER_HIDDEN makes the layer invisible.
diff --git
a/drv/lcd_text.h
b/drv/lcd_text.h
index 3318297263697e0785f59a9c48f34e191814f7da..4f138471d1bdac5915bd6a7ef193b78e10784f4f 100755
(executable)
--- a/
drv/lcd_text.h
+++ b/
drv/lcd_text.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.3 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.2 2006/02/23 10:59:14 bernie
*#* Documentation fixes.
*#*
*#* Revision 1.2 2006/02/23 10:59:14 bernie
*#* Documentation fixes.
*#*
@@
-54,7
+57,7
@@
#define LCD_CENTER BV(1) /* Center string in line */
#define LCD_NOCURSOR BV(2) /* Scrittura senza spostamento cursore */
#define LCD_CENTER BV(1) /* Center string in line */
#define LCD_NOCURSOR BV(2) /* Scrittura senza spostamento cursore */
-/*
!
Special priority value for lcd_setLayerDepth(). */
+/*
*
Special priority value for lcd_setLayerDepth(). */
#define LAYER_HIDDEN -128
/* Compute LCD address from x/y coordinates */
#define LAYER_HIDDEN -128
/* Compute LCD address from x/y coordinates */
@@
-64,21
+67,21
@@
#define LCD_ROW2 (LCD_COLS * 2)
#define LCD_ROW3 (LCD_COLS * 3)
#define LCD_ROW2 (LCD_COLS * 2)
#define LCD_ROW3 (LCD_COLS * 3)
-/*
!
+/*
*
* Overwrapping layer context.
*/
typedef struct _Layer
{
* Overwrapping layer context.
*/
typedef struct _Layer
{
- /*
!
+ /*
*
* Active layers are linked together in a list
* sorted in top to bottom order.
*/
DECLARE_NODE_ANON(struct _Layer)
* Active layers are linked together in a list
* sorted in top to bottom order.
*/
DECLARE_NODE_ANON(struct _Layer)
- /*
!
Current XY address into this layer, for write operations. */
+ /*
*
Current XY address into this layer, for write operations. */
lcdpos_t addr;
lcdpos_t addr;
- /*
!
Priority of this layer (greater in front of lesser). */
+ /*
*
Priority of this layer (greater in front of lesser). */
char pri;
/**
char pri;
/**
diff --git
a/drv/ntc.c
b/drv/ntc.c
index 5f024037bef3070bedce94697aa86b0078345576..dec27c161a2b05a413498c75106432cf9ed6e6a0 100755
(executable)
--- a/
drv/ntc.c
+++ b/
drv/ntc.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.de+veler.com/)
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.de+veler.com/)
@@
-20,6
+20,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 17:59:47 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 17:59:47 bernie
*#* Import into DevLib.
*#*
@@
-35,7
+38,7
@@
DB(bool ntc_initialized;)
DB(bool ntc_initialized;)
-/*
!
+/*
*
* Find in a table of values \a orig_table of size \a size, the index which
* value is less or equal to \a val.
*
* Find in a table of values \a orig_table of size \a size, the index which
* value is less or equal to \a val.
*
@@
-63,7
+66,7
@@
static size_t upper_bound(const res_t *orig_table, size_t size, res_t val)
}
}
-/*
!
+/*
*
* Read the temperature for the NTC channel \a dev.
* First read the resistence of the NTC through ntc_hw_read(), then,
* for the conversion from resistance to temperature, since the formula
* Read the temperature for the NTC channel \a dev.
* First read the resistence of the NTC through ntc_hw_read(), then,
* for the conversion from resistance to temperature, since the formula
@@
-122,7
+125,7
@@
deg_t ntc_read(NtcDev dev)
}
}
-/*
!
+/*
*
* Init NTC hardware.
*/
void ntc_init(void)
* Init NTC hardware.
*/
void ntc_init(void)
diff --git
a/drv/ntc.h
b/drv/ntc.h
index bf221369a1a116c9f1e14f67c5add7a55df7a3f5..0ad7884ff4c6db20b0d0be68eefafb98a57418b0 100755
(executable)
--- a/
drv/ntc.h
+++ b/
drv/ntc.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 17:59:47 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 17:59:47 bernie
*#* Import into DevLib.
*#*
@@
-38,40
+41,40
@@
#define NTC_OPEN_CIRCUIT -32768
#define NTC_SHORT_CIRCUIT 32767
#define NTC_OPEN_CIRCUIT -32768
#define NTC_SHORT_CIRCUIT 32767
-typedef int16_t deg_t; /*
!
type for celsius degrees deg_t = °C * 10 */
+typedef int16_t deg_t; /*
*
type for celsius degrees deg_t = °C * 10 */
-/*
!
Macro for converting from deg to deg_t type */
+/*
*
Macro for converting from deg to deg_t type */
#define DEG_TO_DEG_T(x) ((deg_t)((x) * 10))
#define DEG_TO_DEG_T(x) ((deg_t)((x) * 10))
-/*
!
Macro for converting from deg_t to celsius degrees (returns only the integer part) */
+/*
*
Macro for converting from deg_t to celsius degrees (returns only the integer part) */
#define DEG_T_TO_INTDEG(x) ((x) / 10)
#define DEG_T_TO_INTDEG(x) ((x) / 10)
-/*
!
Macro for converting from deg_t to celsius degrees (returns only the decimal part) */
+/*
*
Macro for converting from deg_t to celsius degrees (returns only the decimal part) */
#define DEG_T_TO_DECIMALDEG(x) ((x) % 10)
#define DEG_T_TO_DECIMALDEG(x) ((x) % 10)
-/*
!
Macro for converting from deg_t to celsius degrees (returns type is float) */
+/*
*
Macro for converting from deg_t to celsius degrees (returns type is float) */
#define DEG_T_TO_FLOATDEG(x) ((x) / 10.0)
#define DEG_T_TO_FLOATDEG(x) ((x) / 10.0)
-typedef uint32_t res_t; /*
!
type for resistor res_t = Ohm * 100 */
-typedef float amp_t; /*
!
type for defining amplifications amp_t = A, where A is a pure number */
+typedef uint32_t res_t; /*
*
type for resistor res_t = Ohm * 100 */
+typedef float amp_t; /*
*
type for defining amplifications amp_t = A, where A is a pure number */
DB(extern bool ntc_initialized;)
DB(extern bool ntc_initialized;)
-/*
!
Describe a NTC chip */
+/*
*
Describe a NTC chip */
typedef struct NtcHwInfo
{
typedef struct NtcHwInfo
{
- const res_t *resistances; //
!
< resistances of the NTC (ohms * 100)
- size_t num_resistances; //
!
< number of resistances
- deg_t degrees_min; //
!
< degrees corresponding to the first entry in the table (celsius * 10)
- deg_t degrees_step; //
!
< difference in degrees between two consecutive elements in the table (celsius * 10)
+ const res_t *resistances; //
/
< resistances of the NTC (ohms * 100)
+ size_t num_resistances; //
/
< number of resistances
+ deg_t degrees_min; //
/
< degrees corresponding to the first entry in the table (celsius * 10)
+ deg_t degrees_step; //
/
< difference in degrees between two consecutive elements in the table (celsius * 10)
} NtcHwInfo;
} NtcHwInfo;
-/*
!
Initialize the NTC module */
+/*
*
Initialize the NTC module */
void ntc_init(void);
void ntc_init(void);
-/*
!
Read a single temperature value from the NTC */
+/*
*
Read a single temperature value from the NTC */
deg_t ntc_read(NtcDev dev);
#endif /* DRV_NTC_H */
deg_t ntc_read(NtcDev dev);
#endif /* DRV_NTC_H */
diff --git
a/drv/phase.c
b/drv/phase.c
index e92bed5ae085375bf03bf0c97517fcc678e63316..40d50badc331f73d6836420bb14d4dcf16daef5b 100755
(executable)
--- a/
drv/phase.c
+++ b/
drv/phase.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:06:44 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:06:44 bernie
*#* Import into DevLib.
*#*
@@
-77,12
+80,12
@@
#include <math.h>
#include <math.h>
-/*
!
Array of triacs */
+/*
*
Array of triacs */
static Triac triacs[TRIAC_CNT];
DB(bool phase_initialized;)
static Triac triacs[TRIAC_CNT];
DB(bool phase_initialized;)
-/*
!
+/*
*
* Zerocross interrupt, call when 220V cross zero.
*
* This function turn off all triacs that have duty < 100%
* Zerocross interrupt, call when 220V cross zero.
*
* This function turn off all triacs that have duty < 100%
@@
-122,7
+125,7
@@
DEFINE_ZEROCROSS_ISR()
-/*
!
+/*
*
* Set duty of the triac channel \a dev (interrupt safe).
*/
void phase_setDuty(TriacDev dev, triac_duty_t duty)
* Set duty of the triac channel \a dev (interrupt safe).
*/
void phase_setDuty(TriacDev dev, triac_duty_t duty)
@@
-137,7
+140,7
@@
void phase_setDuty(TriacDev dev, triac_duty_t duty)
-/*
!
+/*
*
* Set duty of the triac channel \a dev (NOT INTERRUPT SAFE).
*/
void phase_setDutyUnlock(TriacDev dev, triac_duty_t duty)
* Set duty of the triac channel \a dev (NOT INTERRUPT SAFE).
*/
void phase_setDutyUnlock(TriacDev dev, triac_duty_t duty)
@@
-147,7
+150,7
@@
void phase_setDutyUnlock(TriacDev dev, triac_duty_t duty)
-/*
!
+/*
*
* Set power of the triac channel \a dev (interrupt safe).
*
* This function approsimate the sine wave to a triangular wave to compute
* Set power of the triac channel \a dev (interrupt safe).
*
* This function approsimate the sine wave to a triangular wave to compute
@@
-175,7
+178,7
@@
void phase_setPower(TriacDev dev, triac_power_t power)
-/*
!
+/*
*
* Soft int for each \a _dev triac.
*
* The triacs are turned on at different time to achieve phase control.
* Soft int for each \a _dev triac.
*
* The triacs are turned on at different time to achieve phase control.
@@
-192,7
+195,7
@@
static void phase_softint(void *_dev)
-/*
!
+/*
*
* Initialize phase control driver
*/
void phase_init(void)
* Initialize phase control driver
*/
void phase_init(void)
diff --git
a/drv/phase.h
b/drv/phase.h
index 70e44e57e85cd570a74f7a9f69cca4fc272b0526..de5b01bd0f1a7ffe71262b123c9a39c4920f07f1 100755
(executable)
--- a/
drv/phase.h
+++ b/
drv/phase.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:06:44 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:06:44 bernie
*#* Import into DevLib.
*#*
@@
-58,7
+61,7
@@
#define TRIAC_MAX_POWER 100
#define TRIAC_POWER_K TRIAC_MAX_DUTY * (1 / sqrt(2 * TRIAC_MAX_POWER))
#define TRIAC_MAX_POWER 100
#define TRIAC_POWER_K TRIAC_MAX_DUTY * (1 / sqrt(2 * TRIAC_MAX_POWER))
-/*
!
+/*
*
* \name Types for duty and power.
* \{
*/
* \name Types for duty and power.
* \{
*/
@@
-69,15
+72,15
@@
typedef uint16_t triac_power_t;
DB(extern bool phase_initialized;)
DB(extern bool phase_initialized;)
-/*
!
+/*
*
* \name Type for triac control.
* \{
*/
typedef struct Triac
{
* \name Type for triac control.
* \{
*/
typedef struct Triac
{
- Timer timer; /*
!
< Timer for phase control. */
- triac_duty_t duty; /*
!
< Duty cycle of the channel. */
- bool running; /*
!
< True when the timer is active. */
+ Timer timer; /*
*
< Timer for phase control. */
+ triac_duty_t duty; /*
*
< Duty cycle of the channel. */
+ bool running; /*
*
< True when the timer is active. */
} Triac;
/* \} */
} Triac;
/* \} */
diff --git
a/drv/pwm.c
b/drv/pwm.c
index 452e94136cb57e82a303f363687324307d2b48c8..94d3bff5761a058ca8aff41877661bf1008c4adb 100755
(executable)
--- a/
drv/pwm.c
+++ b/
drv/pwm.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:08:49 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:08:49 bernie
*#* Import into DevLib.
*#*
@@
-41,7
+44,7
@@
#include <drv/pwm.h>
#include <cfg/macros.h>
#include <drv/pwm.h>
#include <cfg/macros.h>
-/*
!
+/*
*
* Set duty of pwm channel \a dev.
*/
void pwm_setDuty(PwmDev dev, pwm_duty_t duty)
* Set duty of pwm channel \a dev.
*/
void pwm_setDuty(PwmDev dev, pwm_duty_t duty)
@@
-51,7
+54,7
@@
void pwm_setDuty(PwmDev dev, pwm_duty_t duty)
pwm_hw_setDutyUnlock(dev, duty);
}
pwm_hw_setDutyUnlock(dev, duty);
}
-/*
!
+/*
*
* Initialize PWM hw.
*/
void pwm_init(void)
* Initialize PWM hw.
*/
void pwm_init(void)
diff --git
a/drv/pwm.h
b/drv/pwm.h
index 971ad4a84cceeca3c717e22edfc8c275c9208c77..4589599546ffc5621261052e5993afe9072630cf 100755
(executable)
--- a/
drv/pwm.h
+++ b/
drv/pwm.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:08:49 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:08:49 bernie
*#* Import into DevLib.
*#*
diff --git
a/drv/ser.c
b/drv/ser.c
index 02e3e2d1519006252875ed28fb9891f7a64e77a3..00988feec73d0395221a0b1f32beeefa0483d3aa 100755
(executable)
--- a/
drv/ser.c
+++ b/
drv/ser.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-28,6
+28,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.30 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.29 2006/05/18 00:39:30 bernie
*#* ser_open(): Document a bit more.
*#*
*#* Revision 1.29 2006/05/18 00:39:30 bernie
*#* ser_open(): Document a bit more.
*#*
@@
-153,15
+156,15
@@
/* Serial configuration parameters */
/* Serial configuration parameters */
-#define SER_CTSDELAY 70 /*
!
< CTS line retry interval (ms) */
-#define SER_TXPOLLDELAY 2 /*
!
< Transmit buffer full retry interval (ms) */
-#define SER_RXPOLLDELAY 2 /*
!
< Receive buffer empty retry interval (ms) */
+#define SER_CTSDELAY 70 /*
*
< CTS line retry interval (ms) */
+#define SER_TXPOLLDELAY 2 /*
*
< Transmit buffer full retry interval (ms) */
+#define SER_RXPOLLDELAY 2 /*
*
< Receive buffer empty retry interval (ms) */
struct Serial ser_handles[SER_CNT];
struct Serial ser_handles[SER_CNT];
-/*
!
+/*
*
* Inserisce il carattere c nel buffer di trasmissione.
* Questa funzione mette il processo chiamante in attesa
* quando il buffer e' pieno.
* Inserisce il carattere c nel buffer di trasmissione.
* Questa funzione mette il processo chiamante in attesa
* quando il buffer e' pieno.
@@
-206,7
+209,7
@@
int ser_putchar(int c, struct Serial *port)
}
}
-/*
!
+/*
*
* Preleva un carattere dal buffer di ricezione.
* Questa funzione mette il processo chiamante in attesa
* quando il buffer e' vuoto. L'attesa ha un timeout
* Preleva un carattere dal buffer di ricezione.
* Questa funzione mette il processo chiamante in attesa
* quando il buffer e' vuoto. L'attesa ha un timeout
@@
-250,7
+253,7
@@
int ser_getchar(struct Serial *port)
}
}
-/*
!
+/*
*
* Preleva un carattere dal buffer di ricezione.
* Se il buffer e' vuoto, ser_getchar_nowait() ritorna
* immediatamente EOF.
* Preleva un carattere dal buffer di ricezione.
* Se il buffer e' vuoto, ser_getchar_nowait() ritorna
* immediatamente EOF.
@@
-266,7
+269,7
@@
int ser_getchar_nowait(struct Serial *port)
#if CONFIG_SER_GETS
#if CONFIG_SER_GETS
-/*
!
+/*
*
* Read a line long at most as size and put it
* in buf.
* \return number of chars read or EOF in case
* Read a line long at most as size and put it
* in buf.
* \return number of chars read or EOF in case
@@
-278,7
+281,7
@@
int ser_gets(struct Serial *port, char *buf, int size)
}
}
-/*
!
+/*
*
* Read a line long at most as size and put it
* in buf, with optional echo.
*
* Read a line long at most as size and put it
* in buf, with optional echo.
*
@@
-316,7
+319,7
@@
int ser_gets_echo(struct Serial *port, char *buf, int size, bool echo)
#endif /* !CONFIG_SER_GETS */
#endif /* !CONFIG_SER_GETS */
-/*
!
+/*
*
* Read at most \a size bytes from \a port and put them in \a buf
*
* \return number of bytes actually read, or EOF in
* Read at most \a size bytes from \a port and put them in \a buf
*
* \return number of bytes actually read, or EOF in
@@
-339,7
+342,7
@@
int ser_read(struct Serial *port, void *buf, size_t size)
}
}
-/*
!
+/*
*
* Write a string to serial.
* \return 0 if OK, EOF in case of error.
*/
* Write a string to serial.
* \return 0 if OK, EOF in case of error.
*/
@@
-354,7
+357,7
@@
int ser_print(struct Serial *port, const char *s)
}
}
-/*
!
+/*
*
* \brief Write a buffer to serial.
*
* \return 0 if OK, EOF in case of error.
* \brief Write a buffer to serial.
*
* \return 0 if OK, EOF in case of error.
@@
-375,7
+378,7
@@
int ser_write(struct Serial *port, const void *_buf, size_t len)
#if CONFIG_PRINTF
#if CONFIG_PRINTF
-/*
!
+/*
*
* Formatted write
*/
int ser_printf(struct Serial *port, const char *format, ...)
* Formatted write
*/
int ser_printf(struct Serial *port, const char *format, ...)
@@
-401,7
+404,7
@@
void ser_settimeouts(struct Serial *port, mtime_t rxtimeout, mtime_t txtimeout)
#endif /* CONFIG_SER_RXTIMEOUT || CONFIG_SER_TXTIMEOUT */
#if CONFIG_SER_RXTIMEOUT != -1
#endif /* CONFIG_SER_RXTIMEOUT || CONFIG_SER_TXTIMEOUT */
#if CONFIG_SER_RXTIMEOUT != -1
-/*
!
+/*
*
* Discard input to resynchronize with remote end.
*
* Discard incoming data until the port stops receiving
* Discard input to resynchronize with remote end.
*
* Discard incoming data until the port stops receiving
@@
-440,7
+443,7
@@
void ser_setparity(struct Serial *port, int parity)
}
}
-/*
!
+/*
*
* Flush both the RX and TX buffers.
*/
void ser_purge(struct Serial *port)
* Flush both the RX and TX buffers.
*/
void ser_purge(struct Serial *port)
@@
-450,7
+453,7
@@
void ser_purge(struct Serial *port)
}
}
-/*
!
+/*
*
* Wait until all pending output is completely
* transmitted to the other end.
*
* Wait until all pending output is completely
* transmitted to the other end.
*
@@
-475,7
+478,7
@@
void ser_drain(struct Serial *ser)
}
}
-/*
!
+/*
*
* Initialize a serial port.
*
* \param unit Serial unit to open. Possible values are architecture dependant.
* Initialize a serial port.
*
* \param unit Serial unit to open. Possible values are architecture dependant.
@@
-517,7
+520,7
@@
struct Serial *ser_open(unsigned int unit)
}
}
-/*
!
+/*
*
* Clean up serial port, disabling the associated hardware.
*/
void ser_close(struct Serial *port)
* Clean up serial port, disabling the associated hardware.
*/
void ser_close(struct Serial *port)
diff --git
a/drv/ser.h
b/drv/ser.h
index a315562ab01a02fe30c600dd0fedbcf5f6ca3828..f9ff2ddd639afe3e032eed2431be38f4fd845fae 100755
(executable)
--- a/
drv/ser.h
+++ b/
drv/ser.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.27 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.26 2006/05/18 00:39:13 bernie
*#* Add struct Serial friendly typedef.
*#*
*#* Revision 1.26 2006/05/18 00:39:13 bernie
*#* Add struct Serial friendly typedef.
*#*
@@
-99,53
+102,53
@@
#include <cfg/os.h>
#include <appconfig.h>
#include <cfg/os.h>
#include <appconfig.h>
-/*
!
\name Serial Error/status flags. */
+/*
*
\name Serial Error/status flags. */
/*\{*/
#if CPU_AVR
typedef uint8_t serstatus_t;
/* Software errors */
/*\{*/
#if CPU_AVR
typedef uint8_t serstatus_t;
/* Software errors */
- #define SERRF_RXFIFOOVERRUN BV(0) /*
!
< Rx FIFO buffer overrun */
- #define SERRF_RXTIMEOUT BV(5) /*
!
< Receive timeout */
- #define SERRF_TXTIMEOUT BV(6) /*
!
< Transmit timeout */
+ #define SERRF_RXFIFOOVERRUN BV(0) /*
*
< Rx FIFO buffer overrun */
+ #define SERRF_RXTIMEOUT BV(5) /*
*
< Receive timeout */
+ #define SERRF_TXTIMEOUT BV(6) /*
*
< Transmit timeout */
/*
* Hardware errors.
* These flags map directly to the AVR UART Status Register (USR).
*/
/*
* Hardware errors.
* These flags map directly to the AVR UART Status Register (USR).
*/
- #define SERRF_RXSROVERRUN BV(3) /*
!
< Rx shift register overrun */
- #define SERRF_FRAMEERROR BV(4) /*
!
< Stop bit missing */
- #define SERRF_PARITYERROR BV(7) /*
!
< Parity error */
- #define SERRF_NOISEERROR 0 /*
!
< Unsupported */
+ #define SERRF_RXSROVERRUN BV(3) /*
*
< Rx shift register overrun */
+ #define SERRF_FRAMEERROR BV(4) /*
*
< Stop bit missing */
+ #define SERRF_PARITYERROR BV(7) /*
*
< Parity error */
+ #define SERRF_NOISEERROR 0 /*
*
< Unsupported */
#elif CPU_DSP56K
typedef uint16_t serstatus_t;
/* Software errors */
#elif CPU_DSP56K
typedef uint16_t serstatus_t;
/* Software errors */
- #define SERRF_RXFIFOOVERRUN BV(0) /*
!
< Rx FIFO buffer overrun */
- #define SERRF_RXTIMEOUT BV(1) /*
!
< Receive timeout */
- #define SERRF_TXTIMEOUT BV(2) /*
!
< Transmit timeout */
+ #define SERRF_RXFIFOOVERRUN BV(0) /*
*
< Rx FIFO buffer overrun */
+ #define SERRF_RXTIMEOUT BV(1) /*
*
< Receive timeout */
+ #define SERRF_TXTIMEOUT BV(2) /*
*
< Transmit timeout */
/*
* Hardware errors.
* These flags map directly to the SCI Control Register.
*/
/*
* Hardware errors.
* These flags map directly to the SCI Control Register.
*/
- #define SERRF_PARITYERROR BV(8) /*
!
< Parity error */
- #define SERRF_FRAMEERROR BV(9) /*
!
< Stop bit missing */
- #define SERRF_NOISEERROR BV(10) /*
!
< Noise error */
- #define SERRF_RXSROVERRUN BV(11) /*
!
< Rx shift register overrun */
+ #define SERRF_PARITYERROR BV(8) /*
*
< Parity error */
+ #define SERRF_FRAMEERROR BV(9) /*
*
< Stop bit missing */
+ #define SERRF_NOISEERROR BV(10) /*
*
< Noise error */
+ #define SERRF_RXSROVERRUN BV(11) /*
*
< Rx shift register overrun */
#elif OS_HOSTED
typedef uint16_t serstatus_t;
/* Software errors */
#elif OS_HOSTED
typedef uint16_t serstatus_t;
/* Software errors */
- #define SERRF_RXFIFOOVERRUN BV(0) /*
!
< Rx FIFO buffer overrun */
- #define SERRF_RXTIMEOUT BV(1) /*
!
< Receive timeout */
- #define SERRF_TXTIMEOUT BV(2) /*
!
< Transmit timeout */
+ #define SERRF_RXFIFOOVERRUN BV(0) /*
*
< Rx FIFO buffer overrun */
+ #define SERRF_RXTIMEOUT BV(1) /*
*
< Receive timeout */
+ #define SERRF_TXTIMEOUT BV(2) /*
*
< Transmit timeout */
/* Hardware errors */
/* Hardware errors */
- #define SERRF_RXSROVERRUN 0 /*
!
< Unsupported in emulated serial port. */
- #define SERRF_FRAMEERROR 0 /*
!
< Unsupported in emulated serial port. */
- #define SERRF_PARITYERROR 0 /*
!
< Unsupported in emulated serial port. */
- #define SERRF_NOISEERROR 0 /*
!
< Unsupported in emulated serial port. */
+ #define SERRF_RXSROVERRUN 0 /*
*
< Unsupported in emulated serial port. */
+ #define SERRF_FRAMEERROR 0 /*
*
< Unsupported in emulated serial port. */
+ #define SERRF_PARITYERROR 0 /*
*
< Unsupported in emulated serial port. */
+ #define SERRF_NOISEERROR 0 /*
*
< Unsupported in emulated serial port. */
#else
#error unknown architecture
#else
#error unknown architecture
@@
-165,7
+168,7
@@
#define SERRF_TX (SERRF_TXTIMEOUT)
#define SERRF_TX (SERRF_TXTIMEOUT)
-/*
!
+/*
*
* \name Parity settings for ser_setparity().
*
* \note Values are AVR-specific for performance reasons.
* \name Parity settings for ser_setparity().
*
* \note Values are AVR-specific for performance reasons.
@@
-178,7
+181,7
@@
#define SER_PARITY_ODD 3
/*\}*/
#define SER_PARITY_ODD 3
/*\}*/
-/*
!
+/*
*
* \name Serial hw numbers
*
* \{
* \name Serial hw numbers
*
* \{
@@
-203,27
+206,27
@@
enum
#else
#error unknown architecture
#endif
#else
#error unknown architecture
#endif
- SER_CNT /*
!
< Number of serial ports */
+ SER_CNT /*
*
< Number of serial ports */
};
/*\}*/
struct SerialHardware;
};
/*\}*/
struct SerialHardware;
-/*
!
Human-readable serial error descriptions */
+/*
*
Human-readable serial error descriptions */
extern const char * const serial_errors[8];
extern const char * const serial_errors[8];
-/*
!
Serial handle structure */
+/*
*
Serial handle structure */
typedef struct Serial
{
typedef struct Serial
{
- /*
!
Physical port number */
+ /*
*
Physical port number */
unsigned int unit;
#ifdef _DEBUG
bool is_open;
#endif
unsigned int unit;
#ifdef _DEBUG
bool is_open;
#endif
- /*
!
+ /*
*
* \name Transmit and receive FIFOs.
*
* Declared volatile because handled asinchronously by interrupts.
* \name Transmit and receive FIFOs.
*
* Declared volatile because handled asinchronously by interrupts.
@@
-241,10
+244,10
@@
typedef struct Serial
mtime_t txtimeout;
#endif
mtime_t txtimeout;
#endif
- /*
!
Holds the flags defined above. Will be 0 when no errors have occurred. */
+ /*
*
Holds the flags defined above. Will be 0 when no errors have occurred. */
serstatus_t status;
serstatus_t status;
- /*
!
Low-level interface to hardware. */
+ /*
*
Low-level interface to hardware. */
struct SerialHardware* hw;
} Serial;
struct SerialHardware* hw;
} Serial;
@@
-273,7
+276,7
@@
extern void ser_drain(struct Serial *port);
extern struct Serial *ser_open(unsigned int unit);
extern void ser_close(struct Serial *port);
extern struct Serial *ser_open(unsigned int unit);
extern void ser_close(struct Serial *port);
-/*
!
+/*
*
* \name Additional functions implemented as macros
*
* \{
* \name Additional functions implemented as macros
*
* \{
diff --git
a/drv/ser_avr.c
b/drv/ser_avr.c
index 2d0ae6d0ddf3dc5287932433ff7ece93d3f926e2..dba54b0c3d571fe4062d953b7f6b4f2639d51f48 100755
(executable)
--- a/
drv/ser_avr.c
+++ b/
drv/ser_avr.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-38,6
+38,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.32 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.31 2006/05/18 00:37:29 bernie
*#* Use hw_ser.h instead of ubiquitous hw.h.
*#*
*#* Revision 1.31 2006/05/18 00:37:29 bernie
*#* Use hw_ser.h instead of ubiquitous hw.h.
*#*
@@
-145,19
+148,19
@@
#if !CONFIG_SER_HWHANDSHAKE
#if !CONFIG_SER_HWHANDSHAKE
- /*
!
+ /*
*
* \name Hardware handshake (RTS/CTS).
* \{
*/
#define RTS_ON do {} while (0)
#define RTS_OFF do {} while (0)
#define IS_CTS_ON true
* \name Hardware handshake (RTS/CTS).
* \{
*/
#define RTS_ON do {} while (0)
#define RTS_OFF do {} while (0)
#define IS_CTS_ON true
- #define EIMSKF_CTS 0 /*
!
< Dummy value, must be overridden */
+ #define EIMSKF_CTS 0 /*
*
< Dummy value, must be overridden */
/*\}*/
#endif
/*\}*/
#endif
-/*
!
+/*
*
* \name Overridable serial bus hooks
*
* These can be redefined in hw.h to implement
* \name Overridable serial bus hooks
*
* These can be redefined in hw.h to implement
@@
-178,7
+181,7
@@
* \{
*/
#ifndef SER_UART0_BUS_TXINIT
* \{
*/
#ifndef SER_UART0_BUS_TXINIT
- /*
!
+ /*
*
* Default TXINIT macro - invoked in uart0_init()
*
* - Enable both the receiver and the transmitter
* Default TXINIT macro - invoked in uart0_init()
*
* - Enable both the receiver and the transmitter
@@
-190,7
+193,7
@@
#endif
#ifndef SER_UART0_BUS_TXBEGIN
#endif
#ifndef SER_UART0_BUS_TXBEGIN
- /*
!
+ /*
*
* Invoked before starting a transmission
*
* - Enable both the receiver and the transmitter
* Invoked before starting a transmission
*
* - Enable both the receiver and the transmitter
@@
-202,7
+205,7
@@
#endif
#ifndef SER_UART0_BUS_TXCHAR
#endif
#ifndef SER_UART0_BUS_TXCHAR
- /*
!
+ /*
*
* Invoked to send one character.
*/
#define SER_UART0_BUS_TXCHAR(c) do { \
* Invoked to send one character.
*/
#define SER_UART0_BUS_TXCHAR(c) do { \
@@
-211,7
+214,7
@@
#endif
#ifndef SER_UART0_BUS_TXEND
#endif
#ifndef SER_UART0_BUS_TXEND
- /*
!
+ /*
*
* Invoked as soon as the txfifo becomes empty
*
* - Keep both the receiver and the transmitter enabled
* Invoked as soon as the txfifo becomes empty
*
* - Keep both the receiver and the transmitter enabled
@@
-224,7
+227,7
@@
#endif
#ifndef SER_UART0_BUS_TXOFF
#endif
#ifndef SER_UART0_BUS_TXOFF
- /*
!
+ /*
*
* \def SER_UART0_BUS_TXOFF
*
* Invoked after the last character has been transmitted
* \def SER_UART0_BUS_TXOFF
*
* Invoked after the last character has been transmitted
@@
-237,31
+240,31
@@
#endif
#ifndef SER_UART1_BUS_TXINIT
#endif
#ifndef SER_UART1_BUS_TXINIT
- /*
!
\sa SER_UART0_BUS_TXINIT */
+ /*
*
\sa SER_UART0_BUS_TXINIT */
#define SER_UART1_BUS_TXINIT do { \
UCSR1B = BV(RXCIE) | BV(RXEN) | BV(TXEN); \
} while (0)
#endif
#ifndef SER_UART1_BUS_TXBEGIN
#define SER_UART1_BUS_TXINIT do { \
UCSR1B = BV(RXCIE) | BV(RXEN) | BV(TXEN); \
} while (0)
#endif
#ifndef SER_UART1_BUS_TXBEGIN
- /*
!
\sa SER_UART0_BUS_TXBEGIN */
+ /*
*
\sa SER_UART0_BUS_TXBEGIN */
#define SER_UART1_BUS_TXBEGIN do { \
UCSR1B = BV(RXCIE) | BV(UDRIE) | BV(RXEN) | BV(TXEN); \
} while (0)
#endif
#ifndef SER_UART1_BUS_TXCHAR
#define SER_UART1_BUS_TXBEGIN do { \
UCSR1B = BV(RXCIE) | BV(UDRIE) | BV(RXEN) | BV(TXEN); \
} while (0)
#endif
#ifndef SER_UART1_BUS_TXCHAR
- /*
!
\sa SER_UART0_BUS_TXCHAR */
+ /*
*
\sa SER_UART0_BUS_TXCHAR */
#define SER_UART1_BUS_TXCHAR(c) do { \
UDR1 = (c); \
} while (0)
#endif
#ifndef SER_UART1_BUS_TXEND
#define SER_UART1_BUS_TXCHAR(c) do { \
UDR1 = (c); \
} while (0)
#endif
#ifndef SER_UART1_BUS_TXEND
- /*
!
\sa SER_UART0_BUS_TXEND */
+ /*
*
\sa SER_UART0_BUS_TXEND */
#define SER_UART1_BUS_TXEND do { \
UCSR1B = BV(RXCIE) | BV(RXEN) | BV(TXEN); \
} while (0)
#endif
#ifndef SER_UART1_BUS_TXOFF
#define SER_UART1_BUS_TXEND do { \
UCSR1B = BV(RXCIE) | BV(RXEN) | BV(TXEN); \
} while (0)
#endif
#ifndef SER_UART1_BUS_TXOFF
- /*
!
+ /*
*
* \def SER_UART1_BUS_TXOFF
*
* \see SER_UART0_BUS_TXOFF
* \def SER_UART1_BUS_TXOFF
*
* \see SER_UART0_BUS_TXOFF
@@
-273,7
+276,7
@@
/*\}*/
/*\}*/
-/*
!
+/*
*
* \name Overridable SPI hooks
*
* These can be redefined in hw.h to implement
* \name Overridable SPI hooks
*
* These can be redefined in hw.h to implement
@@
-282,7
+285,7
@@
* \{
*/
#ifndef SER_SPI_BUS_TXINIT
* \{
*/
#ifndef SER_SPI_BUS_TXINIT
- /*
!
+ /*
*
* Default TXINIT macro - invoked in spi_init()
* The default is no action.
*/
* Default TXINIT macro - invoked in spi_init()
* The default is no action.
*/
@@
-290,7
+293,7
@@
#endif
#ifndef SER_SPI_BUS_TXCLOSE
#endif
#ifndef SER_SPI_BUS_TXCLOSE
- /*
!
+ /*
*
* Invoked after the last character has been transmitted.
* The default is no action.
*/
* Invoked after the last character has been transmitted.
* The default is no action.
*/
@@
-344,7
+347,7
@@
#endif
#endif
-/*
!
+/*
*
* \def CONFIG_SER_STROBE
*
* This is a debug facility that can be used to
* \def CONFIG_SER_STROBE
*
* This is a debug facility that can be used to
@@
-375,7
+378,7
@@
static unsigned char spi_txbuffer[CONFIG_SPI_TXBUFSIZE];
static unsigned char spi_rxbuffer[CONFIG_SPI_RXBUFSIZE];
static unsigned char spi_rxbuffer[CONFIG_SPI_RXBUFSIZE];
-/*
!
+/*
*
* Internal hardware state structure
*
* The \a sending variable is true while the transmission
* Internal hardware state structure
*
* The \a sending variable is true while the transmission
@@
-683,7
+686,7
@@
struct SerialHardware *ser_hw_getdesc(int unit)
#if CONFIG_SER_HWHANDSHAKE
#if CONFIG_SER_HWHANDSHAKE
-//
!
This interrupt is triggered when the CTS line goes high
+//
/
This interrupt is triggered when the CTS line goes high
SIGNAL(SIG_CTS)
{
// Re-enable UDR empty interrupt and TX, then disable CTS interrupt
SIGNAL(SIG_CTS)
{
// Re-enable UDR empty interrupt and TX, then disable CTS interrupt
@@
-694,7
+697,7
@@
SIGNAL(SIG_CTS)
#endif // CONFIG_SER_HWHANDSHAKE
#endif // CONFIG_SER_HWHANDSHAKE
-/*
!
+/*
*
* Serial 0 TX interrupt handler
*/
SIGNAL(SIG_UART0_DATA)
* Serial 0 TX interrupt handler
*/
SIGNAL(SIG_UART0_DATA)
@@
-730,7
+733,7
@@
SIGNAL(SIG_UART0_DATA)
}
#ifdef SER_UART0_BUS_TXOFF
}
#ifdef SER_UART0_BUS_TXOFF
-/*
!
+/*
*
* Serial port 0 TX complete interrupt handler.
*
* This IRQ is usually disabled. The UDR-empty interrupt
* Serial port 0 TX complete interrupt handler.
*
* This IRQ is usually disabled. The UDR-empty interrupt
@@
-765,7
+768,7
@@
SIGNAL(SIG_UART0_TRANS)
#if AVR_HAS_UART1
#if AVR_HAS_UART1
-/*
!
+/*
*
* Serial 1 TX interrupt handler
*/
SIGNAL(SIG_UART1_DATA)
* Serial 1 TX interrupt handler
*/
SIGNAL(SIG_UART1_DATA)
@@
-801,7
+804,7
@@
SIGNAL(SIG_UART1_DATA)
}
#ifdef SER_UART1_BUS_TXOFF
}
#ifdef SER_UART1_BUS_TXOFF
-/*
!
+/*
*
* Serial port 1 TX complete interrupt handler.
*
* \sa port 0 TX complete handler.
* Serial port 1 TX complete interrupt handler.
*
* \sa port 0 TX complete handler.
@@
-826,7
+829,7
@@
SIGNAL(SIG_UART1_TRANS)
#endif // AVR_HAS_UART1
#endif // AVR_HAS_UART1
-/*
!
+/*
*
* Serial 0 RX complete interrupt handler.
*
* This handler is interruptible.
* Serial 0 RX complete interrupt handler.
*
* This handler is interruptible.
@@
-880,7
+883,7
@@
SIGNAL(SIG_UART0_RECV)
#if AVR_HAS_UART1
#if AVR_HAS_UART1
-/*
!
+/*
*
* Serial 1 RX complete interrupt handler.
*
* This handler is interruptible.
* Serial 1 RX complete interrupt handler.
*
* This handler is interruptible.
@@
-929,7
+932,7
@@
SIGNAL(SIG_UART1_RECV)
#endif // AVR_HAS_UART1
#endif // AVR_HAS_UART1
-/*
!
+/*
*
* SPI interrupt handler
*/
SIGNAL(SIG_SPI)
* SPI interrupt handler
*/
SIGNAL(SIG_SPI)
diff --git
a/drv/ser_dsp56k.c
b/drv/ser_dsp56k.c
index 55e4ddc23b84a18976a46b85ccade18e49b92b7d..ce865b996ad8c1943b07e568404b22645b0c9f59 100755
(executable)
--- a/
drv/ser_dsp56k.c
+++ b/
drv/ser_dsp56k.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.14 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.13 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.13 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
diff --git
a/drv/ser_i196.c
b/drv/ser_i196.c
index 47bc92955df0e52c72c28b4f1c207d8584dd6dd9..303dd400194453692b2b053ee5ab3dbc25a832dd 100755
(executable)
--- a/
drv/ser_i196.c
+++ b/
drv/ser_i196.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright (C) 2003,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright (C) 2003,2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:26 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.6 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
diff --git
a/drv/ser_p.h
b/drv/ser_p.h
index ef58b2616dc2b28099e8a60167577d0ab6d6cb09..8837543f153b5083d145c2280f13fce2eff5033d 100755
(executable)
--- a/
drv/ser_p.h
+++ b/
drv/ser_p.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $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.9 2006/02/17 22:23:06 bernie
*#* Update POSIX serial emulator.
*#*
diff --git
a/drv/ser_posix.c
b/drv/ser_posix.c
index 781c111e70f9e58dd89d6edd841848721d1b34b2..3e1afd47752da45aa042a48a0c3207297fc9ddc8 100755
(executable)
--- a/
drv/ser_posix.c
+++ b/
drv/ser_posix.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-13,6
+13,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2006/02/17 22:28:00 bernie
*#* Rename ser_emul.c to ser_posix.c.
*#*
*#* Revision 1.1 2006/02/17 22:28:00 bernie
*#* Rename ser_emul.c to ser_posix.c.
*#*
@@
-55,7
+58,7
@@
static unsigned char uart1_txbuffer[CONFIG_UART1_TXBUFSIZE];
static unsigned char uart1_rxbuffer[CONFIG_UART1_RXBUFSIZE];
static unsigned char uart1_rxbuffer[CONFIG_UART1_RXBUFSIZE];
-/*
!
+/*
*
* Internal state structure
*/
struct EmulSerial
* Internal state structure
*/
struct EmulSerial
diff --git
a/drv/ser_simple.c
b/drv/ser_simple.c
index 4a57e719b2a11589dfeb7adfce33a38463dd5bdc..9639b0d906ce765d5cdf280e696679e3210ce8f6 100755
(executable)
--- a/
drv/ser_simple.c
+++ b/
drv/ser_simple.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-13,6
+13,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/04/12 01:37:50 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/04/12 01:37:50 bernie
*#* Import into DevLib.
*#*
@@
-46,7
+49,7
@@
#include <avr/io.h>
#include <avr/io.h>
-/*
!
+/*
*
* Send a character over the serial line.
*
* \return the character sent.
* Send a character over the serial line.
*
* \return the character sent.
@@
-71,7
+74,7
@@
int _ser_putchar(int c)
}
}
-/*
!
+/*
*
* Get a character from the serial line.
* If ther is no character in the buffer this function wait until
* one is received (no timeout).
* Get a character from the serial line.
* If ther is no character in the buffer this function wait until
* one is received (no timeout).
@@
-87,7
+90,7
@@
int _ser_getchar(void)
}
}
-/*
!
+/*
*
* Get a character from the receiver buffer
* If the buffer is empty, ser_getchar_nowait() returns
* immediatly EOF.
* Get a character from the receiver buffer
* If the buffer is empty, ser_getchar_nowait() returns
* immediatly EOF.
@@
-102,7
+105,7
@@
void _ser_settimeouts(void)
{
}
{
}
-/*
!
+/*
*
* Set the baudrate.
*/
void _ser_setbaudrate(unsigned long rate)
* Set the baudrate.
*/
void _ser_setbaudrate(unsigned long rate)
@@
-114,7
+117,7
@@
void _ser_setbaudrate(unsigned long rate)
UBRR0L = (period);
}
UBRR0L = (period);
}
-/*
!
+/*
*
* Send a string.
*/
int _ser_print(const char *s)
* Send a string.
*/
int _ser_print(const char *s)
@@
-130,7
+133,7
@@
void _ser_setparity(int parity)
UCSR0C |= (UCSR0C & ~(BV(UPM1) | BV(UPM0))) | (parity << UPM0);
}
UCSR0C |= (UCSR0C & ~(BV(UPM1) | BV(UPM0))) | (parity << UPM0);
}
-/*
!
+/*
*
* Dummy functions.
*/
void _ser_purge(void)
* Dummy functions.
*/
void _ser_purge(void)
@@
-138,7
+141,7
@@
void _ser_purge(void)
while (_ser_getchar_nowait() != EOF) {}
}
while (_ser_getchar_nowait() != EOF) {}
}
-/*
!
+/*
*
* Initialize serial.
*/
struct Serial * _ser_open(void)
* Initialize serial.
*/
struct Serial * _ser_open(void)
@@
-156,7
+159,7
@@
struct Serial * _ser_open(void)
}
}
-/*
!
+/*
*
* Clean up serial port, disabling the associated hardware.
*/
void _ser_close(void)
* Clean up serial port, disabling the associated hardware.
*/
void _ser_close(void)
diff --git
a/drv/ser_simple.h
b/drv/ser_simple.h
index c14e7afff7cf4b040239676e39b4a25fb5111a2c..3870c3ad3bd4c64d65912cb1514bfd7c0ce37fc0 100755
(executable)
--- a/
drv/ser_simple.h
+++ b/
drv/ser_simple.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/04/12 01:37:50 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/04/12 01:37:50 bernie
*#* Import into DevLib.
*#*
@@
-49,20
+52,20
@@
typedef uint8_t serstatus_t;
/* Software errors */
typedef uint8_t serstatus_t;
/* Software errors */
- #define SERRF_RXFIFOOVERRUN BV(0) /*
!
< Rx FIFO buffer overrun */
- #define SERRF_RXTIMEOUT BV(5) /*
!
< Receive timeout */
- #define SERRF_TXTIMEOUT BV(6) /*
!
< Transmit timeout */
+ #define SERRF_RXFIFOOVERRUN BV(0) /*
*
< Rx FIFO buffer overrun */
+ #define SERRF_RXTIMEOUT BV(5) /*
*
< Receive timeout */
+ #define SERRF_TXTIMEOUT BV(6) /*
*
< Transmit timeout */
/* Hardware errors */
/* Hardware errors */
- #define SERRF_RXSROVERRUN BV(3) /*
!
< Rx shift register overrun */
- #define SERRF_FRAMEERROR BV(4) /*
!
< Stop bit missing */
- #define SERRF_PARITYERROR BV(7) /*
!
< Parity error */
+ #define SERRF_RXSROVERRUN BV(3) /*
*
< Rx shift register overrun */
+ #define SERRF_FRAMEERROR BV(4) /*
*
< Stop bit missing */
+ #define SERRF_PARITYERROR BV(7) /*
*
< Parity error */
#else
#error unknown architecture
#endif
/*\}*/
#else
#error unknown architecture
#endif
/*\}*/
-/*
!
+/*
*
* \name Serial hw numbers
*
* \{
* \name Serial hw numbers
*
* \{
@@
-79,12
+82,12
@@
enum
#else
#error unknown architecture
#endif
#else
#error unknown architecture
#endif
- SER_CNT /*
!
< Number of serial ports */
+ SER_CNT /*
*
< Number of serial ports */
};
/*\}*/
#endif
};
/*\}*/
#endif
-/*
!
\name Parity settings for ser_setparity() */
+/*
*
\name Parity settings for ser_setparity() */
/*\{*/
#define SER_PARITY_NONE 0
#define SER_PARITY_EVEN 2
/*\{*/
#define SER_PARITY_NONE 0
#define SER_PARITY_EVEN 2
@@
-92,7
+95,7
@@
enum
/*\}*/
/*\}*/
-/*
!
Serial handle structure */
+/*
*
Serial handle structure */
struct Serial;
/* Function prototypes */
struct Serial;
/* Function prototypes */
@@
-122,7
+125,7
@@
extern void _ser_purge(void);
extern struct Serial *_ser_open(void);
extern void _ser_close(void);
extern struct Serial *_ser_open(void);
extern void _ser_close(void);
-/*
!
+/*
*
* \name Functions implemented as macros
*
* \{
* \name Functions implemented as macros
*
* \{
diff --git
a/drv/thermo.c
b/drv/thermo.c
index 811ee25f6282ee33945ad2969fe64d5fa9764833..5ac45bb5e5b61136f626c1af205845d4dbcc9054 100755
(executable)
--- a/
drv/thermo.c
+++ b/
drv/thermo.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 17:59:47 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 17:59:47 bernie
*#* Import into DevLib.
*#*
@@
-30,13
+33,13
@@
#include <cfg/debug.h>
#include <cfg/debug.h>
-/*
!
Interval at which thermo control is performed. */
+/*
*
Interval at which thermo control is performed. */
#define THERMO_INTERVAL_MS 100
#define THERMO_INTERVAL_MS 100
-/*
!
Number of different samples we interpolate over to get the hifi temperature. */
+/*
*
Number of different samples we interpolate over to get the hifi temperature. */
#define THERMO_HIFI_NUM_SAMPLES 10
#define THERMO_HIFI_NUM_SAMPLES 10
-/*
!
Timer for thermo-regulation. */
+/*
*
Timer for thermo-regulation. */
static Timer thermo_timer;
typedef struct ThermoControlDev
static Timer thermo_timer;
typedef struct ThermoControlDev
@@
-48,11
+51,11
@@
typedef struct ThermoControlDev
ticks_t expire;
} ThermoControlDev;
ticks_t expire;
} ThermoControlDev;
-/*
!
Array of thermo-devices. */
+/*
*
Array of thermo-devices. */
ThermoControlDev devs[THERMO_CNT];
ThermoControlDev devs[THERMO_CNT];
-/*
!
+/*
*
* Return the status of the specific \a dev thermo-device.
*/
thermostatus_t thermo_status(ThermoDev dev)
* Return the status of the specific \a dev thermo-device.
*/
thermostatus_t thermo_status(ThermoDev dev)
@@
-61,7
+64,7
@@
thermostatus_t thermo_status(ThermoDev dev)
}
}
-/*
!
+/*
*
* Do a single thermo control for device \a dev.
*/
static void thermo_do(ThermoDev index)
* Do a single thermo control for device \a dev.
*/
static void thermo_do(ThermoDev index)
@@
-136,7
+139,7
@@
static void thermo_do(ThermoDev index)
}
}
-/*
!
+/*
*
* Thermo soft interrupt.
*/
static void thermo_softint(void)
* Thermo soft interrupt.
*/
static void thermo_softint(void)
@@
-150,7
+153,7
@@
static void thermo_softint(void)
}
}
-/*
!
+/*
*
* Set the target temperature \a temperature for a specific \a dev thermo-device.
*/
void thermo_setTarget(ThermoDev dev, deg_t temperature)
* Set the target temperature \a temperature for a specific \a dev thermo-device.
*/
void thermo_setTarget(ThermoDev dev, deg_t temperature)
@@
-162,7
+165,7
@@
void thermo_setTarget(ThermoDev dev, deg_t temperature)
kprintf("setTarget dev[%d], T[%d.%d]\n", dev, temperature / 10, temperature % 10);
}
kprintf("setTarget dev[%d], T[%d.%d]\n", dev, temperature / 10, temperature % 10);
}
-/*
!
+/*
*
* Starts a thermo-regulation for channel \a dev.
*/
void thermo_start(ThermoDev dev)
* Starts a thermo-regulation for channel \a dev.
*/
void thermo_start(ThermoDev dev)
@@
-184,7
+187,7
@@
void thermo_start(ThermoDev dev)
devs[dev].expire = timer_clock() + thermo_hw_timeout(dev);
}
devs[dev].expire = timer_clock() + thermo_hw_timeout(dev);
}
-/*
!
+/*
*
* Stops a thermo-regulation for channel \a dev.
*/
void thermo_stop(ThermoDev dev)
* Stops a thermo-regulation for channel \a dev.
*/
void thermo_stop(ThermoDev dev)
@@
-196,7
+199,7
@@
void thermo_stop(ThermoDev dev)
}
}
-/*
!
+/*
*
* Clear errors for channel \a dev.
*/
void thermo_clearErrors(ThermoDev dev)
* Clear errors for channel \a dev.
*/
void thermo_clearErrors(ThermoDev dev)
@@
-206,7
+209,7
@@
void thermo_clearErrors(ThermoDev dev)
}
}
-/*
!
+/*
*
* Read the temperature of the thermo-device \a dev using mobile mean.
*/
deg_t thermo_read_temperature(ThermoDev dev)
* Read the temperature of the thermo-device \a dev using mobile mean.
*/
deg_t thermo_read_temperature(ThermoDev dev)
@@
-221,7
+224,7
@@
deg_t thermo_read_temperature(ThermoDev dev)
}
}
-/*
!
+/*
*
* Init thermo-control and associated hw.
*/
void thermo_init(void)
* Init thermo-control and associated hw.
*/
void thermo_init(void)
diff --git
a/drv/thermo.h
b/drv/thermo.h
index 361f96614daa1d52431ee77e47fdf74eccd8f05f..81d96d43a88ff824719754adb40e8f31ee05ba59 100755
(executable)
--- a/
drv/thermo.h
+++ b/
drv/thermo.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-26,6
+26,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 17:59:47 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 17:59:47 bernie
*#* Import into DevLib.
*#*
@@
-58,7
+61,7
@@
void thermo_init(void);
void thermo_init(void);
-/*
!
+/*
*
* Set the target temperature at which a given device should be kept.
*
* \param dev Device
* Set the target temperature at which a given device should be kept.
*
* \param dev Device
@@
-66,19
+69,19
@@
void thermo_init(void);
*/
void thermo_setTarget(ThermoDev dev, deg_t temperature);
*/
void thermo_setTarget(ThermoDev dev, deg_t temperature);
-/*
!
Start thermo control for a certain device \a dev */
+/*
*
Start thermo control for a certain device \a dev */
void thermo_start(ThermoDev dev);
void thermo_start(ThermoDev dev);
-/*
!
Stop thermo control for a certain device \a dev */
+/*
*
Stop thermo control for a certain device \a dev */
void thermo_stop(ThermoDev dev);
void thermo_stop(ThermoDev dev);
-/*
!
Clear errors for channel \a dev */
+/*
*
Clear errors for channel \a dev */
void thermo_clearErrors(ThermoDev dev);
void thermo_clearErrors(ThermoDev dev);
-/*
!
Return the status of the specific \a dev thermo-device. */
+/*
*
Return the status of the specific \a dev thermo-device. */
thermostatus_t thermo_status(ThermoDev dev);
thermostatus_t thermo_status(ThermoDev dev);
-/*
!
+/*
*
* Return the current temperature of a device currently under thermo
* control.
*
* Return the current temperature of a device currently under thermo
* control.
*
diff --git
a/drv/timer.c
b/drv/timer.c
index 85175224cdc37e03190872217590fd4d27938249..33188771e1e2711b046ebcf7a4db4e5a1fd09b06 100755
(executable)
--- a/
drv/timer.c
+++ b/
drv/timer.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.31 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.30 2006/02/24 00:26:49 bernie
*#* Fixes for CONFIG_KERNEL.
*#*
*#* Revision 1.30 2006/02/24 00:26:49 bernie
*#* Fixes for CONFIG_KERNEL.
*#*
@@
-89,7
+92,7
@@
#endif
#endif
-/*
!
+/*
*
* \def CONFIG_TIMER_STROBE
*
* This is a debug facility that can be used to
* \def CONFIG_TIMER_STROBE
*
* This is a debug facility that can be used to
@@
-106,19
+109,19
@@
#endif
#endif
-//
!
Master system clock (1 tick accuracy)
+//
/
Master system clock (1 tick accuracy)
volatile ticks_t _clock;
#ifndef CONFIG_TIMER_DISABLE_EVENTS
volatile ticks_t _clock;
#ifndef CONFIG_TIMER_DISABLE_EVENTS
-/*
!
+/*
*
* List of active asynchronous timers.
*/
REGISTER static List timers_queue;
* List of active asynchronous timers.
*/
REGISTER static List timers_queue;
-/*
!
+/*
*
* Add the specified timer to the software timer service queue.
* When the delay indicated by the timer expires, the timer
* device will execute the event associated with it.
* Add the specified timer to the software timer service queue.
* When the delay indicated by the timer expires, the timer
* device will execute the event associated with it.
@@
-165,7
+168,7
@@
void timer_add(Timer *timer)
}
}
-/*
!
+/*
*
* Remove a timer from the timer queue before it has expired.
*/
Timer *timer_abort(Timer *timer)
* Remove a timer from the timer queue before it has expired.
*/
Timer *timer_abort(Timer *timer)
@@
-216,7
+219,7
@@
void timer_delayTicks(ticks_t delay)
#ifndef CONFIG_TIMER_DISABLE_UDELAY
#ifndef CONFIG_TIMER_DISABLE_UDELAY
-/*
!
+/*
*
* Busy wait until the specified amount of high-precision ticks have elapsed.
*
* \note This function is interrupt safe, the only
* Busy wait until the specified amount of high-precision ticks have elapsed.
*
* \note This function is interrupt safe, the only
@@
-243,7
+246,7
@@
void timer_busyWait(hptime_t delay)
}
}
}
}
-/*
!
+/*
*
* Wait for the specified amount of time (expressed in microseconds).
*
* \bug In AVR arch the maximum amount of time that can be used as
* Wait for the specified amount of time (expressed in microseconds).
*
* \bug In AVR arch the maximum amount of time that can be used as
@@
-263,7
+266,7
@@
void timer_delayHp(hptime_t delay)
#endif /* CONFIG_TIMER_DISABLE_UDELAY */
#endif /* CONFIG_TIMER_DISABLE_UDELAY */
-/*
!
+/*
*
* Timer interrupt handler. Find soft timers expired and
* trigger corresponding events.
*/
* Timer interrupt handler. Find soft timers expired and
* trigger corresponding events.
*/
@@
-317,7
+320,7
@@
DEFINE_TIMER_ISR
MOD_DEFINE(timer)
MOD_DEFINE(timer)
-/*
!
+/*
*
* Initialize timer
*/
void timer_init(void)
* Initialize timer
*/
void timer_init(void)
diff --git
a/drv/timer.h
b/drv/timer.h
index 867fcadfaf4bb1d14764f4cf5fb91f9804c59f1a..1c361fffe580d20778bff2277ab9708912c67bd3 100755
(executable)
--- a/
drv/timer.h
+++ b/
drv/timer.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.31 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.30 2006/02/24 00:26:49 bernie
*#* Fixes for CONFIG_KERNEL.
*#*
*#* Revision 1.30 2006/02/24 00:26:49 bernie
*#* Fixes for CONFIG_KERNEL.
*#*
@@
-125,7
+128,7
@@
extern volatile ticks_t _clock;
extern volatile ticks_t _clock;
-/*
!
+/*
*
* \brief Return the system tick counter (expressed in ticks)
*
* The result is guaranteed to increment monotonically,
* \brief Return the system tick counter (expressed in ticks)
*
* The result is guaranteed to increment monotonically,
@@
-155,7
+158,7
@@
INLINE ticks_t timer_clock(void)
return result;
}
return result;
}
-/*
!
+/*
*
* Faster version of timer_clock(), to be called only when the timer
* interrupt is disabled (DISABLE_INTS) or overridden by a
* higher-priority or non-nesting interrupt.
* Faster version of timer_clock(), to be called only when the timer
* interrupt is disabled (DISABLE_INTS) or overridden by a
* higher-priority or non-nesting interrupt.
@@
-167,7
+170,7
@@
INLINE ticks_t timer_clock_unlocked(void)
return _clock;
}
return _clock;
}
-/*
!
Convert \a ms [ms] to ticks. */
+/*
*
Convert \a ms [ms] to ticks. */
INLINE ticks_t ms_to_ticks(mtime_t ms)
{
#if TIMER_TICKS_PER_SEC < 1000
INLINE ticks_t ms_to_ticks(mtime_t ms)
{
#if TIMER_TICKS_PER_SEC < 1000
@@
-179,7
+182,7
@@
INLINE ticks_t ms_to_ticks(mtime_t ms)
#endif
}
#endif
}
-/*
!
Convert \a us [us] to ticks. */
+/*
*
Convert \a us [us] to ticks. */
INLINE ticks_t us_to_ticks(utime_t us)
{
#if TIMER_TICKS_PER_SEC < 1000
INLINE ticks_t us_to_ticks(utime_t us)
{
#if TIMER_TICKS_PER_SEC < 1000
@@
-191,7
+194,7
@@
INLINE ticks_t us_to_ticks(utime_t us)
#endif
}
#endif
}
-/*
!
Convert \a ticks [ticks] to ms. */
+/*
*
Convert \a ticks [ticks] to ms. */
INLINE mtime_t ticks_to_ms(ticks_t ticks)
{
#if TIMER_TICKS_PER_SEC < 1000
INLINE mtime_t ticks_to_ms(ticks_t ticks)
{
#if TIMER_TICKS_PER_SEC < 1000
@@
-203,7
+206,7
@@
INLINE mtime_t ticks_to_ms(ticks_t ticks)
#endif
}
#endif
}
-/*
!
Convert \a ticks [ticks] to us. */
+/*
*
Convert \a ticks [ticks] to us. */
INLINE utime_t ticks_to_us(ticks_t ticks)
{
#if TIMER_TICKS_PER_SEC < 1000
INLINE utime_t ticks_to_us(ticks_t ticks)
{
#if TIMER_TICKS_PER_SEC < 1000
@@
-215,7
+218,7
@@
INLINE utime_t ticks_to_us(ticks_t ticks)
#endif
}
#endif
}
-/*
!
Convert \a us [us] to hpticks */
+/*
*
Convert \a us [us] to hpticks */
INLINE hptime_t us_to_hptime(utime_t us)
{
#if TIMER_HW_HPTICKS_PER_SEC > 10000000UL
INLINE hptime_t us_to_hptime(utime_t us)
{
#if TIMER_HW_HPTICKS_PER_SEC > 10000000UL
@@
-225,7
+228,7
@@
INLINE hptime_t us_to_hptime(utime_t us)
#endif
}
#endif
}
-/*
!
Convert \a hpticks [hptime] to usec */
+/*
*
Convert \a hpticks [hptime] to usec */
INLINE utime_t hptime_to_us(hptime_t hpticks)
{
#if TIMER_HW_HPTICKS_PER_SEC < 100000UL
INLINE utime_t hptime_to_us(hptime_t hpticks)
{
#if TIMER_HW_HPTICKS_PER_SEC < 100000UL
@@
-256,7
+259,7
@@
INLINE void timer_udelay(utime_t delay)
#include <mware/event.h>
#include <mware/event.h>
-/*
!
+/*
*
* The timer driver supports multiple synchronous timers
* that can trigger an event when they expire.
*
* The timer driver supports multiple synchronous timers
* that can trigger an event when they expire.
*
@@
-265,27
+268,27
@@
INLINE void timer_udelay(utime_t delay)
*/
typedef struct Timer
{
*/
typedef struct Timer
{
- Node link; /*
!
< Link into timers queue */
- ticks_t _delay; /*
!
< Timer delay in ms */
- ticks_t tick; /*
!
< Timer will expire at this tick */
- Event expire; /*
!
< Event to execute when the timer expires */
+ Node link; /*
*
< Link into timers queue */
+ ticks_t _delay; /*
*
< Timer delay in ms */
+ ticks_t tick; /*
*
< Timer will expire at this tick */
+ Event expire; /*
*
< Event to execute when the timer expires */
DB(uint16_t magic;)
} Timer;
DB(uint16_t magic;)
} Timer;
-/*
!
Timer is active when Timer.magic contains this value (for debugging purposes). */
+/*
*
Timer is active when Timer.magic contains this value (for debugging purposes). */
#define TIMER_MAGIC_ACTIVE 0xABBA
#define TIMER_MAGIC_INACTIVE 0xBAAB
extern void timer_add(Timer *timer);
extern Timer *timer_abort(Timer *timer);
#define TIMER_MAGIC_ACTIVE 0xABBA
#define TIMER_MAGIC_INACTIVE 0xBAAB
extern void timer_add(Timer *timer);
extern Timer *timer_abort(Timer *timer);
-/*
!
Set the timer so that it calls an user hook when it expires */
+/*
*
Set the timer so that it calls an user hook when it expires */
INLINE void timer_set_event_softint(Timer *timer, Hook func, iptr_t user_data)
{
event_initSoftInt(&timer->expire, func, user_data);
}
INLINE void timer_set_event_softint(Timer *timer, Hook func, iptr_t user_data)
{
event_initSoftInt(&timer->expire, func, user_data);
}
-/*
!
Set the timer delay (the time before the event will be triggered) */
+/*
*
Set the timer delay (the time before the event will be triggered) */
INLINE void timer_setDelay(Timer *timer, ticks_t delay)
{
timer->_delay = delay;
INLINE void timer_setDelay(Timer *timer, ticks_t delay)
{
timer->_delay = delay;
@@
-295,7
+298,7
@@
INLINE void timer_setDelay(Timer *timer, ticks_t delay)
#if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS
#if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS
-/*
!
Set the timer so that it sends a signal when it expires */
+/*
*
Set the timer so that it sends a signal when it expires */
INLINE void timer_set_event_signal(Timer *timer, struct Process *proc, sigmask_t sigs)
{
event_initSignal(&timer->expire, proc, sigs);
INLINE void timer_set_event_signal(Timer *timer, struct Process *proc, sigmask_t sigs)
{
event_initSignal(&timer->expire, proc, sigs);
diff --git
a/drv/timer_avr.c
b/drv/timer_avr.c
index 877f9193b34d676777b7d2e8ae62854e5f4994a9..2e9c4574e244faf42a2ea69c9641d702a568cf9a 100755
(executable)
--- a/
drv/timer_avr.c
+++ b/
drv/timer_avr.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2006/06/12 21:37:02 marco
*#* implemented some commands (ver and sleep)
*#*
*#* Revision 1.3 2006/06/12 21:37:02 marco
*#* implemented some commands (ver and sleep)
*#*
@@
-34,7
+37,7
@@
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/io.h>
-/*
!
HW dependent timer initialization */
+/*
*
HW dependent timer initialization */
#if (CONFIG_TIMER == TIMER_ON_OUTPUT_COMPARE0)
static void timer_hw_init(void)
#if (CONFIG_TIMER == TIMER_ON_OUTPUT_COMPARE0)
static void timer_hw_init(void)
diff --git
a/drv/timer_avr.h
b/drv/timer_avr.h
index fa652b34908c71132d072d3eca5ab0fb3b8333ee..7442fdcb152e335d3376a64a54fe1f37e65802aa 100755
(executable)
--- a/
drv/timer_avr.h
+++ b/
drv/timer_avr.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.28 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.27 2006/05/18 00:38:24 bernie
*#* Use hw_cpu.h instead of ubiquitous hw.h.
*#*
*#* Revision 1.27 2006/05/18 00:38:24 bernie
*#* Use hw_cpu.h instead of ubiquitous hw.h.
*#*
@@
-50,7
+53,7
@@
#include <cfg/compiler.h> /* uint8_t */
#include <hw_cpu.h> /* CLOCK_FREQ */
#include <cfg/compiler.h> /* uint8_t */
#include <hw_cpu.h> /* CLOCK_FREQ */
-/*
!
+/*
*
* \name Values for CONFIG_TIMER.
*
* Select which hardware timer interrupt to use for system clock and softtimers.
* \name Values for CONFIG_TIMER.
*
* Select which hardware timer interrupt to use for system clock and softtimers.
@@
-75,19
+78,19
@@
#define TIMER_TICKS_PER_SEC 1000
#define TIMER_HW_CNT OCR_DIVISOR
#define TIMER_TICKS_PER_SEC 1000
#define TIMER_HW_CNT OCR_DIVISOR
- //
!
Type of time expressed in ticks of the hardware high-precision timer
+ //
/
Type of time expressed in ticks of the hardware high-precision timer
typedef uint8_t hptime_t;
#elif (CONFIG_TIMER == TIMER_ON_OVERFLOW1)
#define TIMER_PRESCALER 1
#define TIMER_HW_BITS 8
typedef uint8_t hptime_t;
#elif (CONFIG_TIMER == TIMER_ON_OVERFLOW1)
#define TIMER_PRESCALER 1
#define TIMER_HW_BITS 8
- /*
!
This value is the maximum in overflow based timers. */
+ /*
*
This value is the maximum in overflow based timers. */
#define TIMER_HW_CNT (1 << TIMER_HW_BITS)
#define DEFINE_TIMER_ISR SIGNAL(SIG_OVERFLOW1)
#define TIMER_TICKS_PER_SEC ((TIMER_HW_HPTICKS_PER_SEC + TIMER_HW_CNT / 2) / TIMER_HW_CNT)
#define TIMER_HW_CNT (1 << TIMER_HW_BITS)
#define DEFINE_TIMER_ISR SIGNAL(SIG_OVERFLOW1)
#define TIMER_TICKS_PER_SEC ((TIMER_HW_HPTICKS_PER_SEC + TIMER_HW_CNT / 2) / TIMER_HW_CNT)
- //
!
Type of time expressed in ticks of the hardware high precision timer
+ //
/
Type of time expressed in ticks of the hardware high precision timer
typedef uint16_t hptime_t;
#elif (CONFIG_TIMER == TIMER_ON_OUTPUT_COMPARE2)
typedef uint16_t hptime_t;
#elif (CONFIG_TIMER == TIMER_ON_OUTPUT_COMPARE2)
@@
-96,23
+99,23
@@
#define TIMER_HW_BITS 8
#define DEFINE_TIMER_ISR SIGNAL(SIG_OUTPUT_COMPARE2)
#define TIMER_TICKS_PER_SEC 1000
#define TIMER_HW_BITS 8
#define DEFINE_TIMER_ISR SIGNAL(SIG_OUTPUT_COMPARE2)
#define TIMER_TICKS_PER_SEC 1000
- /*
!
Value for OCR register in output-compare based timers. */
+ /*
*
Value for OCR register in output-compare based timers. */
#define TIMER_HW_CNT OCR_DIVISOR
#define TIMER_HW_CNT OCR_DIVISOR
- //
!
Type of time expressed in ticks of the hardware high precision timer
+ //
/
Type of time expressed in ticks of the hardware high precision timer
typedef uint8_t hptime_t;
#elif (CONFIG_TIMER == TIMER_ON_OVERFLOW3)
#define TIMER_PRESCALER 1
#define TIMER_HW_BITS 8
typedef uint8_t hptime_t;
#elif (CONFIG_TIMER == TIMER_ON_OVERFLOW3)
#define TIMER_PRESCALER 1
#define TIMER_HW_BITS 8
- /*
!
This value is the maximum in overflow based timers. */
+ /*
*
This value is the maximum in overflow based timers. */
#define TIMER_HW_CNT (1 << TIMER_HW_BITS)
#define DEFINE_TIMER_ISR SIGNAL(SIG_OVERFLOW3)
#define TIMER_TICKS_PER_SEC ((TIMER_HW_HPTICKS_PER_SEC + TIMER_HW_CNT / 2) / TIMER_HW_CNT)
#define TIMER_HW_CNT (1 << TIMER_HW_BITS)
#define DEFINE_TIMER_ISR SIGNAL(SIG_OVERFLOW3)
#define TIMER_TICKS_PER_SEC ((TIMER_HW_HPTICKS_PER_SEC + TIMER_HW_CNT / 2) / TIMER_HW_CNT)
- //
!
Type of time expressed in ticks of the hardware high precision timer
+ //
/
Type of time expressed in ticks of the hardware high precision timer
typedef uint16_t hptime_t;
#else
typedef uint16_t hptime_t;
#else
@@
-120,16
+123,16
@@
#endif /* CONFIG_TIMER */
#endif /* CONFIG_TIMER */
-/*
!
Frequency of the hardware high precision timer. */
+/*
*
Frequency of the hardware high precision timer. */
#define TIMER_HW_HPTICKS_PER_SEC ((CLOCK_FREQ + TIMER_PRESCALER / 2) / TIMER_PRESCALER)
#define TIMER_HW_HPTICKS_PER_SEC ((CLOCK_FREQ + TIMER_PRESCALER / 2) / TIMER_PRESCALER)
-/*
!
+/*
*
* System timer: additional division after the prescaler
* 12288000 / 64 / 192 (0..191) = 1 ms
*/
#define OCR_DIVISOR (((CLOCK_FREQ + TIMER_PRESCALER / 2) / TIMER_PRESCALER + TIMER_TICKS_PER_SEC / 2) / TIMER_TICKS_PER_SEC - 1)
* System timer: additional division after the prescaler
* 12288000 / 64 / 192 (0..191) = 1 ms
*/
#define OCR_DIVISOR (((CLOCK_FREQ + TIMER_PRESCALER / 2) / TIMER_PRESCALER + TIMER_TICKS_PER_SEC / 2) / TIMER_TICKS_PER_SEC - 1)
-/*
!
Not needed, IRQ timer flag cleared automatically */
+/*
*
Not needed, IRQ timer flag cleared automatically */
#define timer_hw_irq() do {} while (0)
#define timer_hw_irq() do {} while (0)
diff --git
a/drv/timer_dsp56k.h
b/drv/timer_dsp56k.h
index e343af4a5f5383666bb27502910a027ea307b19b..2e29701f0acc10523b76876478dd2cf1f450a24e 100755
(executable)
--- a/
drv/timer_dsp56k.h
+++ b/
drv/timer_dsp56k.h
@@
-1,5
+1,5
@@
#error This code must be revised for the new timer API
#error This code must be revised for the new timer API
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.10 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.9 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
*#* Revision 1.9 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
@@
-58,13
+61,13
@@
#define REG_SYSTEM_TIMER PP_CAT(REG_TIMER_, SYSTEM_TIMER)
#define SYSTEM_TIMER_IRQ_VECTOR PP_CAT(IRQ_TIMER_, SYSTEM_TIMER)
#define REG_SYSTEM_TIMER PP_CAT(REG_TIMER_, SYSTEM_TIMER)
#define SYSTEM_TIMER_IRQ_VECTOR PP_CAT(IRQ_TIMER_, SYSTEM_TIMER)
-//
!
Prescaler for the system timer
+//
/
Prescaler for the system timer
#define TIMER_PRESCALER 16
#define TIMER_PRESCALER 16
-//
!
Frequency of the hardware high precision timer
+//
/
Frequency of the hardware high precision timer
#define TIMER_HW_HPTICKS_PER_SEC (IPBUS_FREQ / TIMER_PRESCALER)
#define TIMER_HW_HPTICKS_PER_SEC (IPBUS_FREQ / TIMER_PRESCALER)
-//
!
Type of time expressed in ticks of the hardware high precision timer
+//
/
Type of time expressed in ticks of the hardware high precision timer
typedef uint16_t hptime_t;
static void system_timer_isr(UNUSED(iptr_t, arg));
typedef uint16_t hptime_t;
static void system_timer_isr(UNUSED(iptr_t, arg));
diff --git
a/drv/timer_i196.h
b/drv/timer_i196.h
index 339cd6dec7630b6836bbd349eb5b2cfb7e3d8f11..3111a6c5ce53094b49397f03c261bbebe7757918 100755
(executable)
--- a/
drv/timer_i196.h
+++ b/
drv/timer_i196.h
@@
-1,5
+1,5
@@
#error This code must be revised for the new timer API
#error This code must be revised for the new timer API
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.6 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
*#* Revision 1.6 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
@@
-39,7
+42,7
@@
#ifndef TIMER_I196_H
#define TIMER_I196_H
#ifndef TIMER_I196_H
#define TIMER_I196_H
-/*
!
+/*
*
* Retrigger TIMER2, adjusting the time to account for
* the interrupt prologue latency.
*/
* Retrigger TIMER2, adjusting the time to account for
* the interrupt prologue latency.
*/
diff --git
a/drv/timer_posix.c
b/drv/timer_posix.c
index 6204885e987408fd5433a8d094723e24c9ca1d65..650e0c970685aec18da83cfab4718e12e8dcd31b 100755
(executable)
--- a/
drv/timer_posix.c
+++ b/
drv/timer_posix.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.6 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.5 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
*#* Revision 1.5 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
diff --git
a/drv/timer_posix.h
b/drv/timer_posix.h
index 946c1125b5257228321b8d1983711499851f2a59..f6b725a3d79edf0003bb3552224bf62f1eae967d 100755
(executable)
--- a/
drv/timer_posix.h
+++ b/
drv/timer_posix.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2006/02/23 11:03:33 bernie
*#* Documentation fix.
*#*
*#* Revision 1.3 2006/02/23 11:03:33 bernie
*#* Documentation fix.
*#*
diff --git
a/drv/timer_qt.c
b/drv/timer_qt.c
index 5ca081fcf27f5d6003f718c3fc0b113e627cab2f..9b7a289c64f73fc638a07cb62e8554480baa7abf 100755
(executable)
--- a/
drv/timer_qt.c
+++ b/
drv/timer_qt.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.5 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.4 2006/05/28 12:17:57 bernie
*#* Drop almost all the Qt3 cruft.
*#*
*#* Revision 1.4 2006/05/28 12:17:57 bernie
*#* Drop almost all the Qt3 cruft.
*#*
diff --git
a/drv/timer_qt.h
b/drv/timer_qt.h
index a4772de4f2e25978757495831b65ca0bae70f589..b39440c2e65baaa0389688aef0d5e42704ee74fa 100755
(executable)
--- a/
drv/timer_qt.h
+++ b/
drv/timer_qt.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
*#* Revision 1.3 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
diff --git
a/drv/timer_simple.c
b/drv/timer_simple.c
index 570ae42945b04b29939869ba6bce47f54829fa07..ec263f7ecfe43334663795062159bd02bdf49810 100755
(executable)
--- a/
drv/timer_simple.c
+++ b/
drv/timer_simple.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/04/12 01:37:50 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/04/12 01:37:50 bernie
*#* Import into DevLib.
*#*
@@
-56,7
+59,7
@@
#define TIMER_PRESCALER 64UL
#define TIMER_DELAY_1MS (255 - CLOCK_FREQ / TIMER_PRESCALER / MS_PER_SEC)
#define TIMER_PRESCALER 64UL
#define TIMER_DELAY_1MS (255 - CLOCK_FREQ / TIMER_PRESCALER / MS_PER_SEC)
-/*
!
+/*
*
* Wait \a time ms using timer 0.
*
*/
* Wait \a time ms using timer 0.
*
*/
diff --git
a/drv/timer_simple.h
b/drv/timer_simple.h
index 255363054ed80a486eb4342d70475882d4fe593f..dedc8256ba85344e41a4cc2db7db7d648e9361ad 100755
(executable)
--- a/
drv/timer_simple.h
+++ b/
drv/timer_simple.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-12,6
+12,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/04/12 01:37:50 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/04/12 01:37:50 bernie
*#* Import into DevLib.
*#*
diff --git
a/drv/timer_test.c
b/drv/timer_test.c
index 0d01307f95284c2bdf166b11cecd7fa2efd49545..4dd7c7d3653f5d58cf4ee4f448600d0cc807642f 100755
(executable)
--- a/
drv/timer_test.c
+++ b/
drv/timer_test.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-13,6
+13,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
*#* Revision 1.3 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
diff --git
a/drv/twi.c
b/drv/twi.c
index f2c73f94d760ea05e767bf1d014c33311fb71fd0..d0c6537428369569fd50cea491eeaf89dbf719ac 100755
(executable)
--- a/
drv/twi.c
+++ b/
drv/twi.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.6 2006/03/20 17:49:50 bernie
*#* Make the TWI driver more generic to work with devices other than EEPROMS.
*#*
*#* Revision 1.6 2006/03/20 17:49:50 bernie
*#* Make the TWI driver more generic to work with devices other than EEPROMS.
*#*
@@
-52,7
+55,7
@@
#define READ_BIT BV(0)
#define READ_BIT BV(0)
-/*
!
+/*
*
* Send START condition on the bus.
*
* \return true on success, false otherwise.
* Send START condition on the bus.
*
* \return true on success, false otherwise.
@@
-70,7
+73,7
@@
static bool twi_start(void)
}
}
-/*
!
+/*
*
* Send START condition and select slave for write.
* \c id is the device id comprehensive of address left shifted by 1.
* The LSB of \c id is ignored and reset to 0 for write operation.
* Send START condition and select slave for write.
* \c id is the device id comprehensive of address left shifted by 1.
* The LSB of \c id is ignored and reset to 0 for write operation.
@@
-104,7
+107,7
@@
bool twi_start_w(uint8_t id)
}
}
-/*
!
+/*
*
* Send START condition and select slave for read.
* \c id is the device id comprehensive of address left shifted by 1.
* The LSB of \c id is ignored and set to 1 for read operation.
* Send START condition and select slave for read.
* \c id is the device id comprehensive of address left shifted by 1.
* The LSB of \c id is ignored and set to 1 for read operation.
@@
-129,7
+132,7
@@
bool twi_start_r(uint8_t id)
}
}
-/*
!
+/*
*
* Send STOP condition.
*/
void twi_stop(void)
* Send STOP condition.
*/
void twi_stop(void)
@@
-138,7
+141,7
@@
void twi_stop(void)
}
}
-/*
!
+/*
*
* Put a single byte in master transmitter mode
* to the selected slave device through the TWI bus.
*
* Put a single byte in master transmitter mode
* to the selected slave device through the TWI bus.
*
@@
-158,7
+161,7
@@
bool twi_put(const uint8_t data)
}
}
-/*
!
+/*
*
* Send a sequence of bytes in master transmitter mode
* to the selected slave device through the TWI bus.
*
* Send a sequence of bytes in master transmitter mode
* to the selected slave device through the TWI bus.
*
@@
-177,7
+180,7
@@
bool twi_send(const void *_buf, size_t count)
}
}
-/*
!
+/*
*
* Receive a sequence of one or more bytes from the
* selected slave device in master receive mode through
* the TWI bus.
* Receive a sequence of one or more bytes from the
* selected slave device in master receive mode through
* the TWI bus.
@@
-222,7
+225,7
@@
bool twi_recv(void *_buf, size_t count)
}
}
-/*
!
+/*
*
* Initialize TWI module.
*/
void twi_init(void)
* Initialize TWI module.
*/
void twi_init(void)
diff --git
a/drv/twi.h
b/drv/twi.h
index 20671a463f91522b352d3a04536df69db489b22f..b2b7d8b82e8ccd80302f3f222e311549dc837539 100755
(executable)
--- a/
drv/twi.h
+++ b/
drv/twi.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.5 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.4 2006/03/20 17:49:49 bernie
*#* Make the TWI driver more generic to work with devices other than EEPROMS.
*#*
*#* Revision 1.4 2006/03/20 17:49:49 bernie
*#* Make the TWI driver more generic to work with devices other than EEPROMS.
*#*
diff --git
a/drv/wdt.h
b/drv/wdt.h
index bfe3ce8891abf4c1c3b9021adab60cb56d36f5d2..7ff3e8f693c192c37f1c903bf2d9b6996587ae7d 100755
(executable)
--- a/
drv/wdt.h
+++ b/
drv/wdt.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.11 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.10 2006/05/18 00:38:42 bernie
*#* Work around missing ARCH_FREERTOS symbol.
*#*
*#* Revision 1.10 2006/05/18 00:38:42 bernie
*#* Work around missing ARCH_FREERTOS symbol.
*#*
@@
-79,7
+82,7
@@
#endif
#endif /* CONFIG_WATCHDOG */
#endif
#endif /* CONFIG_WATCHDOG */
-/*
!
+/*
*
* Reset the watchdog timer.
*/
INLINE void wdt_reset(void)
* Reset the watchdog timer.
*/
INLINE void wdt_reset(void)
@@
-102,7
+105,7
@@
INLINE void wdt_reset(void)
#endif /* CONFIG_WATCHDOG */
}
#endif /* CONFIG_WATCHDOG */
}
-/*
!
+/*
*
* Set watchdog timer timeout.
*
* \param timeout 0: 16.3ms, 7: 2.1s
* Set watchdog timer timeout.
*
* \param timeout 0: 16.3ms, 7: 2.1s
diff --git
a/dt/dnotifier.c
b/dt/dnotifier.c
index d415c8dbbf297d9d532227d55718dae108f90eb9..5886b7fd90ed92dad3e320e4c8a3f4062b13ebe5 100755
(executable)
--- a/
dt/dnotifier.c
+++ b/
dt/dnotifier.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
@@
-41,7
+44,7
@@
#include <dt/dnotifier.h>
#include <mware/list.h>
#include <dt/dnotifier.h>
#include <mware/list.h>
-/*
!
+/*
*
* Default update used to notify target: notify all trasparently all
* targets in the list.
*/
* Default update used to notify target: notify all trasparently all
* targets in the list.
*/
@@
-50,7
+53,7
@@
static void notifier_update(DNotifier *n, dtag_t tag, dval_t val)
dnotify_targets(n, tag, val);
}
dnotify_targets(n, tag, val);
}
-/*
!
+/*
*
* Init.
*/
void notifier_init(DNotifier *n)
* Init.
*/
void notifier_init(DNotifier *n)
@@
-60,7
+63,7
@@
void notifier_init(DNotifier *n)
LIST_INIT(&n->targets);
}
LIST_INIT(&n->targets);
}
-/*
!
+/*
*
* Search in the map a tag and a val corresponding to the ones supplied.
* If a match is found change them to the corresponding ones in the map.
* If map is NULL the filter is trasparent and all messages sent to filter
* Search in the map a tag and a val corresponding to the ones supplied.
* If a match is found change them to the corresponding ones in the map.
* If map is NULL the filter is trasparent and all messages sent to filter
@@
-95,7
+98,7
@@
void filter_update(DFilter *f, dtag_t tag, dval_t val)
}
}
-/*
!
+/*
*
* Search in the table a tag corresponding to the one supplied and a val
* that has at least the mask map supplied bits to one.
* If a match is found change them to the corresponding ones in the map.
* Search in the table a tag corresponding to the one supplied and a val
* that has at least the mask map supplied bits to one.
* If a match is found change them to the corresponding ones in the map.
@@
-135,7
+138,7
@@
void filter_mask_update(DFilter *f, dtag_t tag, dval_t val)
#define FILTER_MAGIC_ACTIVE 0xAA
#define FILTER_MAGIC_ACTIVE 0xAA
-/*
!
+/*
*
* Init filter.
* If \a masked is true, all the fields value in \a map must be interpreted as a mask of bits.
*/
* Init filter.
* If \a masked is true, all the fields value in \a map must be interpreted as a mask of bits.
*/
diff --git
a/dt/dnotifier.h
b/dt/dnotifier.h
index 0724b82b18775ea748325ed648b7d603b08865d5..a7523cbc68c23a17ea4466ff0ecfda705b03ffef 100755
(executable)
--- a/
dt/dnotifier.h
+++ b/
dt/dnotifier.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
@@
-45,21
+48,21
@@
struct DFilter;
typedef void (* update_func_ptr)(struct DNotifier *, dtag_t, dval_t);
typedef void (* update_filter_ptr)(struct DFilter *, dtag_t, dval_t);
typedef void (* update_func_ptr)(struct DNotifier *, dtag_t, dval_t);
typedef void (* update_filter_ptr)(struct DFilter *, dtag_t, dval_t);
-/*
!
+/*
*
* Base object for receive and forward messages.
* It contains an update function used to update itslef and a list to
* notify other DNotifer eventually connected.
*/
typedef struct DNotifier
{
* Base object for receive and forward messages.
* It contains an update function used to update itslef and a list to
* notify other DNotifer eventually connected.
*/
typedef struct DNotifier
{
- //
!
Receive new attributes from other notifiers.
+ //
/
Receive new attributes from other notifiers.
update_func_ptr update;
update_func_ptr update;
- //
!
List of target notifiers to set new attributes to.
+ //
/
List of target notifiers to set new attributes to.
List targets;
} DNotifier;
List targets;
} DNotifier;
-/*
!
+/*
*
* Map for messages.
* Used to translate src message to dst message.
*/
* Map for messages.
* Used to translate src message to dst message.
*/
@@
-70,45
+73,45
@@
typedef struct DFilterMap
} DFilterMap;
} DFilterMap;
-/*
!
+/*
*
* A filter is an interface between two notifier.
* It can translate messages between them through a map (if it is not null).
*/
typedef struct DFilter
{
* A filter is an interface between two notifier.
* It can translate messages between them through a map (if it is not null).
*/
typedef struct DFilter
{
- //
!
Allow creating a list of dfilter objects.
+ //
/
Allow creating a list of dfilter objects.
Node link;
Node link;
- //
!
Target of the filter
+ //
/
Target of the filter
DNotifier *target;
DNotifier *target;
- //
!
Update function called by the source dnotifier
+ //
/
Update function called by the source dnotifier
update_filter_ptr update;
update_filter_ptr update;
- //
!
Map for translating messages for target
+ //
/
Map for translating messages for target
const DFilterMap *map;
const DFilterMap *map;
- //
!
Used in debug to prevent inserting this filter in more than one list
+ //
/
Used in debug to prevent inserting this filter in more than one list
DB(uint8_t magic;)
} DFilter;
DB(uint8_t magic;)
} DFilter;
-//
!
Type for filter-mask checking
+//
/
Type for filter-mask checking
typedef uint16_t dfilter_mask_t;
typedef uint16_t dfilter_mask_t;
-//
!
Filter init
+//
/
Filter init
void filter_init(DFilter *f, const DFilterMap *map, bool masked, DNotifier *source, DNotifier *target);
void filter_init(DFilter *f, const DFilterMap *map, bool masked, DNotifier *source, DNotifier *target);
-//
!
Filter update function without masking capabilities.
+//
/
Filter update function without masking capabilities.
void filter_update(DFilter *f, dtag_t tag, dval_t val);
void filter_update(DFilter *f, dtag_t tag, dval_t val);
-//
!
Filter update function with masking capabilities.
+//
/
Filter update function with masking capabilities.
void filter_mask_update(DFilter *f, dtag_t tag, dval_t val);
void filter_mask_update(DFilter *f, dtag_t tag, dval_t val);
-//
!
Notifier init
+//
/
Notifier init
void notifier_init(DNotifier *n);
void notifier_init(DNotifier *n);
-/*
!
+/*
*
* Macro to notify the target object.
*/
INLINE void dnotify(DNotifier *target, dtag_t tag, dval_t val)
* Macro to notify the target object.
*/
INLINE void dnotify(DNotifier *target, dtag_t tag, dval_t val)
@@
-117,7
+120,7
@@
INLINE void dnotify(DNotifier *target, dtag_t tag, dval_t val)
target->update(target, tag, val);
}
target->update(target, tag, val);
}
-/*
!
+/*
*
* Macro to notify all the targets of \a target object.
*/
INLINE void dnotify_targets(DNotifier *target, dtag_t tag, dval_t val)
* Macro to notify all the targets of \a target object.
*/
INLINE void dnotify_targets(DNotifier *target, dtag_t tag, dval_t val)
@@
-129,7
+132,7
@@
INLINE void dnotify_targets(DNotifier *target, dtag_t tag, dval_t val)
}
}
-/*
!
+/*
*
* Macro that connect \a src notifier to \a tgt using \a map and passing \a opt for filtering option.
* It declares a static filter to achieve connection and messages translation.
* \note Due its static filter declaration, DCONNECT MUST NOT be used inside loops or in functions called multiple times.
* Macro that connect \a src notifier to \a tgt using \a map and passing \a opt for filtering option.
* It declares a static filter to achieve connection and messages translation.
* \note Due its static filter declaration, DCONNECT MUST NOT be used inside loops or in functions called multiple times.
diff --git
a/dt/dtag.h
b/dt/dtag.h
index 01e34f80f617465965100ccc43e30288419183d6..c89f1cc81411a0d6ea737f4d8654d0b2292ef4e3 100755
(executable)
--- a/
dt/dtag.h
+++ b/
dt/dtag.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
@@
-50,13
+53,13
@@
#include <cfg/macros.h>
#include <cfg/macros.h>
-/*
!
Type for values associated with tags. */
+/*
*
Type for values associated with tags. */
typedef iptr_t dval_t;
typedef iptr_t dval_t;
-/*
!
Type for constant values associated with tags. */
+/*
*
Type for constant values associated with tags. */
typedef const_iptr_t const_dval_t;
typedef const_iptr_t const_dval_t;
-/*
!
Type for tag */
+/*
*
Type for tag */
typedef enum dtag_t
{
TAG_END = 0,
typedef enum dtag_t
{
TAG_END = 0,
@@
-73,13
+76,13
@@
typedef enum dtag_t
TAG_ERROR,
} dtag_t;
TAG_ERROR,
} dtag_t;
-/*
!
This is the basic message structure used by all dnotifiers. */
+/*
*
This is the basic message structure used by all dnotifiers. */
typedef struct DTagItem
{
dtag_t tag;
dval_t val;
} DTagItem;
typedef struct DTagItem
{
dtag_t tag;
dval_t val;
} DTagItem;
-/*
!
Marker to indicate the end of a map for message filtering/translating */
+/*
*
Marker to indicate the end of a map for message filtering/translating */
#define TAG_END_MARKER {{TAG_END, 0}, {TAG_END, 0}}
#endif
#define TAG_END_MARKER {{TAG_END, 0}, {TAG_END, 0}}
#endif
diff --git
a/dt/dwidget.c
b/dt/dwidget.c
index 970c1d6497ea2724de0ba9d8ffc6b317ea6d5012..14d9e4efbb2b57f5e04130da11c7bd2cba093a26 100755
(executable)
--- a/
dt/dwidget.c
+++ b/
dt/dwidget.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-17,6
+17,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
@@
-34,7
+37,7
@@
#include <dt/dwidget.h>
#include <dt/dnotifier.h>
#include <dt/dwidget.h>
#include <dt/dnotifier.h>
-/*
!
+/*
*
* Init the widget of \a pos and \a size on the drawing \a context.
*/
void widget_init(DWidget *w, dpos_t pos, dpos_t size, dcontext_t *context)
* Init the widget of \a pos and \a size on the drawing \a context.
*/
void widget_init(DWidget *w, dpos_t pos, dpos_t size, dcontext_t *context)
diff --git
a/dt/dwidget.h
b/dt/dwidget.h
index a672637840af3f635581b2583f89e00790bcd7a3..fdc4f14cdb632e054e83dc96474fff85549cd164 100755
(executable)
--- a/
dt/dwidget.h
+++ b/
dt/dwidget.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
@@
-35,13
+38,13
@@
#include <dt/dnotifier.h>
#include <cfg/compiler.h>
#include <dt/dnotifier.h>
#include <cfg/compiler.h>
-/*
!
Widget position. */
+/*
*
Widget position. */
typedef uint8_t dpos_t;
typedef uint8_t dpos_t;
-/*
!
Widget drawing context. */
+/*
*
Widget drawing context. */
typedef iptr_t dcontext_t;
typedef iptr_t dcontext_t;
-/*
!
Widget definition. */
+/*
*
Widget definition. */
typedef struct DWidget
{
DNotifier notifier;
typedef struct DWidget
{
DNotifier notifier;
diff --git
a/dt/editbool.c
b/dt/editbool.c
index 94a2d89ccce3bad31a11ab2fcb90fa020fa93047..3eb0ab8f587e67422652dac09e8e265a8a29e4ca 100755
(executable)
--- a/
dt/editbool.c
+++ b/
dt/editbool.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-17,6
+17,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
@@
-36,7
+39,7
@@
#include <drv/lcd_text.h>
#include <drv/lcd_text.h>
-/*
!
+/*
*
* Init widget.
*/
void editbool_init(DEditBool *e, dpos_t pos, dpos_t size, dcontext_t *context, bool *value, const char *true_string, const char *false_string)
* Init widget.
*/
void editbool_init(DEditBool *e, dpos_t pos, dpos_t size, dcontext_t *context, bool *value, const char *true_string, const char *false_string)
@@
-54,7
+57,7
@@
void editbool_init(DEditBool *e, dpos_t pos, dpos_t size, dcontext_t *context, b
e->draw = editbool_draw;
}
e->draw = editbool_draw;
}
-/*
!
+/*
*
* Handle the messages (edit the bool).
*/
void editbool_update(DEditBool *e, dtag_t tag, dval_t _val)
* Handle the messages (edit the bool).
*/
void editbool_update(DEditBool *e, dtag_t tag, dval_t _val)
@@
-83,7
+86,7
@@
void editbool_update(DEditBool *e, dtag_t tag, dval_t _val)
}
}
}
}
-/*
!
+/*
*
* Draw the string on the context.
*/
void editbool_draw(DEditBool *e)
* Draw the string on the context.
*/
void editbool_draw(DEditBool *e)
diff --git
a/dt/editbool.h
b/dt/editbool.h
index 3f723a32b49d274f3996a4139050df116c16eea9..93ea52388d70515ec81089302718e4a430728cf9 100755
(executable)
--- a/
dt/editbool.h
+++ b/
dt/editbool.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
diff --git
a/dt/editint.c
b/dt/editint.c
index 2b95d5658c8ac696cf031b5b27bdd9088e2c7d81..a960fe9102dcc0d98957d1354739c8259d8772e4 100755
(executable)
--- a/
dt/editint.c
+++ b/
dt/editint.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
@@
-50,7
+53,7
@@
#include <drv/lcd_text.h>
#include <drv/lcd_text.h>
-/*
!
+/*
*
* Init.
*/
void editint_init(DEditInt *e, dpos_t pos, dpos_t size, dcontext_t *context, int *value, int min, int max)
* Init.
*/
void editint_init(DEditInt *e, dpos_t pos, dpos_t size, dcontext_t *context, int *value, int min, int max)
@@
-69,7
+72,7
@@
void editint_init(DEditInt *e, dpos_t pos, dpos_t size, dcontext_t *context, int
e->draw = editint_draw;
}
e->draw = editint_draw;
}
-/*
!
+/*
*
* Handle the messages (edit the int).
*/
void editint_update(DEditInt *e, dtag_t tag, dval_t _val)
* Handle the messages (edit the int).
*/
void editint_update(DEditInt *e, dtag_t tag, dval_t _val)
@@
-122,7
+125,7
@@
void editint_update(DEditInt *e, dtag_t tag, dval_t _val)
}
}
}
}
-/*
!
+/*
*
* Draw the integer on the context.
*/
void editint_draw(DEditInt *e)
* Draw the integer on the context.
*/
void editint_draw(DEditInt *e)
diff --git
a/dt/editint.h
b/dt/editint.h
index af3c39641831ad75ae4183d158758f105ba51df0..928c2707a965ca981c9b7d0d4a3068115c0499db 100755
(executable)
--- a/
dt/editint.h
+++ b/
dt/editint.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
*#* Revision 1.1 2005/11/04 18:26:38 bernie
*#* Import into DevLib.
*#*
@@
-44,7
+47,7
@@
#define EDIS_CURSORLEFT BV(0)
#define EDIS_WRAP BV(1)
#define EDIS_CURSORLEFT BV(0)
#define EDIS_WRAP BV(1)
-/*
!
Type for edit style */
+/*
*
Type for edit style */
typedef uint16_t dstyle_t;
typedef struct DEditInt
typedef uint16_t dstyle_t;
typedef struct DEditInt
diff --git
a/fonts/fixed6x8.c
b/fonts/fixed6x8.c
index 2bddd77948494f0bb2aaee910c0a0f96e7ba6c86..46903b93070bb52ae31f8f96adedcf9bc9588fe6 100755
(executable)
--- a/
fonts/fixed6x8.c
+++ b/
fonts/fixed6x8.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2006/05/27 22:30:22 bernie
*#* Move 6x8 font to fonts/.
*#*
*#* Revision 1.1 2006/05/27 22:30:22 bernie
*#* Move 6x8 font to fonts/.
*#*
diff --git
a/gfx/bitmap.c
b/gfx/bitmap.c
index d74c7735487c64a2957a8e9c3c83381045162357..a40ba365eac78f4034c081651c081e87eb22d144 100755
(executable)
--- a/
gfx/bitmap.c
+++ b/
gfx/bitmap.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.11 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.10 2006/05/27 17:21:15 bernie
*#* Factor out, simplify and document clipping.
*#*
*#* Revision 1.10 2006/05/27 17:21:15 bernie
*#* Factor out, simplify and document clipping.
*#*
@@
-63,7
+66,7
@@
#endif
#endif
-/*
!
+/*
*
* Initialize a Bitmap structure with the provided parameters.
*
* \note The pen position is reset to the origin.
* Initialize a Bitmap structure with the provided parameters.
*
* \note The pen position is reset to the origin.
@@
-97,7
+100,7
@@
void gfx_bitmapInit(Bitmap *bm, uint8_t *raster, coord_t w, coord_t h)
}
}
-/*
!
+/*
*
* Clear the whole bitmap surface to the background color.
*
* \note This function does \b not update the current pen position.
* Clear the whole bitmap surface to the background color.
*
* \note This function does \b not update the current pen position.
@@
-113,7
+116,7
@@
void gfx_bitmapClear(Bitmap *bm)
#include <avr/pgmspace.h> /* FIXME: memcpy_P() */
#include <avr/pgmspace.h> /* FIXME: memcpy_P() */
-/*
!
+/*
*
* Copy a raster picture located in program memory in the bitmap.
* The size of the raster to copy *must* be the same of the raster bitmap.
*
* Copy a raster picture located in program memory in the bitmap.
* The size of the raster to copy *must* be the same of the raster bitmap.
*
diff --git
a/gfx/charts.c
b/gfx/charts.c
index 0b42185e714bee67ac297d0b3af90fdfb1cca7ec..c6f2bfa1d8e20840c2e115eadcb37a5618c60013 100755
(executable)
--- a/
gfx/charts.c
+++ b/
gfx/charts.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-26,6
+26,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2005/11/27 23:33:29 bernie
*#* Reorder includes.
*#*
*#* Revision 1.3 2005/11/27 23:33:29 bernie
*#* Reorder includes.
*#*
@@
-79,7
+82,7
@@
void chart_setScale(Bitmap *bm, chart_x_t xmin, chart_y_t ymin, chart_x_t xmax,
}
}
-/*
!
+/*
*
* Draw the chart axes
*/
void chart_drawAxis(Bitmap *bm)
* Draw the chart axes
*/
void chart_drawAxis(Bitmap *bm)
@@
-115,7
+118,7
@@
void chart_drawAxis(Bitmap *bm)
}
}
-/*
!
+/*
*
* Draw a set of \a curve_cnt connected segments, whose Y coordinates
* are identified by the \a curve_y array and X-coordinates are
* are evenly spaced by one virtual unit.
* Draw a set of \a curve_cnt connected segments, whose Y coordinates
* are identified by the \a curve_y array and X-coordinates are
* are evenly spaced by one virtual unit.
@@
-134,7
+137,7
@@
void chart_drawCurve(Bitmap *bm, const chart_y_t *curve_y, int curve_cnt)
}
}
-/*
!
+/*
*
* Disegna dei dot in corrispondenza delle coppie (dotsx[i];dotsy[i])
* Se dotsx e' NULL, i punti vengono disegnati ad intervalli regolari.
*/
* Disegna dei dot in corrispondenza delle coppie (dotsx[i];dotsy[i])
* Se dotsx e' NULL, i punti vengono disegnati ad intervalli regolari.
*/
diff --git
a/gfx/charts.h
b/gfx/charts.h
index a9ae3e2c7d3faadda1c4b2abca9f3369a1f7c9da..157cd92e98873fea657187bd18ef52f76c182b8d 100755
(executable)
--- a/
gfx/charts.h
+++ b/
gfx/charts.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-18,6
+18,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2005/11/27 23:36:18 bernie
*#* Use appconfig.h instead of cfg/config.h.
*#*
*#* Revision 1.3 2005/11/27 23:36:18 bernie
*#* Use appconfig.h instead of cfg/config.h.
*#*
@@
-49,7
+52,7
@@
#include <gfx/gfx.h> /* vcoord_t */
#include <appconfig.h> /* CONFIG_ stuff */
#include <gfx/gfx.h> /* vcoord_t */
#include <appconfig.h> /* CONFIG_ stuff */
-/*
!
+/*
*
* \name Width/height of the small ticks drawn over the axes
* \{
*/
* \name Width/height of the small ticks drawn over the axes
* \{
*/
@@
-57,7
+60,7
@@
#define TICKS_WIDTH 2
/*\}*/
#define TICKS_WIDTH 2
/*\}*/
-/*
!
+/*
*
* \name Chart frame dimensions
* \{
*/
* \name Chart frame dimensions
* \{
*/
diff --git
a/gfx/font.h
b/gfx/font.h
index 82d778edd6e24e619737dcbd2d9c826427204599..80bc5db4170cc3bf636c4bd5e50fffe3e07343f9 100755
(executable)
--- a/
gfx/font.h
+++ b/
gfx/font.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.6 2006/05/27 22:31:34 bernie
*#* Switch to a smaller default fount.
*#*
*#* Revision 1.6 2006/05/27 22:31:34 bernie
*#* Switch to a smaller default fount.
*#*
diff --git
a/gfx/gfx.h
b/gfx/gfx.h
index 5fe1e30016153f7ae0b1818acad099f014d3f942..5c2daf2b24f1fab733721308f0000b8c145beaa9 100755
(executable)
--- a/
gfx/gfx.h
+++ b/
gfx/gfx.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
* Copyright 1999 Bernardo Innocenti <bernie@develer.com>
* \file
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
* Copyright 1999 Bernardo Innocenti <bernie@develer.com>
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.17 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.16 2006/05/27 17:17:34 bernie
*#* Optimize away divisions in RAST_ADDR/MASK macros.
*#*
*#* Revision 1.16 2006/05/27 17:17:34 bernie
*#* Optimize away divisions in RAST_ADDR/MASK macros.
*#*
@@
-79,12
+82,12
@@
EXTERN_C_BEGIN
EXTERN_C_BEGIN
-/*
!
Common type for coordinates expressed in pixel units */
+/*
*
Common type for coordinates expressed in pixel units */
typedef int coord_t;
typedef unsigned int ucoord_t;
#if CONFIG_GFX_VCOORDS
typedef int coord_t;
typedef unsigned int ucoord_t;
#if CONFIG_GFX_VCOORDS
-/*
!
Common type for coordinates expressed in logical units */
+/*
*
Common type for coordinates expressed in logical units */
typedef float vcoord_t;
#endif /* CONFIG_GFX_VCOORDS */
typedef float vcoord_t;
#endif /* CONFIG_GFX_VCOORDS */
@@
-138,12
+141,12
@@
struct Font;
*/
typedef struct Bitmap
{
*/
typedef struct Bitmap
{
- uint8_t *raster; /*
!
< Pointer to byte array to hold the data */
- coord_t width, height; /*
!
< Width/Height in pixels */
- coord_t stride; /*
!
< Bytes per row. */
- coord_t penX, penY; /*
!
< Current pen position MoveTo()/LineTo() */
+ uint8_t *raster; /*
*
< Pointer to byte array to hold the data */
+ coord_t width, height; /*
*
< Width/Height in pixels */
+ coord_t stride; /*
*
< Bytes per row. */
+ coord_t penX, penY; /*
*
< Current pen position MoveTo()/LineTo() */
- Rect cr; /*
!
< Clip drawing inside this rectangle */
+ Rect cr; /*
*
< Clip drawing inside this rectangle */
#if CONFIG_GFX_TEXT
const struct Font *font;/**< Current font for text rendering. */
#if CONFIG_GFX_TEXT
const struct Font *font;/**< Current font for text rendering. */
@@
-160,7
+163,7
@@
typedef struct Bitmap
uint8_t styles;
#endif
#if CONFIG_GFX_VCOORDS
uint8_t styles;
#endif
#if CONFIG_GFX_VCOORDS
- /*
!
+ /*
*
* \name Logical coordinate system
* \{
*/
* \name Logical coordinate system
* \{
*/
@@
-178,10
+181,10
@@
typedef struct Bitmap
*/
typedef struct Image
{
*/
typedef struct Image
{
- const uint8_t *raster; /*
!
< Pointer to byte array to hold the data. */
- coord_t width; /*
!
< Raster width in pixels. */
- coord_t height; /*
!
< Raster height in pixels. */
- coord_t stride; /*
!
< Bytes per row. */
+ const uint8_t *raster; /*
*
< Pointer to byte array to hold the data. */
+ coord_t width; /*
*
< Raster width in pixels. */
+ coord_t height; /*
*
< Raster height in pixels. */
+ coord_t stride; /*
*
< Bytes per row. */
} Image;
#if CONFIG_BITMAP_FMT == BITMAP_FMT_PLANAR_H_MSB
} Image;
#if CONFIG_BITMAP_FMT == BITMAP_FMT_PLANAR_H_MSB
diff --git
a/gfx/gfx_p.h
b/gfx/gfx_p.h
index a599a8aa9ca8b903a58df4f2b3cd8f09f02abf70..738eb09ebbb6819296b0d258dd444efc2a0ecf92 100755
(executable)
--- a/
gfx/gfx_p.h
+++ b/
gfx/gfx_p.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.6 2006/05/27 17:17:34 bernie
*#* Optimize away divisions in RAST_ADDR/MASK macros.
*#*
*#* Revision 1.6 2006/05/27 17:17:34 bernie
*#* Optimize away divisions in RAST_ADDR/MASK macros.
*#*
@@
-63,7
+66,7
@@
#define BM_ADDR(bm, x, y) RAST_ADDR((bm)->raster, (x), (y), (bm)->stride)
#define BM_MASK(bm, x, y) RAST_MASK((bm)->raster, (x), (y))
#define BM_ADDR(bm, x, y) RAST_ADDR((bm)->raster, (x), (y), (bm)->stride)
#define BM_MASK(bm, x, y) RAST_MASK((bm)->raster, (x), (y))
-/*
!
+/*
*
* Plot a pixel in bitmap \a bm.
*
* \note bm is evaluated twice.
* Plot a pixel in bitmap \a bm.
*
* \note bm is evaluated twice.
@@
-72,7
+75,7
@@
#define BM_PLOT(bm, x, y) \
( *BM_ADDR(bm, x, y) |= BM_MASK(bm, x, y) )
#define BM_PLOT(bm, x, y) \
( *BM_ADDR(bm, x, y) |= BM_MASK(bm, x, y) )
-/*
!
+/*
*
* Clear a pixel in bitmap \a bm.
*
* \note bm is evaluated twice.
* Clear a pixel in bitmap \a bm.
*
* \note bm is evaluated twice.
@@
-81,7
+84,7
@@
#define BM_CLEAR(bm, x, y) \
( *BM_ADDR(bm, x, y) &= ~BM_MASK(bm, x, y) )
#define BM_CLEAR(bm, x, y) \
( *BM_ADDR(bm, x, y) &= ~BM_MASK(bm, x, y) )
-/*
!
+/*
*
* Set a pixel in bitmap \a bm to the specified color.
*
* \note bm is evaluated twice.
* Set a pixel in bitmap \a bm to the specified color.
*
* \note bm is evaluated twice.
@@
-95,7
+98,7
@@
*p = (*p & ~mask) | ((fg_pen) ? mask : 0); \
} while (0)
*p = (*p & ~mask) | ((fg_pen) ? mask : 0); \
} while (0)
-/*
!
+/*
*
* Get the value of the pixel in bitmap \a bm.
*
* \return The returned value is either 0 or 1.
* Get the value of the pixel in bitmap \a bm.
*
* \return The returned value is either 0 or 1.
diff --git
a/gfx/line.c
b/gfx/line.c
index 41e00cc7e44c411ec69064daed2296c38772f56c..280ed7b370cc8c4151ce0091955501a3f96b005c 100755
(executable)
--- a/
gfx/line.c
+++ b/
gfx/line.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.3 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.2 2006/02/10 12:26:58 bernie
*#* Check CONFIG_* constraints.
*#*
*#* Revision 1.2 2006/02/10 12:26:58 bernie
*#* Check CONFIG_* constraints.
*#*
@@
-40,7
+43,7
@@
#error CONFIG_GFX_VCOORDS must be defined to either 0 or 1
#endif
#error CONFIG_GFX_VCOORDS must be defined to either 0 or 1
#endif
-/*
!
+/*
*
* Draw a sloped line without performing clipping.
*
* Parameters are the same of gfx_line().
* Draw a sloped line without performing clipping.
*
* Parameters are the same of gfx_line().
@@
-128,7
+131,7
@@
static void gfx_lineUnclipped(Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, co
}
}
}
}
-//
!
Helper routine for gfx_line().
+//
/
Helper routine for gfx_line().
static int gfx_findRegion(int x, int y, Rect *cr)
{
int code = 0;
static int gfx_findRegion(int x, int y, Rect *cr)
{
int code = 0;
@@
-222,7
+225,7
@@
void gfx_line(Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2)
gfx_lineUnclipped(bm, x1, y1, x2, y2);
}
gfx_lineUnclipped(bm, x1, y1, x2, y2);
}
-/*
!
+/*
*
* Move the current pen position to the specified coordinates.
*
* The pen position is used for drawing operations such as
* Move the current pen position to the specified coordinates.
*
* The pen position is used for drawing operations such as
@@
-234,7
+237,7
@@
void gfx_moveTo(Bitmap *bm, coord_t x, coord_t y)
bm->penY = y;
}
bm->penY = y;
}
-/*
!
+/*
*
* Draw a line from the current pen position to the new coordinates.
*
* \note This function moves the current pen position to the
* Draw a line from the current pen position to the new coordinates.
*
* \note This function moves the current pen position to the
@@
-249,7
+252,7
@@
void gfx_lineTo(Bitmap *bm, coord_t x, coord_t y)
}
}
-/*
!
+/*
*
* Draw the perimeter of an hollow rectangle.
*
* \note The bottom-right corner of the rectangle is drawn at (x2-1;y2-1).
* Draw the perimeter of an hollow rectangle.
*
* \note The bottom-right corner of the rectangle is drawn at (x2-1;y2-1).
@@
-269,7
+272,7
@@
void gfx_rectDraw(Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2)
}
}
-/*
!
+/*
*
* Fill a rectangular area with \a color.
*
* \note The bottom-right border of the rectangle is not drawn.
* Fill a rectangular area with \a color.
*
* \note The bottom-right border of the rectangle is not drawn.
@@
-312,7
+315,7
@@
void gfx_rectFillC(Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2, u
}
}
-/*
!
+/*
*
* Draw a filled rectangle.
*
* \note The bottom-right border of the rectangle is not drawn.
* Draw a filled rectangle.
*
* \note The bottom-right border of the rectangle is not drawn.
@@
-325,7
+328,7
@@
void gfx_rectFill(Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2)
}
}
-/*
!
+/*
*
* Clear a rectangular area.
*
* \note The bottom-right border of the rectangle is not cleared.
* Clear a rectangular area.
*
* \note The bottom-right border of the rectangle is not cleared.
@@
-339,7
+342,7
@@
void gfx_rectClear(Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2)
#if CONFIG_GFX_VCOORDS
#if CONFIG_GFX_VCOORDS
-/*
!
+/*
*
* Imposta gli estremi del sistema di coordinate cartesiane rispetto
* al rettangolo di clipping della bitmap.
*/
* Imposta gli estremi del sistema di coordinate cartesiane rispetto
* al rettangolo di clipping della bitmap.
*/
@@
-359,7
+362,7
@@
void gfx_setViewRect(Bitmap *bm, vcoord_t x1, vcoord_t y1, vcoord_t x2, vcoord_t
}
}
-/*
!
+/*
*
* Transform a coordinate from the current reference system to a
* pixel offset within the bitmap.
*/
* Transform a coordinate from the current reference system to a
* pixel offset within the bitmap.
*/
@@
-368,7
+371,7
@@
coord_t gfx_transformX(Bitmap *bm, vcoord_t x)
return bm->cr.xmin + (coord_t)((x - bm->orgX) * bm->scaleX);
}
return bm->cr.xmin + (coord_t)((x - bm->orgX) * bm->scaleX);
}
-/*
!
+/*
*
* Transform a coordinate from the current reference system to a
* pixel offset within the bitmap.
*/
* Transform a coordinate from the current reference system to a
* pixel offset within the bitmap.
*/
@@
-378,7
+381,7
@@
coord_t gfx_transformY(Bitmap *bm, vcoord_t y)
}
}
-/*
!
+/*
*
* Draw a line from (x1;y1) to (x2;y2).
*/
void gfx_vline(Bitmap *bm, vcoord_t x1, vcoord_t y1, vcoord_t x2, vcoord_t y2)
* Draw a line from (x1;y1) to (x2;y2).
*/
void gfx_vline(Bitmap *bm, vcoord_t x1, vcoord_t y1, vcoord_t x2, vcoord_t y2)
diff --git
a/gfx/text.c
b/gfx/text.c
index 8e343efeec6b0f693a6d85dca97be8da477f33cd..f296be78d3ae11560e0f1fbbf43489ba39ae9ee3 100755
(executable)
--- a/
gfx/text.c
+++ b/
gfx/text.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.13 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.12 2006/05/25 23:35:22 bernie
*#* Implement correct and faster clipping for algo text.
*#*
*#* Revision 1.12 2006/05/25 23:35:22 bernie
*#* Implement correct and faster clipping for algo text.
*#*
@@
-123,7
+126,7
@@
*/
static bool ansi_mode = false;
*/
static bool ansi_mode = false;
-/*
!
+/*
*
* Move (imaginary) cursor to coordinates specified.
*/
void text_setCoord(struct Bitmap *bm, int x, int y)
* Move (imaginary) cursor to coordinates specified.
*/
void text_setCoord(struct Bitmap *bm, int x, int y)
@@
-133,7
+136,7
@@
void text_setCoord(struct Bitmap *bm, int x, int y)
}
}
-/*
!
+/*
*
* Move (imaginary) cursor to column and row specified.
* Next text write will start a that row and col.
*/
* Move (imaginary) cursor to column and row specified.
* Next text write will start a that row and col.
*/
@@
-148,7
+151,7
@@
void text_moveTo(struct Bitmap *bm, int row, int col)
}
}
-/*
!
+/*
*
* Render char \a c on Bitmap \a bm.
*/
static int text_putglyph(char c, struct Bitmap *bm)
* Render char \a c on Bitmap \a bm.
*/
static int text_putglyph(char c, struct Bitmap *bm)
@@
-303,7
+306,7
@@
static int text_putglyph(char c, struct Bitmap *bm)
}
}
-/*
!
+/*
*
* Render char \c c, with (currently) limited ANSI escapes
* emulation support and '\n' for newline.
*/
* Render char \c c, with (currently) limited ANSI escapes
* emulation support and '\n' for newline.
*/
@@
-345,7
+348,7
@@
int text_putchar(char c, struct Bitmap *bm)
}
}
-/*
!
+/*
*
* Clear the screen and reset cursor position
*/
void text_clear(struct Bitmap *bmp)
* Clear the screen and reset cursor position
*/
void text_clear(struct Bitmap *bmp)
diff --git
a/gfx/text.h
b/gfx/text.h
index 4f603061896be9e971cd0d1996ee5abe9f3d0279..3726913a0d0847ad82ef8dc44814368690081800 100755
(executable)
--- a/
gfx/text.h
+++ b/
gfx/text.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.6 2006/04/27 05:39:24 bernie
*#* Enhance text rendering to arbitrary x,y coords.
*#*
*#* Revision 1.6 2006/04/27 05:39:24 bernie
*#* Enhance text rendering to arbitrary x,y coords.
*#*
@@
-75,7
+78,7
@@
#include <stdarg.h>
#include <stdarg.h>
-/*
!
+/*
*
* \name Style flags
* \see text_style()
* \{
* \name Style flags
* \see text_style()
* \{
@@
-95,18
+98,18
@@
| STYLEF_STRIKEOUT | STYLEF_TALL)
/*\}*/
| STYLEF_STRIKEOUT | STYLEF_TALL)
/*\}*/
-/*
!
+/*
*
* \name Formatting flags for text rendering
* \see text_xprintf()
* \{
*/
* \name Formatting flags for text rendering
* \see text_xprintf()
* \{
*/
-#define TEXT_NORMAL 0 /*
!
< Normal mode */
-#define TEXT_FILL BV(13) /*
!
< Fill rest of line with spaces */
-#define TEXT_CENTER BV(14) /*
!
< Center string in line */
-#define TEXT_RIGHT BV(15) /*
!
< Right aligned */
+#define TEXT_NORMAL 0 /*
*
< Normal mode */
+#define TEXT_FILL BV(13) /*
*
< Fill rest of line with spaces */
+#define TEXT_CENTER BV(14) /*
*
< Center string in line */
+#define TEXT_RIGHT BV(15) /*
*
< Right aligned */
/*\}*/
/*\}*/
-/*
!
Escape sequences codes */
+/*
*
Escape sequences codes */
#define ANSI_ESC_CLEARSCREEN 'c'
#define ANSI_ESC_CLEARSCREEN 'c'
diff --git
a/gfx/text_format.c
b/gfx/text_format.c
index 433794add1ff315c1ad817288f000f6dcf8ccc3b..875a65d22ddc5984a22976517b1baa341802e53d 100755
(executable)
--- a/
gfx/text_format.c
+++ b/
gfx/text_format.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.10 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.9 2006/04/27 05:39:24 bernie
*#* Enhance text rendering to arbitrary x,y coords.
*#*
*#* Revision 1.9 2006/04/27 05:39:24 bernie
*#* Enhance text rendering to arbitrary x,y coords.
*#*
@@
-90,7
+93,7
@@
#include <stdarg.h>
#include <string.h> /* strlen() */
#include <stdarg.h>
#include <string.h> /* strlen() */
-/*
!
+/*
*
* Render string \a str in Bitmap \a bm at current cursor position
*
* \note Text formatting functions are also available with an _P suffix
* Render string \a str in Bitmap \a bm at current cursor position
*
* \note Text formatting functions are also available with an _P suffix
@@
-111,7
+114,7
@@
int PGM_FUNC(text_puts)(const char * PGM_ATTR str, struct Bitmap *bm)
}
}
-/*
!
+/*
*
* vprintf()-like formatter to render text in a Bitmap.
*
* Perform vprintf()-like formatting on the \a fmt format string using the
* vprintf()-like formatter to render text in a Bitmap.
*
* Perform vprintf()-like formatting on the \a fmt format string using the
@@
-126,7
+129,7
@@
int PGM_FUNC(text_vprintf)(struct Bitmap *bm, const char * PGM_ATTR fmt, va_list
return PGM_FUNC(_formatted_write)(fmt, (void (*)(char, void *))text_putchar, bm, ap);
}
return PGM_FUNC(_formatted_write)(fmt, (void (*)(char, void *))text_putchar, bm, ap);
}
-/*
!
+/*
*
* printf()-like formatter to render text in a Bitmap.
*
* Perform printf()-like formatting on the \a fmt format string.
* printf()-like formatter to render text in a Bitmap.
*
* Perform printf()-like formatting on the \a fmt format string.
@@
-294,7
+297,7
@@
static int text_charWidth(int c, struct TextWidthData *twd)
return c;
}
return c;
}
-/*
!
+/*
*
* Return the width in pixels of a vprintf()-formatted string.
*/
int PGM_FUNC(text_vwidthf)(
* Return the width in pixels of a vprintf()-formatted string.
*/
int PGM_FUNC(text_vwidthf)(
@@
-316,7
+319,7
@@
int PGM_FUNC(text_vwidthf)(
}
}
-/*
!
+/*
*
* Return the width in pixels of a printf()-formatted string.
*/
int PGM_FUNC(text_widthf)(struct Bitmap *bm, const char * PGM_ATTR fmt, ...)
* Return the width in pixels of a printf()-formatted string.
*/
int PGM_FUNC(text_widthf)(struct Bitmap *bm, const char * PGM_ATTR fmt, ...)
diff --git
a/gfx/win.c
b/gfx/win.c
index 22514b74f58cbe79c6dc9885ffc67a8190d6941f..a37f864163163e7754143d7e696aff67518ce58c 100755
(executable)
--- a/
gfx/win.c
+++ b/
gfx/win.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
@@
-20,6
+20,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2006/02/10 12:25:41 bernie
*#* Add missing header.
*#*
*#* Revision 1.3 2006/02/10 12:25:41 bernie
*#* Add missing header.
*#*
diff --git
a/gfx/win.h
b/gfx/win.h
index 14a01681592b0d832167e3c292d60b5507a0a4f6..620c7c4ca79a761cf579c796f206c2b4625a8a3e 100755
(executable)
--- a/
gfx/win.h
+++ b/
gfx/win.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
@@
-20,6
+20,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.3 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.2 2006/01/26 00:36:48 bernie
*#* Const correctness for some new functions.
*#*
*#* Revision 1.2 2006/01/26 00:36:48 bernie
*#* Const correctness for some new functions.
*#*
diff --git
a/gui/menu.c
b/gui/menu.c
index 289b9b6c92f792cbc1d5683d49053cca5f741125..a9f74ec63beaab2ba3659603114c4ddf1343a7a8 100755
(executable)
--- a/
gui/menu.c
+++ b/
gui/menu.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.6 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.5 2006/06/03 13:58:01 bernie
*#* Fix recursive timeout and add exit status information.
*#*
*#* Revision 1.5 2006/06/03 13:58:01 bernie
*#* Fix recursive timeout and add exit status information.
*#*
@@
-541,7
+544,7
@@
iptr_t menu_handle(const struct Menu *menu)
}
}
-/*
!
+/*
*
* Set flags on a menuitem.
*
* \param menu Menu owner of the item to change.
* Set flags on a menuitem.
*
* \param menu Menu owner of the item to change.
@@
-561,7
+564,7
@@
int menu_setFlags(struct Menu *menu, int idx, int flags)
}
}
-/*
!
+/*
*
* Clear flags on a menuitem.
*
* \param menu Menu owner of the item to change.
* Clear flags on a menuitem.
*
* \param menu Menu owner of the item to change.
diff --git
a/gui/menu.h
b/gui/menu.h
index 2956f0769bbae32848c510c4b0b4b485bf49e77b..c46c7615875e09627433a16a7d86c5e363ed99c8 100755
(executable)
--- a/
gui/menu.h
+++ b/
gui/menu.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.3 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.2 2006/06/03 13:58:02 bernie
*#* Fix recursive timeout and add exit status information.
*#*
*#* Revision 1.2 2006/06/03 13:58:02 bernie
*#* Fix recursive timeout and add exit status information.
*#*
@@
-77,10
+80,10
@@
typedef iptr_t (*MenuHook)(iptr_t userdata);
*/
typedef struct MenuItem
{
*/
typedef struct MenuItem
{
- const_iptr_t label; /*
!
< Item label (ID or ptr to string, 0 to disable) */
- int flags; /*
!
< See MIF_#? definitions below */
- MenuHook hook; /*
!
< Callback function (NULL to terminate item list) */
- iptr_t userdata; /*
!
< User data to be passed back to the hook */
+ const_iptr_t label; /*
*
< Item label (ID or ptr to string, 0 to disable) */
+ int flags; /*
*
< See MIF_#? definitions below */
+ MenuHook hook; /*
*
< Callback function (NULL to terminate item list) */
+ iptr_t userdata; /*
*
< User data to be passed back to the hook */
} MenuItem;
/**
} MenuItem;
/**
@@
-90,20
+93,20
@@
typedef struct MenuItem
#define MIF_EXCLUDE_MASK 0x00FF /**< Mask for mutual exclusion map (shared with priority). */
#define MIF_PRI_MASK 0x00FF /**< Mask for priority value (shared with mutual exclusion). */
#define MIF_PRI(x) ((x) & MIF_PRI_MASK) /**< Set menu item priority. */
#define MIF_EXCLUDE_MASK 0x00FF /**< Mask for mutual exclusion map (shared with priority). */
#define MIF_PRI_MASK 0x00FF /**< Mask for priority value (shared with mutual exclusion). */
#define MIF_PRI(x) ((x) & MIF_PRI_MASK) /**< Set menu item priority. */
-#define MIF_EXCLUDE_0 BV(0) /*
!
< Exclude item 0 when this item is checked */
-#define MIF_EXCLUDE_1 BV(1) /*
!
< Exclude item 1 when this item is checked */
-#define MIF_EXCLUDE_2 BV(2) /*
!
< Exclude item 2 when this item is checked */
-#define MIF_EXCLUDE_3 BV(3) /*
!
< Exclude item 3 when this item is checked */
-#define MIF_EXCLUDE_4 BV(4) /*
!
< Exclude item 4 when this item is checked */
-#define MIF_EXCLUDE_5 BV(5) /*
!
< Exclude item 5 when this item is checked */
-#define MIF_EXCLUDE_6 BV(6) /*
!
< Exclude item 6 when this item is checked */
-#define MIF_EXCLUDE_7 BV(7) /*
!
< Exclude item 7 when this item is checked */
-#define MIF_CHECKED BV(8) /*
!
< Item is currently checked */
-#define MIF_CHECKIT BV(9) /*
!
< Automatically check this item when selected */
-#define MIF_TOGGLE BV(10) /*
!
< Toggle MIF_CHECKED when item is selected */
-#define MIF_HIDDEN BV(11) /*
!
< This menu item is not visible */
-#define MIF_DISABLED BV(12) /*
!
< This menu item is not visible */
-#define MIF_RAMLABEL BV(13) /*
!
< Item label is stored in RAM, not in program memory */
+#define MIF_EXCLUDE_0 BV(0) /*
*
< Exclude item 0 when this item is checked */
+#define MIF_EXCLUDE_1 BV(1) /*
*
< Exclude item 1 when this item is checked */
+#define MIF_EXCLUDE_2 BV(2) /*
*
< Exclude item 2 when this item is checked */
+#define MIF_EXCLUDE_3 BV(3) /*
*
< Exclude item 3 when this item is checked */
+#define MIF_EXCLUDE_4 BV(4) /*
*
< Exclude item 4 when this item is checked */
+#define MIF_EXCLUDE_5 BV(5) /*
*
< Exclude item 5 when this item is checked */
+#define MIF_EXCLUDE_6 BV(6) /*
*
< Exclude item 6 when this item is checked */
+#define MIF_EXCLUDE_7 BV(7) /*
*
< Exclude item 7 when this item is checked */
+#define MIF_CHECKED BV(8) /*
*
< Item is currently checked */
+#define MIF_CHECKIT BV(9) /*
*
< Automatically check this item when selected */
+#define MIF_TOGGLE BV(10) /*
*
< Toggle MIF_CHECKED when item is selected */
+#define MIF_HIDDEN BV(11) /*
*
< This menu item is not visible */
+#define MIF_DISABLED BV(12) /*
*
< This menu item is not visible */
+#define MIF_RAMLABEL BV(13) /*
*
< Item label is stored in RAM, not in program memory */
/* \} */
/**
/* \} */
/**
@@
-111,11
+114,11
@@
typedef struct MenuItem
*/
typedef struct Menu
{
*/
typedef struct Menu
{
- MenuItem *items; /*
!
< Array of items (end with a NULL hook) */
- const_iptr_t title; /*
!
< Menu title (ID or ptr to string, 0 to disable) */
- int flags; /*
!
< See MF_#? definitions below */
- struct Bitmap *bitmap; /*
!
< Bitmap where the menu is rendered */
- int selected; /*
!
< Initial selection (written to if #MF_SAVESEL is set). */
+ MenuItem *items; /*
*
< Array of items (end with a NULL hook) */
+ const_iptr_t title; /*
*
< Menu title (ID or ptr to string, 0 to disable) */
+ int flags; /*
*
< See MF_#? definitions below */
+ struct Bitmap *bitmap; /*
*
< Bitmap where the menu is rendered */
+ int selected; /*
*
< Initial selection (written to if #MF_SAVESEL is set). */
} Menu;
/**
} Menu;
/**
diff --git
a/hw/hw_buzzer.h
b/hw/hw_buzzer.h
index 08d6bc54e30ef8c1da20370e92c2e8b846dd106d..8a7531898cdee5a2dbfb36887782fcb949d326b9 100755
(executable)
--- a/
hw/hw_buzzer.h
+++ b/
hw/hw_buzzer.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2006/02/10 12:31:03 bernie
*#* Add templates for hw definitions.
*#*
*#* Revision 1.1 2006/02/10 12:31:03 bernie
*#* Add templates for hw definitions.
*#*
diff --git
a/hw/hw_kbd.h
b/hw/hw_kbd.h
index c4f684b82019cc417ecec6fec14ec8d7e4819a7a..1f62462b7674f8bc5541aa44a212328bd37ee17c 100755
(executable)
--- a/
hw/hw_kbd.h
+++ b/
hw/hw_kbd.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2006/03/22 09:51:27 bernie
*#* Wrap C++ stuff.
*#*
*#* Revision 1.3 2006/03/22 09:51:27 bernie
*#* Wrap C++ stuff.
*#*
diff --git
a/hw/kbd_map.h
b/hw/kbd_map.h
index 30969e532b3ccde28a8447553de8e42d32a7fdbc..02ee13e31bc934614dad4c164bd8dcf02488ef90 100755
(executable)
--- a/
hw/kbd_map.h
+++ b/
hw/kbd_map.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2006/02/10 12:31:03 bernie
*#* Add templates for hw definitions.
*#*
*#* Revision 1.1 2006/02/10 12:31:03 bernie
*#* Add templates for hw definitions.
*#*
@@
-27,12
+30,12
@@
#include <cfg/macros.h>
#include <cfg/macros.h>
-/*
!
+/*
*
* Type for keyboard mask.
*/
typedef uint16_t keymask_t;
* Type for keyboard mask.
*/
typedef uint16_t keymask_t;
-/*
!
+/*
*
* \name Keycodes.
*/
/*@{*/
* \name Keycodes.
*/
/*@{*/
@@
-41,8
+44,8
@@
typedef uint16_t keymask_t;
#define K_OK BV(2)
#define K_CANCEL BV(3)
#define K_OK BV(2)
#define K_CANCEL BV(3)
-#define K_REPEAT BV(14) /*
!
< This is a repeated keyevent. */
-#define K_TIMEOUT BV(15) /*
!
< Fake key event for timeouts. */
+#define K_REPEAT BV(14) /*
*
< This is a repeated keyevent. */
+#define K_TIMEOUT BV(15) /*
*
< Fake key event for timeouts. */
/*@}*/
/*@}*/
diff --git
a/kern/file.h
b/kern/file.h
index 8984af82d185bae950a4dabb3033bcad346f77c7..8229c0f7c5cbeb9d1e1ee69041d96cd443f560e7 100755
(executable)
--- a/
kern/file.h
+++ b/
kern/file.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* 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.6 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-49,7
+52,7
@@
typedef bool (*CloseFunc_t) (struct _KFile *fd);
typedef bool (*OpenFunc_t) (struct _KFile *fd, const char *name, int mode);
typedef bool (*OpenFunc_t) (struct _KFile *fd, const char *name, int mode);
-/*
!
+/*
*
* Context data for callback functions which operate on
* pseudo files.
*/
* Context data for callback functions which operate on
* pseudo files.
*/
diff --git
a/kern/monitor.c
b/kern/monitor.c
index d7512151efabc9cfdb7078b7292eabedcc178999..f9cda83d29cff15c0fcca0eb7b2a23aef0eb6eb9 100755
(executable)
--- a/
kern/monitor.c
+++ b/
kern/monitor.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.9 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.8 2006/03/22 09:49:22 bernie
*#* Reduce memory usage.
*#*
*#* Revision 1.8 2006/03/22 09:49:22 bernie
*#* Reduce memory usage.
*#*
diff --git
a/kern/monitor.h
b/kern/monitor.h
index 3703641fe66d14bb72ee7c71dbb8768cf2328b2a..86d9284b370dfccdb0b0b8a5e16969897951decd 100755
(executable)
--- a/
kern/monitor.h
+++ b/
kern/monitor.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.5 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.4 2006/02/24 01:17:05 bernie
*#* Update for new emulator.
*#*
*#* Revision 1.4 2006/02/24 01:17:05 bernie
*#* Update for new emulator.
*#*
@@
-40,7
+43,7
@@
#if CONFIG_KERN_MONITOR
#if CONFIG_KERN_MONITOR
-/*
!
+/*
*
* Start the kernel monitor. It is a special process which checks every second the stacks of the
* running processes trying to detect stack overflows.
*
* Start the kernel monitor. It is a special process which checks every second the stacks of the
* running processes trying to detect stack overflows.
*
@@
-53,7
+56,7
@@
void monitor_start(size_t stacksize, cpustack_t *stack);
void monitor_start(size_t stacksize, cpustack_t *stack);
-/*
!
+/*
*
* Manually check if a given stack has overflown. This is used to check for stacks
* of processes handled externally form the kernel, or for other stacks (for instance
* the interrupt supervisor stack).
* Manually check if a given stack has overflown. This is used to check for stacks
* of processes handled externally form the kernel, or for other stacks (for instance
* the interrupt supervisor stack).
@@
-64,7
+67,7
@@
void monitor_start(size_t stacksize, cpustack_t *stack);
size_t monitor_checkStack(cpustack_t *stack_base, size_t stack_size);
size_t monitor_checkStack(cpustack_t *stack_base, size_t stack_size);
-/*
!
Print a report of the stack status through kdebug */
+/*
*
Print a report of the stack status through kdebug */
void monitor_report(void);
void monitor_report(void);
diff --git
a/kern/msg.h
b/kern/msg.h
index 3ccfb5260db53e10c35f5167d66437b912fc7821..f46b16795f79bad384e5eba2a445a1b5693b005e 100755
(executable)
--- a/
kern/msg.h
+++ b/
kern/msg.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-18,6
+18,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.9 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.8 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.8 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-50,7
+53,7
@@
#include <mware/list.h>
#include <mware/list.h>
-/*
!
+/*
*
* Handle queues of messages associated an action.
*
* A message port is an abstraction used to exchange information
* Handle queues of messages associated an action.
*
* A message port is an abstraction used to exchange information
@@
-186,20
+189,20
@@
*/
typedef struct MsgPort
{
*/
typedef struct MsgPort
{
- List queue; /*
!
< Messages queued at this port. */
- Event event; /*
!
< Event to trigger when a message arrives. */
+ List queue; /*
*
< Messages queued at this port. */
+ Event event; /*
*
< Event to trigger when a message arrives. */
} MsgPort;
typedef struct Msg
{
} MsgPort;
typedef struct Msg
{
- Node link; /*
!
< Link into message port queue. */
- MsgPort *replyPort; /*
!
< Port to which the msg is to be replied. */
+ Node link; /*
*
< Link into message port queue. */
+ MsgPort *replyPort; /*
*
< Port to which the msg is to be replied. */
/* User data may follow */
} Msg;
/* User data may follow */
} Msg;
-/*
!
+/*
*
* Lock a message port.
*
* This is required before reading or manipulating
* Lock a message port.
*
* This is required before reading or manipulating
@@
-219,7
+222,7
@@
INLINE void msg_lockPort(MsgPort *port)
proc_forbid();
}
proc_forbid();
}
-/*
!
+/*
*
* Unlock a message port.
*
* \see msg_lockPort()
* Unlock a message port.
*
* \see msg_lockPort()
@@
-230,14
+233,14
@@
INLINE void msg_unlockPort(MsgPort *port)
}
}
-/*
!
Initialize a message port */
+/*
*
Initialize a message port */
INLINE void msg_initPort(MsgPort *port, Event event)
{
LIST_INIT(&port->queue);
port->event = event;
}
INLINE void msg_initPort(MsgPort *port, Event event)
{
LIST_INIT(&port->queue);
port->event = event;
}
-/*
!
Queue \a msg into \a port, triggering the associated event */
+/*
*
Queue \a msg into \a port, triggering the associated event */
INLINE void msg_put(MsgPort *port, Msg *msg)
{
msg_portLock(port);
INLINE void msg_put(MsgPort *port, Msg *msg)
{
msg_portLock(port);
@@
-247,7
+250,7
@@
INLINE void msg_put(MsgPort *port, Msg *msg)
event_do(&port->event);
}
event_do(&port->event);
}
-/*
!
+/*
*
* Get the first message from the queue of \a port.
*
* \return Pointer to the message or NULL if the port was empty.
* Get the first message from the queue of \a port.
*
* \return Pointer to the message or NULL if the port was empty.
@@
-263,7
+266,7
@@
INLINE Msg *msg_get(MsgPort *port)
return msg;
}
return msg;
}
-/*
!
Peek the first message in the queue of \a port, or NULL if the port is empty. */
+/*
*
Peek the first message in the queue of \a port, or NULL if the port is empty. */
INLINE Msg *msg_peek(MsgPort *port)
{
Msg *msg;
INLINE Msg *msg_peek(MsgPort *port)
{
Msg *msg;
@@
-277,7
+280,7
@@
INLINE Msg *msg_peek(MsgPort *port)
return msg;
}
return msg;
}
-/*
!
Send back (reply) \a msg to its sender. */
+/*
*
Send back (reply) \a msg to its sender. */
INLINE void msg_reply(Msg *msg)
{
msg_put(msg->replyPort, msg);
INLINE void msg_reply(Msg *msg)
{
msg_put(msg->replyPort, msg);
diff --git
a/kern/proc.c
b/kern/proc.c
index ecd4ca41579ab3c7ed0c7a1234fb5a873f5659a8..f8c7fb8df3330138729574a189c1401350c10be8 100755
(executable)
--- a/
kern/proc.c
+++ b/
kern/proc.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
@@
-17,6
+17,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.31 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.30 2006/03/27 04:49:23 bernie
*#* CPU_IDLE(): Fix for new emulator.
*#*
*#* Revision 1.30 2006/03/27 04:49:23 bernie
*#* CPU_IDLE(): Fix for new emulator.
*#*
@@
-118,7
+121,7
@@
#include <string.h> /* memset() */
#include <string.h> /* memset() */
-/*
!
+/*
*
* CPU dependent context switching routines.
*
* \note This function *MUST* preserve also the status of the interrupts.
* CPU dependent context switching routines.
*
* \note This function *MUST* preserve also the status of the interrupts.
@@
-151,7
+154,7
@@
uint16_t Quantum;
extern List StackFreeList;
#endif
extern List StackFreeList;
#endif
-/*
!
The main process (the one that executes main()). */
+/*
*
The main process (the one that executes main()). */
struct Process MainProcess;
struct Process MainProcess;
@@
-194,7
+197,7
@@
void proc_init(void)
}
}
-/*
!
+/*
*
* Create a new process, starting at the provided entry point.
*
* \return Process structure of new created process
* Create a new process, starting at the provided entry point.
*
* \return Process structure of new created process
@@
-283,7
+286,7
@@
struct Process *proc_new_with_name(UNUSED(const char *, name), void (*entry)(voi
return proc;
}
return proc;
}
-/*
!
Rename a process */
+/*
*
Rename a process */
void proc_rename(struct Process *proc, const char *name)
{
#if CONFIG_KERN_MONITOR
void proc_rename(struct Process *proc, const char *name)
{
#if CONFIG_KERN_MONITOR
@@
-294,7
+297,7
@@
void proc_rename(struct Process *proc, const char *name)
}
}
-/*
!
+/*
*
* System scheduler: pass CPU control to the next process in
* the ready queue.
*
* System scheduler: pass CPU control to the next process in
* the ready queue.
*
@@
-366,7
+369,7
@@
void proc_schedule(void)
}
}
-/*
!
+/*
*
* Terminate the current process
*/
void proc_exit(void)
* Terminate the current process
*/
void proc_exit(void)
@@
-407,7
+410,7
@@
void proc_exit(void)
}
}
-/*
!
+/*
*
* Co-operative context switch
*/
void proc_switch(void)
* Co-operative context switch
*/
void proc_switch(void)
@@
-423,7
+426,7
@@
void proc_switch(void)
}
}
-/*
!
+/*
*
* Get the pointer to the current process
*/
struct Process *proc_current(void)
* Get the pointer to the current process
*/
struct Process *proc_current(void)
@@
-431,7
+434,7
@@
struct Process *proc_current(void)
return CurrentProcess;
}
return CurrentProcess;
}
-/*
!
+/*
*
* Get the pointer to the user data of the current process
*/
iptr_t proc_current_user_data(void)
* Get the pointer to the user data of the current process
*/
iptr_t proc_current_user_data(void)
@@
-442,7
+445,7
@@
iptr_t proc_current_user_data(void)
#if CONFIG_KERN_PREEMPTIVE
#if CONFIG_KERN_PREEMPTIVE
-/*
!
+/*
*
* Disable preemptive task switching.
*
* The scheduler maintains a per-process nesting counter. Task switching is
* Disable preemptive task switching.
*
* The scheduler maintains a per-process nesting counter. Task switching is
@@
-462,7
+465,7
@@
void proc_forbid(void)
++CurrentProcess->forbid_cnt;
}
++CurrentProcess->forbid_cnt;
}
-/*
!
+/*
*
* Re-enable preemptive task switching.
*
* \sa proc_forbid()
* Re-enable preemptive task switching.
*
* \sa proc_forbid()
@@
-480,7
+483,7
@@
void proc_permit(void)
#include <drv/timer.h>
#include <drv/timer.h>
-/*
!
+/*
*
* Proc scheduling test subthread 1
*/
static void NORETURN proc_test_thread1(void)
* Proc scheduling test subthread 1
*/
static void NORETURN proc_test_thread1(void)
@@
-493,7
+496,7
@@
static void NORETURN proc_test_thread1(void)
}
}
}
}
-/*
!
+/*
*
* Proc scheduling test subthread 2
*/
static void NORETURN proc_test_thread2(void)
* Proc scheduling test subthread 2
*/
static void NORETURN proc_test_thread2(void)
@@
-509,7
+512,7
@@
static void NORETURN proc_test_thread2(void)
static cpustack_t proc_test_stack1[CONFIG_KERN_DEFSTACKSIZE/sizeof(cpustack_t)];
static cpustack_t proc_test_stack2[CONFIG_KERN_DEFSTACKSIZE/sizeof(cpustack_t)];
static cpustack_t proc_test_stack1[CONFIG_KERN_DEFSTACKSIZE/sizeof(cpustack_t)];
static cpustack_t proc_test_stack2[CONFIG_KERN_DEFSTACKSIZE/sizeof(cpustack_t)];
-/*
!
+/*
*
* Proc scheduling test
*/
void NORETURN proc_test(void)
* Proc scheduling test
*/
void NORETURN proc_test(void)
diff --git
a/kern/proc.h
b/kern/proc.h
index 386594e0cbd0edc8de1669df813f9212516d4f1b..bcd0a07bc02d184e72465d6ae28f45757e43b31f 100755
(executable)
--- a/
kern/proc.h
+++ b/
kern/proc.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.12 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.11 2006/02/21 16:06:55 bernie
*#* Cleanup/update process scheduling.
*#*
*#* Revision 1.11 2006/02/21 16:06:55 bernie
*#* Cleanup/update process scheduling.
*#*
@@
-76,7
+79,7
@@
void proc_rename(struct Process* proc, const char* name);
INLINE void proc_permit(void) { /* nop */ }
#endif
INLINE void proc_permit(void) { /* nop */ }
#endif
-/*
!
+/*
*
* Execute a block of \a CODE atomically with respect to task scheduling.
*/
#define PROC_ATOMIC(CODE) \
* Execute a block of \a CODE atomically with respect to task scheduling.
*/
#define PROC_ATOMIC(CODE) \
diff --git
a/kern/proc_p.h
b/kern/proc_p.h
index 7ac481760e123f3c96208581bb8070ebcbda5b44..9ab3dcbf1f24eb4e808d1e1b22c897950a4a8884 100755
(executable)
--- a/
kern/proc_p.h
+++ b/
kern/proc_p.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2001, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2001, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.16 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.15 2005/11/27 23:36:19 bernie
*#* Use appconfig.h instead of cfg/config.h.
*#*
*#* Revision 1.15 2005/11/27 23:36:19 bernie
*#* Use appconfig.h instead of cfg/config.h.
*#*
@@
-85,23
+88,23
@@
typedef struct Process
{
typedef struct Process
{
- Node link; /*
!
< Link Process into scheduler lists */
- cpustack_t *stack; /*
!
< Per-process SP */
- iptr_t user_data; /*
!
< Custom data passed to the process */
+ Node link; /*
*
< Link Process into scheduler lists */
+ cpustack_t *stack; /*
*
< Per-process SP */
+ iptr_t user_data; /*
*
< Custom data passed to the process */
#if CONFIG_KERN_SIGNALS
#if CONFIG_KERN_SIGNALS
- sigmask_t sig_wait; /*
!
< Signals the process is waiting for */
- sigmask_t sig_recv; /*
!
< Received signals */
+ sigmask_t sig_wait; /*
*
< Signals the process is waiting for */
+ sigmask_t sig_recv; /*
*
< Received signals */
#endif
#if CONFIG_KERN_PREEMPTIVE
#endif
#if CONFIG_KERN_PREEMPTIVE
- int forbid_cnt; /*
!
< Nesting count for proc_forbid()/proc_permit(). */
+ int forbid_cnt; /*
*
< Nesting count for proc_forbid()/proc_permit(). */
#endif
#if CONFIG_KERN_HEAP
#endif
#if CONFIG_KERN_HEAP
- uint16_t flags; /*
!
< Flags */
- cpustack_t *stack_base; /*
!
< Base of process stack */
- size_t stack_size; /*
!
< Size of process stack */
+ uint16_t flags; /*
*
< Flags */
+ cpustack_t *stack_base; /*
*
< Base of process stack */
+ size_t stack_size; /*
*
< Size of process stack */
#endif
#if CONFIG_KERN_MONITOR
#endif
#if CONFIG_KERN_MONITOR
@@
-117,38
+120,38
@@
typedef struct Process
} Process;
} Process;
-/*
!
+/*
*
* \name Flags for Process.flags.
* \{
*/
* \name Flags for Process.flags.
* \{
*/
-#define PF_FREESTACK BV(0) /*
!
< Free the stack when process dies */
+#define PF_FREESTACK BV(0) /*
*
< Free the stack when process dies */
/*\}*/
/*\}*/
-/*
!
Track running processes. */
+/*
*
Track running processes. */
extern REGISTER Process *CurrentProcess;
extern REGISTER Process *CurrentProcess;
-/*
!
Track ready processes. */
+/*
*
Track ready processes. */
extern REGISTER List ProcReadyList;
extern REGISTER List ProcReadyList;
-/*
!
Enqueue a task in the ready list. */
+/*
*
Enqueue a task in the ready list. */
#define SCHED_ENQUEUE(proc) ADDTAIL(&ProcReadyList, &(proc)->link)
#define SCHED_ENQUEUE(proc) ADDTAIL(&ProcReadyList, &(proc)->link)
-/*
!
Schedule to another process *without* adding the current to the ready list. */
+/*
*
Schedule to another process *without* adding the current to the ready list. */
void proc_schedule(void);
#if CONFIG_KERN_MONITOR
void proc_schedule(void);
#if CONFIG_KERN_MONITOR
- /*
!
Initialize the monitor */
+ /*
*
Initialize the monitor */
void monitor_init(void);
void monitor_init(void);
- /*
!
Register a process into the monitor */
+ /*
*
Register a process into the monitor */
void monitor_add(Process *proc, const char *name, cpustack_t *stack, size_t stacksize);
void monitor_add(Process *proc, const char *name, cpustack_t *stack, size_t stacksize);
- /*
!
Unregister a process from the monitor */
+ /*
*
Unregister a process from the monitor */
void monitor_remove(Process *proc);
void monitor_remove(Process *proc);
- /*
!
Rename a process */
+ /*
*
Rename a process */
void monitor_rename(Process *proc, const char* name);
#endif /* CONFIG_KERN_MONITOR */
void monitor_rename(Process *proc, const char* name);
#endif /* CONFIG_KERN_MONITOR */
diff --git
a/kern/sem.c
b/kern/sem.c
index 7b3b472965999f53b13ac200af5ac1260ceed101..304e64fdde27e4c2b0d557b869b087743628ef6d 100755
(executable)
--- a/
kern/sem.c
+++ b/
kern/sem.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2001, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2001, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.12 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.11 2006/02/24 01:17:05 bernie
*#* Update for new emulator.
*#*
*#* Revision 1.11 2006/02/24 01:17:05 bernie
*#* Update for new emulator.
*#*
@@
-63,7
+66,7
@@
INLINE void sem_verify(struct Semaphore *s)
}
}
-/*
!
+/*
*
* \brief Initialize a Semaphore structure.
*/
void sem_init(struct Semaphore *s)
* \brief Initialize a Semaphore structure.
*/
void sem_init(struct Semaphore *s)
@@
-74,7
+77,7
@@
void sem_init(struct Semaphore *s)
}
}
-/*
!
+/*
*
* \brief Attempt to lock a semaphore without waiting.
*
* \return true in case of success, false if the semaphore
* \brief Attempt to lock a semaphore without waiting.
*
* \return true in case of success, false if the semaphore
@@
-103,7
+106,7
@@
bool sem_attempt(struct Semaphore *s)
}
}
-/*
!
+/*
*
* \brief Lock a semaphore.
*
* If the semaphore is already owned by another process, the caller
* \brief Lock a semaphore.
*
* If the semaphore is already owned by another process, the caller
@@
-151,7
+154,7
@@
void sem_obtain(struct Semaphore *s)
}
}
-/*
!
+/*
*
* \brief Release a lock on a previously locked semaphore.
*
* If the nesting count of the semaphore reaches zero,
* \brief Release a lock on a previously locked semaphore.
*
* If the nesting count of the semaphore reaches zero,
diff --git
a/kern/sem.h
b/kern/sem.h
index 2ff3a9ab48d1772445459671c835120c975792c5..36d1e1d11406bdf2ea7d963b50c302c63f19e748 100755
(executable)
--- a/
kern/sem.h
+++ b/
kern/sem.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* 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.6 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-53,7
+56,7
@@
typedef struct Semaphore
int nest_count;
} Semaphore;
int nest_count;
} Semaphore;
-/*
!
+/*
*
* \name Process synchronization services
* \{
*/
* \name Process synchronization services
* \{
*/
diff --git
a/kern/signal.c
b/kern/signal.c
index 841ac6eb9d37c0a00135aecfb2efa39b2e2fe125..3e6fd1cbf725ba394a169325609516eb38648158 100755
(executable)
--- a/
kern/signal.c
+++ b/
kern/signal.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-66,6
+66,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.14 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.13 2006/02/24 01:17:05 bernie
*#* Update for new emulator.
*#*
*#* Revision 1.13 2006/02/24 01:17:05 bernie
*#* Update for new emulator.
*#*
@@
-117,7
+120,7
@@
#if CONFIG_KERN_SIGNALS
#if CONFIG_KERN_SIGNALS
-/*
!
+/*
*
* Check if any of the signals in \a sigs has occurred and clear them.
* Return the signals that have occurred.
*/
* Check if any of the signals in \a sigs has occurred and clear them.
* Return the signals that have occurred.
*/
@@
-135,7
+138,7
@@
sigmask_t sig_check(sigmask_t sigs)
}
}
-/*
!
+/*
*
* Sleep until any of the signals in \a sigs occurs.
* Return the signal(s) that have awaked the process.
*/
* Sleep until any of the signals in \a sigs occurs.
* Return the signal(s) that have awaked the process.
*/
@@
-166,7
+169,7
@@
sigmask_t sig_wait(sigmask_t sigs)
}
}
-/*
!
+/*
*
* Send the signals \a sigs to the process \a proc.
* The process will be awaken if it was waiting for any of them.
*
* Send the signals \a sigs to the process \a proc.
* The process will be awaken if it was waiting for any of them.
*
diff --git
a/kern/signal.h
b/kern/signal.h
index faca76a0a42c4e5fe7419109492b093887c45c55..d2dfa5cf5b9bd560c507617b8b4c9db0e0117c0c 100755
(executable)
--- a/
kern/signal.h
+++ b/
kern/signal.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.8 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.7 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.7 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-53,18
+56,18
@@
void sig_signal(struct Process *proc, sigmask_t sig);
sigmask_t sig_wait(sigmask_t sigs);
sigmask_t sig_wait(sigmask_t sigs);
-/*
!
+/*
*
* \name Signal definitions
* \{
*/
* \name Signal definitions
* \{
*/
-#define SIG_USER0 BV(0) /*
!
< Free for user usage */
-#define SIG_USER1 BV(1) /*
!
< Free for user usage */
-#define SIG_USER2 BV(2) /*
!
< Free for user usage */
-#define SIG_USER3 BV(3) /*
!
< Free for user usage */
-#define SIG_SYSTEM4 BV(4) /*
!
< Reserved for system use */
-#define SIG_SYSTEM5 BV(5) /*
!
< Reserved for system use */
-#define SIG_SYSTEM6 BV(6) /*
!
< Reserved for system use */
-#define SIG_SINGLE BV(7) /*
!
< Used to wait for a single event */
+#define SIG_USER0 BV(0) /*
*
< Free for user usage */
+#define SIG_USER1 BV(1) /*
*
< Free for user usage */
+#define SIG_USER2 BV(2) /*
*
< Free for user usage */
+#define SIG_USER3 BV(3) /*
*
< Free for user usage */
+#define SIG_SYSTEM4 BV(4) /*
*
< Reserved for system use */
+#define SIG_SYSTEM5 BV(5) /*
*
< Reserved for system use */
+#define SIG_SYSTEM6 BV(6) /*
*
< Reserved for system use */
+#define SIG_SINGLE BV(7) /*
*
< Used to wait for a single event */
/*\}*/
#endif /* KERN_SIGNAL_H */
/*\}*/
#endif /* KERN_SIGNAL_H */
diff --git
a/kern/switch_dsp56k.c
b/kern/switch_dsp56k.c
index 59f9788ffdbbe8966f6360b5ff0c180fa4fe9cf1..60f6fd2f0c05dd95d3465745afbe25cd44cc908a 100755
(executable)
--- a/
kern/switch_dsp56k.c
+++ b/
kern/switch_dsp56k.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.6 2006/02/24 01:17:05 bernie
*#* Update for new emulator.
*#*
*#* Revision 1.6 2006/02/24 01:17:05 bernie
*#* Update for new emulator.
*#*
diff --git
a/mware/cmd_hunk.h
b/mware/cmd_hunk.h
index e0416be782ac2b8f2fe835ae8779c68131334da4..e40596570afb784542c0b60d8fd96b82d403afb9 100755
(executable)
--- a/
mware/cmd_hunk.h
+++ b/
mware/cmd_hunk.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Giovanni Bajo
* \file
* <!--
* Copyright 2004 Giovanni Bajo
@@
-43,6
+43,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2006/06/01 12:27:39 marco
*#* Added utilities for protocols
*#*
*#* Revision 1.1 2006/06/01 12:27:39 marco
*#* Added utilities for protocols
*#*
diff --git
a/mware/crc.c
b/mware/crc.c
index a239908bd8e4e88354ec13547f15d7b187c13225..e3cdfb6bed21548c5ce1e8d81b3ebe5404038ee6 100755
(executable)
--- a/
mware/crc.c
+++ b/
mware/crc.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* 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.4 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-30,7
+33,7
@@
#include "crc.h"
#include "crc.h"
-/*
!
+/*
*
* crctab calculated by Mark G. Mendel, Network Systems Corporation
*/
const uint16_t crc16tab[256] = {
* crctab calculated by Mark G. Mendel, Network Systems Corporation
*/
const uint16_t crc16tab[256] = {
diff --git
a/mware/crc.h
b/mware/crc.h
index 468b89d8d0728a291040441e9ad548ff9babd88c..0ae4a53e49e4e8b6b462889c6ab05ee9e3c370b2 100755
(executable)
--- a/
mware/crc.h
+++ b/
mware/crc.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-24,6
+24,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* 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.6 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-57,7
+60,7
@@
extern "C" {
extern const uint16_t crc16tab[256];
extern const uint16_t crc16tab[256];
-/*
!
+/*
*
* \brief Compute the updated CRC16 value for one octet (macro version)
*
* \note This version is only intended for old/broken compilers.
* \brief Compute the updated CRC16 value for one octet (macro version)
*
* \note This version is only intended for old/broken compilers.
@@
-70,7
+73,7
@@
extern const uint16_t crc16tab[256];
#ifdef INLINE
#ifdef INLINE
-/*
!
+/*
*
* \brief Compute the updated CRC16 value for one octet (macro version)
*/
INLINE uint16_t updcrc16(uint8_t c, uint16_t oldcrc)
* \brief Compute the updated CRC16 value for one octet (macro version)
*/
INLINE uint16_t updcrc16(uint8_t c, uint16_t oldcrc)
@@
-80,7
+83,7
@@
INLINE uint16_t updcrc16(uint8_t c, uint16_t oldcrc)
#endif // INLINE
#endif // INLINE
-/*
!
+/*
*
* This function implements the CRC 16 calculation on a buffer.
*
* \param crc Current CRC16 value.
* This function implements the CRC 16 calculation on a buffer.
*
* \param crc Current CRC16 value.
diff --git
a/mware/event.c
b/mware/event.c
index 51bc8fdd1b076c05ad7873a159dea7bed89c1d10..5a8ed6a26db3d33db8786b365e346a889b41cc6f 100755
(executable)
--- a/
mware/event.c
+++ b/
mware/event.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.3 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.2 2006/02/10 12:24:42 bernie
*#* Fix standalone build.
*#*
*#* Revision 1.2 2006/02/10 12:24:42 bernie
*#* Fix standalone build.
*#*
diff --git
a/mware/event.h
b/mware/event.h
index c81b3eabb095e92f4d305f94528306c7635fe841..11ba5c40c5a3257fe3839ff24a24e099638b3add 100755
(executable)
--- a/
mware/event.h
+++ b/
mware/event.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-18,6
+18,9
@@
/*#*
*#* $Log$
/*#*
*#* $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.7 2006/03/20 17:52:22 bernie
*#* Add missing forward declaration.
*#*
@@
-91,7
+94,7
@@
#endif
#endif
-//
!
User defined callback type
+//
/
User defined callback type
typedef void (*Hook)(void *);
typedef struct Event
typedef void (*Hook)(void *);
typedef struct Event
@@
-118,11
+121,11
@@
void event_hook_ignore(Event *event);
void event_hook_signal(Event *event);
void event_hook_softint(Event *event);
void event_hook_signal(Event *event);
void event_hook_softint(Event *event);
-/*
!
Initialize the event \a e as a no-op */
+/*
*
Initialize the event \a e as a no-op */
#define event_initNone(e) \
((e)->action = event_hook_ignore)
#define event_initNone(e) \
((e)->action = event_hook_ignore)
-/*
!
Same as event_initNone(), but returns the initialized event */
+/*
*
Same as event_initNone(), but returns the initialized event */
INLINE Event event_createNone(void);
INLINE Event event_createNone(void)
{
INLINE Event event_createNone(void);
INLINE Event event_createNone(void)
{
@@
-131,11
+134,11
@@
INLINE Event event_createNone(void)
return e;
}
return e;
}
-/*
!
Initialize the event \a e with a software interrupt (call function \a f, with parameter \a u) */
+/*
*
Initialize the event \a e with a software interrupt (call function \a f, with parameter \a u) */
#define event_initSoftInt(e,f,u) \
((e)->action = event_hook_softint,(e)->Ev.Int.func = (f), (e)->Ev.Int.user_data = (u))
#define event_initSoftInt(e,f,u) \
((e)->action = event_hook_softint,(e)->Ev.Int.func = (f), (e)->Ev.Int.user_data = (u))
-/*
!
Same as event_initSoftInt(), but returns the initialized event */
+/*
*
Same as event_initSoftInt(), but returns the initialized event */
INLINE Event event_createSoftInt(Hook func, void *user_data)
{
Event e;
INLINE Event event_createSoftInt(Hook func, void *user_data)
{
Event e;
@@
-148,11
+151,11
@@
INLINE Event event_createSoftInt(Hook func, void *user_data)
#if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS
#if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS
-/*
!
Initialize the event \a e with a signal (send signal \a s to process \a p) */
+/*
*
Initialize the event \a e with a signal (send signal \a s to process \a p) */
#define event_initSignal(e,p,s) \
((e)->action = event_hook_signal,(e)->Ev.Sig.sig_proc = (p), (e)->Ev.Sig.sig_bit = (s))
#define event_initSignal(e,p,s) \
((e)->action = event_hook_signal,(e)->Ev.Sig.sig_proc = (p), (e)->Ev.Sig.sig_bit = (s))
-/*
!
Same as event_initSignal(), but returns the initialized event */
+/*
*
Same as event_initSignal(), but returns the initialized event */
INLINE Event event_createSignal(struct Process *proc, sigbit_t bit)
{
Event e;
INLINE Event event_createSignal(struct Process *proc, sigbit_t bit)
{
Event e;
@@
-164,7
+167,7
@@
INLINE Event event_createSignal(struct Process *proc, sigbit_t bit)
#endif
#endif
-/*
!
Trigger an event */
+/*
*
Trigger an event */
INLINE void event_do(struct Event *e)
{
e->action(e);
INLINE void event_do(struct Event *e)
{
e->action(e);
diff --git
a/mware/fifobuf.h
b/mware/fifobuf.h
index 7ee1e70b230682c04296583fb4dd363b11634eb3..2b749d8fe1c748b275b4ef64d21d7817d2ceb4a1 100755
(executable)
--- a/
mware/fifobuf.h
+++ b/
mware/fifobuf.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-43,6
+43,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.22 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.21 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.21 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-123,7
+126,7
@@
typedef struct FIFOBuffer
)
)
-/*
!
+/*
*
* Check whether the fifo is empty
*
* \note Calling fifo_isempty() is safe while a concurrent
* Check whether the fifo is empty
*
* \note Calling fifo_isempty() is safe while a concurrent
@@
-140,7
+143,7
@@
INLINE bool fifo_isempty(const FIFOBuffer *fb)
}
}
-/*
!
+/*
*
* Check whether the fifo is full
*
* \note Calling fifo_isfull() is safe while a concurrent
* Check whether the fifo is full
*
* \note Calling fifo_isfull() is safe while a concurrent
@@
-162,7
+165,7
@@
INLINE bool fifo_isfull(const FIFOBuffer *fb)
}
}
-/*
!
+/*
*
* Pop a character from the fifo buffer.
*
* \note Calling \c fifo_push() on a full buffer is undefined.
* Pop a character from the fifo buffer.
*
* \note Calling \c fifo_push() on a full buffer is undefined.
@@
-195,7
+198,7
@@
INLINE void fifo_push(FIFOBuffer *fb, unsigned char c)
}
}
-/*
!
+/*
*
* Pop a character from the fifo buffer.
*
* \note Calling \c fifo_pop() on an empty buffer is undefined.
* Pop a character from the fifo buffer.
*
* \note Calling \c fifo_pop() on an empty buffer is undefined.
@@
-224,7
+227,7
@@
INLINE unsigned char fifo_pop(FIFOBuffer *fb)
}
}
-/*
!
+/*
*
* Make the fifo empty, discarding all its current contents.
*/
INLINE void fifo_flush(FIFOBuffer *fb)
* Make the fifo empty, discarding all its current contents.
*/
INLINE void fifo_flush(FIFOBuffer *fb)
@@
-247,7
+250,7
@@
INLINE void fifo_flush(FIFOBuffer *fb)
#else /* CPU_REG_BITS < CPU_BITS_PER_PTR */
#else /* CPU_REG_BITS < CPU_BITS_PER_PTR */
- /*
!
+ /*
*
* Similar to fifo_isempty(), but with stronger guarantees for
* concurrent access between user and interrupt code.
*
* Similar to fifo_isempty(), but with stronger guarantees for
* concurrent access between user and interrupt code.
*
@@
-263,7
+266,7
@@
INLINE void fifo_flush(FIFOBuffer *fb)
}
}
- /*
!
+ /*
*
* Similar to fifo_push(), but with stronger guarantees for
* concurrent access between user and interrupt code.
*
* Similar to fifo_push(), but with stronger guarantees for
* concurrent access between user and interrupt code.
*
@@
-284,7
+287,7
@@
INLINE void fifo_flush(FIFOBuffer *fb)
return c;
}
return c;
}
- /*
!
+ /*
*
* Similar to fifo_flush(), but with stronger guarantees for
* concurrent access between user and interrupt code.
*
* Similar to fifo_flush(), but with stronger guarantees for
* concurrent access between user and interrupt code.
*
@@
-300,7
+303,7
@@
INLINE void fifo_flush(FIFOBuffer *fb)
#endif /* CPU_REG_BITS < BITS_PER_PTR */
#endif /* CPU_REG_BITS < BITS_PER_PTR */
-/*
!
+/*
*
* Thread safe version of fifo_isfull()
*/
INLINE bool fifo_isfull_locked(const FIFOBuffer *_fb)
* Thread safe version of fifo_isfull()
*/
INLINE bool fifo_isfull_locked(const FIFOBuffer *_fb)
@@
-311,7
+314,7
@@
INLINE bool fifo_isfull_locked(const FIFOBuffer *_fb)
}
}
-/*
!
+/*
*
* FIFO Initialization.
*/
INLINE void fifo_init(FIFOBuffer *fb, unsigned char *buf, size_t size)
* FIFO Initialization.
*/
INLINE void fifo_init(FIFOBuffer *fb, unsigned char *buf, size_t size)
diff --git
a/mware/formatwr.c
b/mware/formatwr.c
index 8a2e57e1af027e61a51639bd8e1bca650dcbd548..d69e352c7b5b5f8eb8d2315919495130d8357371 100755
(executable)
--- a/
mware/formatwr.c
+++ b/
mware/formatwr.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-53,6
+53,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.18 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.17 2005/11/04 17:43:27 bernie
*#* Fix for LP64 architectures; Add some more tests.
*#*
*#* Revision 1.17 2005/11/04 17:43:27 bernie
*#* Fix for LP64 architectures; Add some more tests.
*#*
@@
-91,12
+94,12
@@
#include <appconfig.h> /* CONFIG_ macros */
#ifndef CONFIG_PRINTF_N_FORMATTER
#include <appconfig.h> /* CONFIG_ macros */
#ifndef CONFIG_PRINTF_N_FORMATTER
- /*
!
Disable the arcane %n formatter. */
+ /*
*
Disable the arcane %n formatter. */
#define CONFIG_PRINTF_N_FORMATTER 0
#endif
#ifndef CONFIG_PRINTF_OCTAL_FORMATTER
#define CONFIG_PRINTF_N_FORMATTER 0
#endif
#ifndef CONFIG_PRINTF_OCTAL_FORMATTER
- /*
!
Disable the %o formatter. */
+ /*
*
Disable the %o formatter. */
#define CONFIG_PRINTF_OCTAL_FORMATTER 0
#endif
#define CONFIG_PRINTF_OCTAL_FORMATTER 0
#endif
@@
-320,7
+323,7
@@
CLEAN_UP:
#endif /* CONFIG_PRINTF > PRINTF_NOFLOAT */
#endif /* CONFIG_PRINTF > PRINTF_NOFLOAT */
-/*
!
+/*
*
* This routine forms the core and entry of the formatter.
*
* The conversion performed conforms to the ANSI specification for "printf".
* This routine forms the core and entry of the formatter.
*
* The conversion performed conforms to the ANSI specification for "printf".
diff --git
a/mware/formatwr.h
b/mware/formatwr.h
index 740cb1ae7507a95abcf5f8427f3d97a983dd4c1d..48aa385a79ae5cad8f6310c1654b038f447fd1b9 100755
(executable)
--- a/
mware/formatwr.h
+++ b/
mware/formatwr.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-12,6
+12,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.11 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.10 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.10 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-50,7
+53,7
@@
#include <appconfig.h>
#include <cfg/cpu.h> /* CPU_HARVARD */
#include <appconfig.h>
#include <cfg/cpu.h> /* CPU_HARVARD */
-/*
!
+/*
*
* \name _formatted_write() configuration
* \{
*/
* \name _formatted_write() configuration
* \{
*/
@@
-62,7
+65,7
@@
/* \} */
#ifndef CONFIG_PRINTF_RETURN_COUNT
/* \} */
#ifndef CONFIG_PRINTF_RETURN_COUNT
- /*
!
Enable/disable _formatted_write return value */
+ /*
*
Enable/disable _formatted_write return value */
#define CONFIG_PRINTF_RETURN_COUNT 1
#endif
#define CONFIG_PRINTF_RETURN_COUNT 1
#endif
diff --git
a/mware/hashtable.c
b/mware/hashtable.c
index cd9a7b6e32fe39eb34639ddb9d9699eb8e04e174..73f6a16d02ef723c073673ecd42381a9a2df6349 100755
(executable)
--- a/
mware/hashtable.c
+++ b/
mware/hashtable.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-61,6
+61,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.6 2006/06/01 12:27:39 marco
*#* Added utilities for protocols
*#*
*#* Revision 1.6 2006/06/01 12:27:39 marco
*#* Added utilities for protocols
*#*
@@
-80,7
+83,7
@@
typedef const void** HashNodePtr;
#define NODE_EMPTY(node) (!*(node))
#define HT_HAS_INTERNAL_KEY(ht) (CONFIG_HT_OPTIONAL_INTERNAL_KEY && ht->flags.key_internal)
#define NODE_EMPTY(node) (!*(node))
#define HT_HAS_INTERNAL_KEY(ht) (CONFIG_HT_OPTIONAL_INTERNAL_KEY && ht->flags.key_internal)
-/*
!
For hash tables with internal keys, compute the pointer to the internal key for a given \a node. */
+/*
*
For hash tables with internal keys, compute the pointer to the internal key for a given \a node. */
INLINE uint8_t *key_internal_get_ptr(struct HashTable *ht, HashNodePtr node)
{
uint8_t* key_buf = ht->key_data.mem;
INLINE uint8_t *key_internal_get_ptr(struct HashTable *ht, HashNodePtr node)
{
uint8_t* key_buf = ht->key_data.mem;
diff --git
a/mware/hashtable.h
b/mware/hashtable.h
index 45bea14674024fd324253e6473661bcabc2e2843..727bca68d3d71e6f86f7694840fa134cb201842b 100755
(executable)
--- a/
mware/hashtable.h
+++ b/
mware/hashtable.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-31,6
+31,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.8 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.7 2006/06/01 12:27:39 marco
*#* Added utilities for protocols
*#*
*#* Revision 1.7 2006/06/01 12:27:39 marco
*#* Added utilities for protocols
*#*
@@
-43,23
+46,23
@@
#include <cfg/macros.h>
#include <cfg/debug.h>
#include <cfg/macros.h>
#include <cfg/debug.h>
-/*
!
+/*
*
* Enable/disable support to declare special hash tables which maintain a copy of
* the key internally instead of relying on the hook to extract it from the data.
*/
#define CONFIG_HT_OPTIONAL_INTERNAL_KEY 1
* Enable/disable support to declare special hash tables which maintain a copy of
* the key internally instead of relying on the hook to extract it from the data.
*/
#define CONFIG_HT_OPTIONAL_INTERNAL_KEY 1
-//
!
Maximum length of the internal key (use (2^n)-1 for slight speedup)
+//
/
Maximum length of the internal key (use (2^n)-1 for slight speedup)
#define INTERNAL_KEY_MAX_LENGTH 15
#define INTERNAL_KEY_MAX_LENGTH 15
-/*
!
+/*
*
* Hook to get the key from \a data, which is an element of the hash table. The
* key must be returned together with \a key_length (in words).
*/
typedef const void *(*hook_get_key)(const void *data, uint8_t *key_length);
* Hook to get the key from \a data, which is an element of the hash table. The
* key must be returned together with \a key_length (in words).
*/
typedef const void *(*hook_get_key)(const void *data, uint8_t *key_length);
-/*
!
+/*
*
* Hash table description
*
* \note This structures MUST NOT be accessed directly. Its definition is
* Hash table description
*
* \note This structures MUST NOT be accessed directly. Its definition is
@@
-71,19
+74,19
@@
typedef const void *(*hook_get_key)(const void *data, uint8_t *key_length);
*/
struct HashTable
{
*/
struct HashTable
{
- const void **mem; //
!
< Buckets of data
- uint16_t max_elts_log2; //
!
< Log2 of the size of the table
+ const void **mem; //
/
< Buckets of data
+ uint16_t max_elts_log2; //
/
< Log2 of the size of the table
struct {
struct {
- bool key_internal : 1; //
!
< true if the key is copied internally
+ bool key_internal : 1; //
/
< true if the key is copied internally
} flags;
union {
} flags;
union {
- hook_get_key hook; //
!
< Hook to get the key
- uint8_t *mem; //
!
< Pointer to the key memory
+ hook_get_key hook; //
/
< Hook to get the key
+ uint8_t *mem; //
/
< Pointer to the key memory
} key_data;
};
} key_data;
};
-//
!
Iterator to walk the hash table
+//
/
Iterator to walk the hash table
typedef struct
{
const void** pos;
typedef struct
{
const void** pos;
@@
-91,7
+94,7
@@
typedef struct
} HashIterator;
} HashIterator;
-/*
!
+/*
*
* Declare a hash table in the current scope
*
* \param name Variable name
* Declare a hash table in the current scope
*
* \param name Variable name
@@
-106,13
+109,13
@@
typedef struct
static const void* name##_nodes[1 << UINT32_LOG2(size)]; \
struct HashTable name = { name##_nodes, UINT32_LOG2(size), { false }, hook_gk }
static const void* name##_nodes[1 << UINT32_LOG2(size)]; \
struct HashTable name = { name##_nodes, UINT32_LOG2(size), { false }, hook_gk }
-/*
!
Exactly like \c DECLARE_HASHTABLE, but the variable will be declared as static. */
+/*
*
Exactly like \c DECLARE_HASHTABLE, but the variable will be declared as static. */
#define DECLARE_HASHTABLE_STATIC(name, size, hook_gk) \
static const void* name##_nodes[1 << UINT32_LOG2(size)]; \
static struct HashTable name = { name##_nodes, UINT32_LOG2(size), { false }, { hook_gk } }
#if CONFIG_HT_OPTIONAL_INTERNAL_KEY
#define DECLARE_HASHTABLE_STATIC(name, size, hook_gk) \
static const void* name##_nodes[1 << UINT32_LOG2(size)]; \
static struct HashTable name = { name##_nodes, UINT32_LOG2(size), { false }, { hook_gk } }
#if CONFIG_HT_OPTIONAL_INTERNAL_KEY
- /*
!
Declare a hash table with internal copies of the keys. This version does not
+ /*
*
Declare a hash table with internal copies of the keys. This version does not
* require a hook, nor it requires the user to allocate static memory for the keys.
* It is mostly suggested for tables whose keys are computed on the fly and need
* to be stored somewhere.
* require a hook, nor it requires the user to allocate static memory for the keys.
* It is mostly suggested for tables whose keys are computed on the fly and need
* to be stored somewhere.
@@
-122,14
+125,14
@@
typedef struct
static const void* name##_nodes[1 << UINT32_LOG2(size)]; \
struct HashTable name = { name##_nodes, UINT32_LOG2(size), { true }, name##_keys }
static const void* name##_nodes[1 << UINT32_LOG2(size)]; \
struct HashTable name = { name##_nodes, UINT32_LOG2(size), { true }, name##_keys }
- /*
!
Exactly like \c DECLARE_HASHTABLE_INTERNALKEY, but the variable will be declared as static. */
+ /*
*
Exactly like \c DECLARE_HASHTABLE_INTERNALKEY, but the variable will be declared as static. */
#define DECLARE_HASHTABLE_INTERNALKEY_STATIC(name, size) \
static uint8_t name##_keys[(1 << UINT32_LOG2(size)) * (INTERNAL_KEY_MAX_LENGTH + 1)]; \
static const void* name##_nodes[1 << UINT32_LOG2(size)]; \
static struct HashTable name = { name##_nodes, UINT32_LOG2(size), { true }, name##_keys }
#endif
#define DECLARE_HASHTABLE_INTERNALKEY_STATIC(name, size) \
static uint8_t name##_keys[(1 << UINT32_LOG2(size)) * (INTERNAL_KEY_MAX_LENGTH + 1)]; \
static const void* name##_nodes[1 << UINT32_LOG2(size)]; \
static struct HashTable name = { name##_nodes, UINT32_LOG2(size), { true }, name##_keys }
#endif
-/*
!
+/*
*
* Initialize (and clear) a hash table in a memory buffer.
*
* \param ht Hash table declared with \c DECLARE_HASHTABLE
* Initialize (and clear) a hash table in a memory buffer.
*
* \param ht Hash table declared with \c DECLARE_HASHTABLE
@@
-140,7
+143,7
@@
typedef struct
*/
void ht_init(struct HashTable* ht);
*/
void ht_init(struct HashTable* ht);
-/*
!
+/*
*
* Insert an element into the hash table
*
* \param ht Handle of the hash table
* Insert an element into the hash table
*
* \param ht Handle of the hash table
@@
-159,7
+162,7
@@
void ht_init(struct HashTable* ht);
*/
bool ht_insert(struct HashTable* ht, const void* data);
*/
bool ht_insert(struct HashTable* ht, const void* data);
-/*
!
+/*
*
* Insert an element into the hash table
*
* \param ht Handle of the hash table
* Insert an element into the hash table
*
* \param ht Handle of the hash table
@@
-180,7
+183,7
@@
bool ht_insert(struct HashTable* ht, const void* data);
*/
bool ht_insert_with_key(struct HashTable* ht, const void* key, uint8_t key_length, const void* data);
*/
bool ht_insert_with_key(struct HashTable* ht, const void* key, uint8_t key_length, const void* data);
-/*
!
+/*
*
* Find an element in the hash table
*
* \param ht Handle of the hash table
* Find an element in the hash table
*
* \param ht Handle of the hash table
@@
-190,13
+193,13
@@
bool ht_insert_with_key(struct HashTable* ht, const void* key, uint8_t key_lengt
*/
const void* ht_find(struct HashTable* ht, const void* key, uint8_t key_length);
*/
const void* ht_find(struct HashTable* ht, const void* key, uint8_t key_length);
-/*
!
Similar to \c ht_insert_with_key() but \a key is an ASCIIZ string */
+/*
*
Similar to \c ht_insert_with_key() but \a key is an ASCIIZ string */
#define ht_insert_str(ht, key, data) ht_insert_with_key(ht, key, strlen(key), data)
#define ht_insert_str(ht, key, data) ht_insert_with_key(ht, key, strlen(key), data)
-/*
!
Similar to \c ht_find() but \a key is an ASCIIZ string */
+/*
*
Similar to \c ht_find() but \a key is an ASCIIZ string */
#define ht_find_str(ht, key) ht_find(ht, key, strlen(key))
#define ht_find_str(ht, key) ht_find(ht, key, strlen(key))
-//
!
Get an iterator to the begin of the hash table \a ht
+//
/
Get an iterator to the begin of the hash table \a ht
INLINE HashIterator ht_iter_begin(struct HashTable* ht)
{
HashIterator h;
INLINE HashIterator ht_iter_begin(struct HashTable* ht)
{
HashIterator h;
@@
-210,7
+213,7
@@
INLINE HashIterator ht_iter_begin(struct HashTable* ht)
return h;
}
return h;
}
-/*
!
+/*
*
* Get an iterator to the (exclusive) end of the hash table \a ht
*
* \note Like in STL, the end iterator is not a valid iterator (you
* Get an iterator to the (exclusive) end of the hash table \a ht
*
* \note Like in STL, the end iterator is not a valid iterator (you
@@
-226,18
+229,18
@@
INLINE HashIterator ht_iter_end(struct HashTable* ht)
return h;
}
return h;
}
-//
!
Compare \a it1 and \a it2 for equality
+//
/
Compare \a it1 and \a it2 for equality
INLINE bool ht_iter_cmp(HashIterator it1, HashIterator it2)
{
ASSERT(it1.end == it2.end);
return it1.pos == it2.pos;
}
INLINE bool ht_iter_cmp(HashIterator it1, HashIterator it2)
{
ASSERT(it1.end == it2.end);
return it1.pos == it2.pos;
}
-//
!
Get the element within the hash table \a ht pointed by the iterator \a iter
+//
/
Get the element within the hash table \a ht pointed by the iterator \a iter
INLINE const void* ht_iter_get(HashIterator iter)
{ return *iter.pos; }
INLINE const void* ht_iter_get(HashIterator iter)
{ return *iter.pos; }
-/*
!
Return an iterator pointing to the element following \a h
+/*
*
Return an iterator pointing to the element following \a h
*
* \note The order of the elements visited during the iteration is casual,
* and depends on the implementation.
*
* \note The order of the elements visited during the iteration is casual,
* and depends on the implementation.
diff --git
a/mware/heap.c
b/mware/heap.c
index b1dbb72b6451c7d12f9513c88b4110a8325917d8..e152a39dbcb48e20c17ad1b5bb59bfbd0a513635 100755
(executable)
--- a/
mware/heap.c
+++ b/
mware/heap.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.9 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.8 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.8 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-210,7
+213,7
@@
void *heap_calloc(struct Heap* h, size_t size)
return mem;
}
return mem;
}
-/*
!
+/*
*
* Free a block of memory, determining its size automatically.
*
* \param h Heap from which the block was allocated.
* Free a block of memory, determining its size automatically.
*
* \param h Heap from which the block was allocated.
diff --git
a/mware/heap.h
b/mware/heap.h
index bbae968bbceb92731e7066f330cc7fdbb53dcd74..9f0ed9201d2753cef3182628b1b28ee4617d59c8 100755
(executable)
--- a/
mware/heap.h
+++ b/
mware/heap.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-20,6
+20,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.7 2006/07/19 12:56:27 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.6 2005/11/27 23:36:19 bernie
*#* Use appconfig.h instead of cfg/config.h.
*#*
*#* Revision 1.6 2005/11/27 23:36:19 bernie
*#* Use appconfig.h instead of cfg/config.h.
*#*
@@
-54,20
+57,20
@@
struct _MemChunk;
struct _MemChunk;
-//
!
A heap
+//
/
A heap
struct Heap
{
struct Heap
{
- struct _MemChunk *FreeList; //
!
< Head of the free list
+ struct _MemChunk *FreeList; //
/
< Head of the free list
};
};
-//
!
Initialize \a heap within the buffer pointed by \a memory which is of \a size bytes
+//
/
Initialize \a heap within the buffer pointed by \a memory which is of \a size bytes
void heap_init(struct Heap* heap, void* memory, size_t size);
void heap_init(struct Heap* heap, void* memory, size_t size);
-//
!
Allocate a chunk of memory of \a size bytes from the heap
+//
/
Allocate a chunk of memory of \a size bytes from the heap
void *heap_allocmem(struct Heap* heap, size_t size);
void *heap_allocmem(struct Heap* heap, size_t size);
-//
!
Free a chunk of memory of \a size bytes from the heap
+//
/
Free a chunk of memory of \a size bytes from the heap
void heap_freemem(struct Heap* heap, void *mem, size_t size);
void heap_freemem(struct Heap* heap, void *mem, size_t size);
diff --git
a/mware/hex.c
b/mware/hex.c
index 2a456021acc8246c60be33b96eeec5b54929d5b0..02f9e475304ce34a13c0cbc7c06d8fea0e866fc3 100755
(executable)
--- a/
mware/hex.c
+++ b/
mware/hex.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2006/02/10 11:30:48 bernie
*#* C++ fixes.
*#*
*#* Revision 1.3 2006/02/10 11:30:48 bernie
*#* C++ fixes.
*#*
diff --git
a/mware/hex.h
b/mware/hex.h
index edf05a0482d35616a21e392cacede31f3d3c6d80..8a0f8296682a12434d7559adac79647319a8c564 100755
(executable)
--- a/
mware/hex.h
+++ b/
mware/hex.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
diff --git
a/mware/kfile.h
b/mware/kfile.h
index 3e1f469a9bc56354a58b78d83a61c9e9b7417c6c..bbad769b4c5e990f26a030543bc418bb93f2fa63 100755
(executable)
--- a/
mware/kfile.h
+++ b/
mware/kfile.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.6 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.5 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.5 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
diff --git
a/mware/list.h
b/mware/list.h
index 8d89b4d61736748f77b4230c6631e1ec30550b3b..e8dec766d234e5ec70b9d3f9b0bb8e44cda232f2 100755
(executable)
--- a/
mware/list.h
+++ b/
mware/list.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.20 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.19 2006/03/20 17:50:29 bernie
*#* Fix typo.
*#*
*#* Revision 1.19 2006/03/20 17:50:29 bernie
*#* Fix typo.
*#*
@@
-80,7
+83,7
@@
#include <cfg/compiler.h> /* INLINE */
#include <cfg/debug.h> /* ASSERT() */
#include <cfg/compiler.h> /* INLINE */
#include <cfg/debug.h> /* ASSERT() */
-/*
!
+/*
*
* This structure represents a node for bidirectional lists.
*
* Data is usually appended to nodes by making them the first
* This structure represents a node for bidirectional lists.
*
* Data is usually appended to nodes by making them the first
@@
-92,7
+95,7
@@
typedef struct _Node
struct _Node *pred;
} Node;
struct _Node *pred;
} Node;
-/*
!
+/*
*
* Head of a doubly-linked list of \c Node structs.
*
* Lists must be initialized with LIST_INIT() prior to use.
* Head of a doubly-linked list of \c Node structs.
*
* Lists must be initialized with LIST_INIT() prior to use.
@@
-117,7
+120,7
@@
typedef struct _PriNode
} PriNode;
} PriNode;
-/*
!
+/*
*
* Template for a naked node in a list of \a T structures.
*
* To be used as data member in other structures:
* Template for a naked node in a list of \a T structures.
*
* To be used as data member in other structures:
@@
-150,11
+153,11
@@
typedef struct _PriNode
#define DECLARE_NODE_ANON(T) \
T *succ; T *pred;
#define DECLARE_NODE_ANON(T) \
T *succ; T *pred;
-/*
!
Declare a typesafe node for structures of type \a T. */
+/*
*
Declare a typesafe node for structures of type \a T. */
#define DECLARE_NODE_TYPE(T) \
typedef struct T##Node { T *succ; T *pred; } T##Node
#define DECLARE_NODE_TYPE(T) \
typedef struct T##Node { T *succ; T *pred; } T##Node
-/*
!
Template for a list of \a T structures. */
+/*
*
Template for a list of \a T structures. */
#define DECLARE_LIST_TYPE(T) \
DECLARE_NODE_TYPE(T); \
typedef struct T##List { \
#define DECLARE_LIST_TYPE(T) \
DECLARE_NODE_TYPE(T); \
typedef struct T##List { \
@@
-165,14
+168,14
@@
typedef struct _PriNode
#define NODE_TYPE(T) T##Node
#define LIST_TYPE(T) T##List
#define NODE_TYPE(T) T##Node
#define LIST_TYPE(T) T##List
-/*
!
+/*
*
* Get a pointer to the first node in a list.
*
* If \a l is empty, result points to l->tail.
*/
#define LIST_HEAD(l) ((l)->head.succ)
* Get a pointer to the first node in a list.
*
* If \a l is empty, result points to l->tail.
*/
#define LIST_HEAD(l) ((l)->head.succ)
-/*
!
+/*
*
* Get a pointer to the last node in a list.
*
* If \a l is empty, result points to l->head.
* Get a pointer to the last node in a list.
*
* If \a l is empty, result points to l->head.
@@
-186,7
+189,7
@@
typedef struct _PriNode
#define TYPEOF_OR_VOIDPTR(type) void *
#endif
#define TYPEOF_OR_VOIDPTR(type) void *
#endif
-/*
!
+/*
*
* Iterate over all nodes in a list.
*
* This macro generates a "for" statement using the following parameters:
* Iterate over all nodes in a list.
*
* This macro generates a "for" statement using the following parameters:
@@
-200,7
+203,7
@@
typedef struct _PriNode
(n) = (TYPEOF_OR_VOIDPTR(n))(((Node *)(n))->succ) \
)
(n) = (TYPEOF_OR_VOIDPTR(n))(((Node *)(n))->succ) \
)
-/*
!
+/*
*
* Iterate backwards over all nodes in a list.
*
* This macro generates a "for" statement using the following parameters:
* Iterate backwards over all nodes in a list.
*
* This macro generates a "for" statement using the following parameters:
@@
-214,7
+217,7
@@
typedef struct _PriNode
(n) = (TYPEOF_OR_VOIDPTR(n))(((Node *)(n))->pred) \
)
(n) = (TYPEOF_OR_VOIDPTR(n))(((Node *)(n))->pred) \
)
-/*
!
Initialize a list. */
+/*
*
Initialize a list. */
#define LIST_INIT(l) \
do { \
(l)->head.succ = (TYPEOF_OR_VOIDPTR((l)->head.succ)) &(l)->tail; \
#define LIST_INIT(l) \
do { \
(l)->head.succ = (TYPEOF_OR_VOIDPTR((l)->head.succ)) &(l)->tail; \
@@
-224,7
+227,7
@@
typedef struct _PriNode
} while (0)
#ifdef _DEBUG
} while (0)
#ifdef _DEBUG
- /*
!
Make sure that a list is valid (it was initialized and is not corrupted). */
+ /*
*
Make sure that a list is valid (it was initialized and is not corrupted). */
#define LIST_ASSERT_VALID(l) \
do { \
Node *n, *pred; \
#define LIST_ASSERT_VALID(l) \
do { \
Node *n, *pred; \
@@
-247,7
+250,7
@@
typedef struct _PriNode
#define INVALIDATE_NODE(n) do {} while (0)
#endif
#define INVALIDATE_NODE(n) do {} while (0)
#endif
-/*
!
Add node to list head. */
+/*
*
Add node to list head. */
#define ADDHEAD(l,n) \
do { \
ASSERT(l); \
#define ADDHEAD(l,n) \
do { \
ASSERT(l); \
@@
-258,7
+261,7
@@
typedef struct _PriNode
(n)->pred->succ = (n); \
} while (0)
(n)->pred->succ = (n); \
} while (0)
-/*
!
Add node to list tail. */
+/*
*
Add node to list tail. */
#define ADDTAIL(l,n) \
do { \
ASSERT(l); \
#define ADDTAIL(l,n) \
do { \
ASSERT(l); \
@@
-269,7
+272,7
@@
typedef struct _PriNode
(l)->tail.pred = (n); \
} while (0)
(l)->tail.pred = (n); \
} while (0)
-/*
!
+/*
*
* Insert node \a n before node \a ln.
*
* \note You can't pass in a list header as \a ln, but
* Insert node \a n before node \a ln.
*
* \note You can't pass in a list header as \a ln, but
@@
-283,7
+286,7
@@
typedef struct _PriNode
(ln)->pred = (n); \
} while (0)
(ln)->pred = (n); \
} while (0)
-/*
!
+/*
*
* Remove \a n from whatever list it is in.
*
* \note Removing a node that has not previously been
* Remove \a n from whatever list it is in.
*
* \note Removing a node that has not previously been
@@
-296,7
+299,7
@@
typedef struct _PriNode
INVALIDATE_NODE(n); \
} while (0)
INVALIDATE_NODE(n); \
} while (0)
-/*
!
Tell whether a list is empty. */
+/*
*
Tell whether a list is empty. */
#define LIST_EMPTY(l) ( (void *)((l)->head.succ) == (void *)(&(l)->tail) )
/**
#define LIST_EMPTY(l) ( (void *)((l)->head.succ) == (void *)(&(l)->tail) )
/**
@@
-316,7
+319,7
@@
typedef struct _PriNode
} while (0)
} while (0)
-/*
!
+/*
*
* Unlink a node from the head of the list \a l.
*
* \return Pointer to node, or NULL if the list was empty.
* Unlink a node from the head of the list \a l.
*
* \return Pointer to node, or NULL if the list was empty.
@@
-336,7
+339,7
@@
INLINE Node *list_remHead(List *l)
return n;
}
return n;
}
-/*
!
+/*
*
* Unlink a node from the tail of the list \a l.
*
* \return Pointer to node, or NULL if the list was empty.
* Unlink a node from the tail of the list \a l.
*
* \return Pointer to node, or NULL if the list was empty.
diff --git
a/mware/msg.c
b/mware/msg.c
index 76c66437022b3203d1107a267994f62b99c86d34..f046064e10dea9bdfc0afab991ba404ace36a5bf 100755
(executable)
--- a/
mware/msg.c
+++ b/
mware/msg.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.1 2005/03/01 23:31:02 bernie
*#* String table and localization stuff.
*#*
*#* Revision 1.1 2005/03/01 23:31:02 bernie
*#* String table and localization stuff.
*#*
@@
-22,7
+25,7
@@
#include "msg.h"
#include "msg.h"
-/*
!
+/*
*
* Array of pointers to localized strings. Should be filled
* by localization stuff, but not for now.
*/
* Array of pointers to localized strings. Should be filled
* by localization stuff, but not for now.
*/
@@
-41,7
+44,7
@@
const char *msg_strings[MSG_COUNT] = {
*/
*/
-/*
!
+/*
*
* Untranslated constant strings used more than once are
* grouped here to save ROM space.
*/
* Untranslated constant strings used more than once are
* grouped here to save ROM space.
*/
diff --git
a/mware/parser.c
b/mware/parser.c
index 0b2c8738f54b05bf2322f0c10ea0a9798468c14e..7356315ed8685d7de5266cd38bc69110e620211f 100755
(executable)
--- a/
mware/parser.c
+++ b/
mware/parser.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2006 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2006 Develer S.r.l. (http://www.develer.com/)
@@
-29,6
+29,9
@@
/*#*
*#* $Log$
/*#*
*#* $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
*#*
*#* Revision 1.1 2006/06/01 12:27:39 marco
*#* Added utilities for protocols
*#*
@@
-47,14
+50,14
@@
#define MAX_COMMANDS_NUMBER 128 // 64
#define MAX_COMMANDS_NUMBER 128 // 64
-//
!
Hashtable hook to extract the key from a command
+//
/
Hashtable hook to extract the key from a command
static const void* get_key_from_command(const void* cmd, uint8_t* length);
static const void* get_key_from_command(const void* cmd, uint8_t* length);
-//
!
Hashtable that handles the commands that can be executed
+//
/
Hashtable that handles the commands that can be executed
DECLARE_HASHTABLE_STATIC(commands, MAX_COMMANDS_NUMBER, get_key_from_command);
DECLARE_HASHTABLE_STATIC(commands, MAX_COMMANDS_NUMBER, get_key_from_command);
-/*
!
+/*
*
* \brief Tokenize one word at a time from a text.
*
* This function is similar to strtok, but does not use any implicit
* \brief Tokenize one word at a time from a text.
*
* This function is similar to strtok, but does not use any implicit
@@
-91,7
+94,7
@@
static bool get_word(const char **begin, const char **end)
}
}
-/*
!
+/*
*
* \brief Command arguments parser.
*
* Using the format pointed by the argument fmt
* \brief Command arguments parser.
*
* Using the format pointed by the argument fmt
@@
-216,7
+219,7
@@
static int printResult(struct Serial *ser, const char *fmt, parms result[])
}
#endif /* UNUSED_CODE */
}
#endif /* UNUSED_CODE */
-//
!
Hook provided by the parser for matching of command names (TAB completion) for readline
+//
/
Hook provided by the parser for matching of command names (TAB completion) for readline
const char* parser_rl_match(UNUSED_ARG(void *,dummy), const char *word, int word_len)
{
HashIterator cur;
const char* parser_rl_match(UNUSED_ARG(void *,dummy), const char *word, int word_len)
{
HashIterator cur;
diff --git
a/mware/parser.h
b/mware/parser.h
index 9ad6567d74db8d9c6bed625886714ad1b8714402..22cff8b852b38e387675359eb71c428570120781 100755
(executable)
--- a/
mware/parser.h
+++ b/
mware/parser.h
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $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.2 2006/06/12 21:37:02 marco
*#* implemented some commands (ver and sleep)
*#*
@@
-35,10
+38,10
@@
*/
typedef enum
{
*/
typedef enum
{
- 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_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
} ResultCode;
/** union that contains parameters passed to and from commands */
} ResultCode;
/** union that contains parameters passed to and from commands */
@@
-108,7
+111,7
@@
const char* parser_rl_match(void* dummy, const char* word, int word_len);
bool parser_process_line(const char* line);
bool parser_process_line(const char* line);
-/*
!
+/*
*
* Execute a command with its arguments, and fetch its results.
*
* \param templ Template of the command to be executed
* Execute a command with its arguments, and fetch its results.
*
* \param templ Template of the command to be executed
diff --git
a/mware/pgm.h
b/mware/pgm.h
index 8f5b878d954e1286a4fa5d94a69671ab9d5845fe..5f10d002ea5a6c153048467cd1746da88a79a20b 100755
(executable)
--- a/
mware/pgm.h
+++ b/
mware/pgm.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-170,7
+170,7
@@
#define PROGMEM /* nothing */
#endif
#define PROGMEM /* nothing */
#endif
-/*
!
+/*
*
* \name Types for variables stored in program memory (harvard processors).
* \{
*/
* \name Types for variables stored in program memory (harvard processors).
* \{
*/
@@
-183,7
+183,7
@@
typedef PROGMEM int32_t pgm_int32_t;
typedef PROGMEM uint32_t pgm_uint32_t;
/*\}*/
typedef PROGMEM uint32_t pgm_uint32_t;
/*\}*/
-/*
!
+/*
*
* \name PGM support macros.
*
* These macros enable dual compilation of code for both program
* \name PGM support macros.
*
* These macros enable dual compilation of code for both program
diff --git
a/mware/pool.h
b/mware/pool.h
index 87e4abc58c22a1bcd82aee623fcf3706152e3d96..89bb559cf4f3de7b2df573832f5437c3f0422eaa 100755
(executable)
--- a/
mware/pool.h
+++ b/
mware/pool.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-13,6
+13,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.6 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.5 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.5 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
diff --git
a/mware/readline.c
b/mware/readline.c
index 86c1dfd8f265fd392df7bb1b735253511e382770..873b14a7ab31b3904b2e41dfbc3349ce77e787d1 100755
(executable)
--- a/
mware/readline.c
+++ b/
mware/readline.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-45,6
+45,9
@@
/*#*
*#* $Log$
/*#*
*#* $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
*#*
*#* Revision 1.1 2006/06/01 12:27:39 marco
*#* Added utilities for protocols
*#*
@@
-58,14
+61,14
@@
#include <stdio.h>
#include <stdio.h>
-//
!
Enable compilation of the unit test code
+//
/
Enable compilation of the unit test code
#define DEBUG_UNIT_TEST 0
#define DEBUG_UNIT_TEST 0
-//
!
Enable dump of the history after each line
+//
/
Enable dump of the history after each line
#define DEBUG_DUMP_HISTORY 0
#define DEBUG_DUMP_HISTORY 0
-/*
!
Special keys (escape sequences converted to a single code) */
+/*
*
Special keys (escape sequences converted to a single code) */
enum RL_KEYS {
SPECIAL_KEYS = 0x1000,
enum RL_KEYS {
SPECIAL_KEYS = 0x1000,
@@
-117,12
+120,12
@@
enum RL_KEYS {
KEY_F10, KEY_F11, KEY_F12,
};
KEY_F10, KEY_F11, KEY_F12,
};
-/*
!
Check if \a c is a separator between words.
+/*
*
Check if \a c is a separator between words.
* \note Parameter \a c is evaluated multiple times
*/
#define IS_WORD_SEPARATOR(c) ((c) == ' ' || (c) == '\0')
* \note Parameter \a c is evaluated multiple times
*/
#define IS_WORD_SEPARATOR(c) ((c) == ' ' || (c) == '\0')
-//
!
Write the string \a txt to the IO output (without any kind of termination)
+//
/
Write the string \a txt to the IO output (without any kind of termination)
INLINE void rl_puts(const struct RLContext* ctx, const char* txt)
{
if (!ctx->put)
INLINE void rl_puts(const struct RLContext* ctx, const char* txt)
{
if (!ctx->put)
@@
-132,14
+135,14
@@
INLINE void rl_puts(const struct RLContext* ctx, const char* txt)
ctx->put(*txt++, ctx->put_param);
}
ctx->put(*txt++, ctx->put_param);
}
-//
!
Write character \a ch to the IO output.
+//
/
Write character \a ch to the IO output.
INLINE void rl_putc(const struct RLContext* ctx, char ch)
{
if (ctx->put)
ctx->put(ch, ctx->put_param);
}
INLINE void rl_putc(const struct RLContext* ctx, char ch)
{
if (ctx->put)
ctx->put(ch, ctx->put_param);
}
-/*
!
Read a character from the IO into \a ch. This function also takes
+/*
*
Read a character from the IO into \a ch. This function also takes
* care of converting the ANSI escape sequences into one of the codes
* defined in \c RL_KEYS.
*/
* care of converting the ANSI escape sequences into one of the codes
* defined in \c RL_KEYS.
*/
@@
-226,19
+229,19
@@
static bool pop_history(struct RLContext* ctx, int total_len)
return true;
}
return true;
}
-//
!
Check if index \a i points to the begin of the history.
+//
/
Check if index \a i points to the begin of the history.
INLINE bool is_history_begin(struct RLContext* ctx, int i)
{ return ctx->history + i == ctx->real_history; }
INLINE bool is_history_begin(struct RLContext* ctx, int i)
{ return ctx->history + i == ctx->real_history; }
-//
!
Check if index \a i points to the (exclusive) end of history
+//
/
Check if index \a i points to the (exclusive) end of history
INLINE bool is_history_end(struct RLContext* ctx, int i)
{ return ctx->history + i == ctx->real_history + HISTORY_SIZE; }
INLINE bool is_history_end(struct RLContext* ctx, int i)
{ return ctx->history + i == ctx->real_history + HISTORY_SIZE; }
-//
!
Check if index \a i points to the (exclusive) end of history, or somewhere past the end.
+//
/
Check if index \a i points to the (exclusive) end of history, or somewhere past the end.
INLINE bool is_history_past_end(struct RLContext* ctx, int i)
{ return ctx->history + i >= ctx->real_history + HISTORY_SIZE; }
INLINE bool is_history_past_end(struct RLContext* ctx, int i)
{ return ctx->history + i >= ctx->real_history + HISTORY_SIZE; }
-/*
!
Insert \a num_chars characters from \a ch into the history buffer at the
+/*
*
Insert \a num_chars characters from \a ch into the history buffer at the
* position indicated by \a curpos. If needed, remove old history to make room.
* Returns true if everything was successful, false if there was no room to
* add the characters.
* position indicated by \a curpos. If needed, remove old history to make room.
* Returns true if everything was successful, false if there was no room to
* add the characters.
@@
-263,14
+266,14
@@
static bool insert_chars(struct RLContext* ctx, size_t *curpos, const char* ch,
return true;
}
return true;
}
-//
!
Insert a single character \a ch into the buffer (with the same semantic of \c insert_chars())
+//
/
Insert a single character \a ch into the buffer (with the same semantic of \c insert_chars())
static bool insert_char(struct RLContext* ctx, size_t *curpos, char ch)
{
return insert_chars(ctx, curpos, &ch, 1);
}
#if DEBUG_DUMP_HISTORY
static bool insert_char(struct RLContext* ctx, size_t *curpos, char ch)
{
return insert_chars(ctx, curpos, &ch, 1);
}
#if DEBUG_DUMP_HISTORY
-//
!
Dump the internal history of a context (used only for debug purposes)
+//
/
Dump the internal history of a context (used only for debug purposes)
static void dump_history(struct RLContext* ctx)
{
int k;
static void dump_history(struct RLContext* ctx)
{
int k;
@@
-291,7
+294,7
@@
static void dump_history(struct RLContext* ctx)
}
#endif /* DEBUG_DUMP_HISTORY */
}
#endif /* DEBUG_DUMP_HISTORY */
-//
!
Complete the current word. Return false if no unambiguous completion was found
+//
/
Complete the current word. Return false if no unambiguous completion was found
static bool complete_word(struct RLContext *ctx, size_t *curpos)
{
const char* completed_word;
static bool complete_word(struct RLContext *ctx, size_t *curpos)
{
const char* completed_word;
@@
-420,7
+423,7
@@
const char* rl_readline(struct RLContext* ctx)
#if DEBUG_UNIT_TEST
#if DEBUG_UNIT_TEST
-/*
!
Perform the unit test for the readline library */
+/*
*
Perform the unit test for the readline library */
void rl_test(void);
#if HISTORY_SIZE != 32
void rl_test(void);
#if HISTORY_SIZE != 32
@@
-435,7
+438,7
@@
static int test_getc(void* data)
return *test_getc_ptr++;
}
return *test_getc_ptr++;
}
-/*
!
Perform a readline test. The function pipes the characters from \a input_buffer
+/*
*
Perform a readline test. The function pipes the characters from \a input_buffer
* through the I/O to \c rl_readline(). After the whole string is sent, \c do_test()
* checks if the current history within the context match \a expected_history.
*/
* through the I/O to \c rl_readline(). After the whole string is sent, \c do_test()
* checks if the current history within the context match \a expected_history.
*/
diff --git
a/mware/readline.h
b/mware/readline.h
index d875daa4811ec2be21d0454dc5e50bf0966b0520..a46ad513230c0249b0033e41e3ba3a680b759bc1 100755
(executable)
--- a/
mware/readline.h
+++ b/
mware/readline.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright (C) 2004 Giovanni Bajo
* \file
* <!--
* Copyright (C) 2004 Giovanni Bajo
@@
-22,6
+22,9
@@
/*#*
*#* $Log$
/*#*
*#* $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
*#*
*#* Revision 1.1 2006/06/01 12:27:39 marco
*#* Added utilities for protocols
*#*
diff --git
a/mware/rle.c
b/mware/rle.c
index 4cda86aa09bc33ca73bafa1d1a3a6f79d577f28c..c52b2101856ab05d53fd1e371aea417a00fa801a 100755
(executable)
--- a/
mware/rle.c
+++ b/
mware/rle.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.3 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-30,7
+33,7
@@
#include "rle.h"
#include "rle.h"
-/*
!
+/*
*
* Run-length encode \a len bytes from the \a input buffer
* to the \a output buffer.
*/
* Run-length encode \a len bytes from the \a input buffer
* to the \a output buffer.
*/
@@
-98,7
+101,7
@@
int rle(unsigned char *output, const unsigned char *input, int len)
}
}
-/*
!
+/*
*
* Run-length decode from the \a input buffer to the \a output
* buffer.
*
* Run-length decode from the \a input buffer to the \a output
* buffer.
*
diff --git
a/mware/rle.h
b/mware/rle.h
index 63bac11b234f20ac198086a6fe64c5d6c5a71bb3..04b47f465ef55608e0d25402900c379dd985cf95 100755
(executable)
--- a/
mware/rle.h
+++ b/
mware/rle.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.3 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.3 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
diff --git
a/mware/sprintf.c
b/mware/sprintf.c
index 6ce8e0da5031c69e610d7b0b21aaf27ab6d80949..53cb92058a60614cb4b29c9fc6ba25e799e29257 100755
(executable)
--- a/
mware/sprintf.c
+++ b/
mware/sprintf.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2002, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2002, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-13,6
+13,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.11 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.10 2005/04/11 19:10:28 bernie
*#* Include top-level headers from cfg/ subdir.
*#*
*#* Revision 1.10 2005/04/11 19:10:28 bernie
*#* Include top-level headers from cfg/ subdir.
*#*
@@
-98,7
+101,7
@@
int PGM_FUNC(sprintf)(char *str, const char * fmt, ...)
return result;
}
return result;
}
-/*
!
+/*
*
* State information for __sn_put_char()
*/
struct __sn_state
* State information for __sn_put_char()
*/
struct __sn_state
@@
-107,7
+110,7
@@
struct __sn_state
size_t len;
};
size_t len;
};
-/*
!
+/*
*
* formatted_write() callback used [v]snprintf().
*/
static void __sn_put_char(char c, void *ptr)
* formatted_write() callback used [v]snprintf().
*/
static void __sn_put_char(char c, void *ptr)
diff --git
a/mware/sprintf_test.c
b/mware/sprintf_test.c
index 697a544ecc6fcc19d22b41f805f25dfa600c5883..4517214ffec9ee6a370ce1c476a05eb15116adf8 100755
(executable)
--- a/
mware/sprintf_test.c
+++ b/
mware/sprintf_test.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
@@
-13,6
+13,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.6 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.5 2005/11/04 17:47:26 bernie
*#* Fix one warning.
*#*
*#* Revision 1.5 2005/11/04 17:47:26 bernie
*#* Fix one warning.
*#*
diff --git
a/mware/strtol10.c
b/mware/strtol10.c
index 67ac010d11267519d2df4730b45657aae104ce8a..1f6d70555521e525e0231bce69131e3b22f17464 100755
(executable)
--- a/
mware/strtol10.c
+++ b/
mware/strtol10.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-13,6
+13,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.3 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.2 2005/04/11 18:10:45 bernie
*#* Doxygen fixes.
*#*
*#* Revision 1.2 2005/04/11 18:10:45 bernie
*#* Doxygen fixes.
*#*
@@
-23,7
+26,7
@@
#include "strtol10.h"
#include "strtol10.h"
-/*
!
+/*
*
* Convert a formatted base-10 ASCII number to unsigned long binary representation.
*
* Unlike the standard strtoul(), this function has an interface
* Convert a formatted base-10 ASCII number to unsigned long binary representation.
*
* Unlike the standard strtoul(), this function has an interface
@@
-58,7
+61,7
@@
bool strtoul10(const char *first, const char *last, unsigned long *val)
}
}
-/*
!
+/*
*
* Convert a formatted base-10 ASCII number to signed long binary representation.
*
* \see strtoul10()
* Convert a formatted base-10 ASCII number to signed long binary representation.
*
* \see strtoul10()
diff --git
a/mware/strtol10.h
b/mware/strtol10.h
index ab44f5c7906f860963b5bdb3ae11432626b35fa1..f577fccf70de5b57410559c22b2824641ee9d3fd 100755
(executable)
--- a/
mware/strtol10.h
+++ b/
mware/strtol10.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-13,6
+13,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.3 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.2 2005/04/11 19:10:28 bernie
*#* Include top-level headers from cfg/ subdir.
*#*
*#* Revision 1.2 2005/04/11 19:10:28 bernie
*#* Include top-level headers from cfg/ subdir.
*#*
@@
-29,7
+32,7
@@
bool strtoul10(const char *first, const char *last, unsigned long *val);
bool strtol10(const char *first, const char *last, long *val);
bool strtoul10(const char *first, const char *last, unsigned long *val);
bool strtol10(const char *first, const char *last, long *val);
-/*
!
+/*
*
* Replacement for standard library function atol().
*/
INLINE long atol(const char *str)
* Replacement for standard library function atol().
*/
INLINE long atol(const char *str)
@@
-39,7
+42,7
@@
INLINE long atol(const char *str)
return val;
}
return val;
}
-/*
!
+/*
*
* Replacement for standard library function atoi().
*/
INLINE int atoi(const char *str)
* Replacement for standard library function atoi().
*/
INLINE int atoi(const char *str)
diff --git
a/mware/xmodem.c
b/mware/xmodem.c
index 2b9651dfc5973dff8c10742317719ce500f89d28..4f89bcd3f7129e1f2ac5fd195ee58c51901e37a8 100755
(executable)
--- a/
mware/xmodem.c
+++ b/
mware/xmodem.c
@@
-1,5
+1,5
@@
#error This module has not been revised for the API changes in several DevLib modules
#error This module has not been revised for the API changes in several DevLib modules
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-28,6
+28,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.10 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.9 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
*#* Revision 1.9 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
@@
-71,22
+74,22
@@
#include <string.h> /* for memset() */
#include <string.h> /* for memset() */
-/*
!
+/*
*
* \name Protocol control codes
* \{
*/
* \name Protocol control codes
* \{
*/
-#define XM_SOH 0x01 /*
!
< Start Of Header (128-byte block) */
-#define XM_STX 0x02 /*
!
< Start Of Header (1024-byte block) */
-#define XM_EOT 0x04 /*
!
< End Of Transmission */
-#define XM_ACK 0x06 /*
!
< Acknowledge block */
-#define XM_NAK 0x15 /*
!
< Negative Acknowledge */
-#define XM_C 0x43 /*
!
< Request CRC-16 transmission */
-#define XM_CAN 0x18 /*
!
< CANcel transmission */
+#define XM_SOH 0x01 /*
*
< Start Of Header (128-byte block) */
+#define XM_STX 0x02 /*
*
< Start Of Header (1024-byte block) */
+#define XM_EOT 0x04 /*
*
< End Of Transmission */
+#define XM_ACK 0x06 /*
*
< Acknowledge block */
+#define XM_NAK 0x15 /*
*
< Negative Acknowledge */
+#define XM_C 0x43 /*
*
< Request CRC-16 transmission */
+#define XM_CAN 0x18 /*
*
< CANcel transmission */
/*\}*/
/*\}*/
-#define XM_MAXRETRIES 15 /*
!
< Max retries before giving up */
-#define XM_MAXCRCRETRIES 7 /*
!
< Max retries before switching to BCC */
-#define XM_BUFSIZE 1024 /*
!
< Size of block buffer */
+#define XM_MAXRETRIES 15 /*
*
< Max retries before giving up */
+#define XM_MAXCRCRETRIES 7 /*
*
< Max retries before switching to BCC */
+#define XM_BUFSIZE 1024 /*
*
< Size of block buffer */
#if (ARCH & ARCH_BOOT)
#if (ARCH & ARCH_BOOT)
@@
-106,7
+109,7
@@
#endif /* ARCH_BOOT */
#endif /* ARCH_BOOT */
-/*
!
+/*
*
* Decode serial driver errors and print them on the display.
*/
static void print_serial_error(struct Serial *port, int retries)
* Decode serial driver errors and print them on the display.
*/
static void print_serial_error(struct Serial *port, int retries)
@@
-131,7
+134,7
@@
static void print_serial_error(struct Serial *port, int retries)
}
}
-/*
!
+/*
*
* \brief Receive a file using the XModem protocol.
*
* \param port Serial port to use for transfer
* \brief Receive a file using the XModem protocol.
*
* \param port Serial port to use for transfer
@@
-347,7
+350,7
@@
bool xmodem_recv(struct Serial *port, KFile *fd)
}
}
-/*
!
+/*
*
* \brief Transmit a file using the XModem protocol.
*
* \param port Serial port to use for transfer
* \brief Transmit a file using the XModem protocol.
*
* \param port Serial port to use for transfer
diff --git
a/mware/xmodem.h
b/mware/xmodem.h
index 4bf6c73353f5cad5a35198ea59cd5edd817f5dcc..e83f836e00686151450ed89a68e0639c28ec48ba 100755
(executable)
--- a/
mware/xmodem.h
+++ b/
mware/xmodem.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
@@
-13,6
+13,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.5 2006/07/19 12:56:28 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.4 2005/11/04 16:20:02 bernie
*#* Fix reference to README.devlib in header.
*#*
diff --git
a/os/hptime.c
b/os/hptime.c
index 995c8d9efd82d44ff0db6497425e8e46c5fdf25d..71e920ca5d8d24a5212a633471a6133dd32c54b2 100755
(executable)
--- a/
os/hptime.c
+++ b/
os/hptime.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
@@
-13,6
+13,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.8 2006/07/19 12:56:28 bernie
+ *#* Convert to new Doxygen style.
+ *#*
*#* Revision 1.7 2006/07/19 12:53:58 bernie
*#* Documentation fixes.
*#*
*#* Revision 1.7 2006/07/19 12:53:58 bernie
*#* Documentation fixes.
*#*
diff --git
a/rules.mk
b/rules.mk
index 1bcf5c66405d78b821eff27cc87012ac0e7b8680..e764924e29685b7ba8c214363d30bee3e05dc077 100755
(executable)
--- a/
rules.mk
+++ b/
rules.mk
@@
-10,6
+10,9
@@
# Author: Bernardo Innocenti <bernie@develer.com>
#
# $Log$
# Author: Bernardo Innocenti <bernie@develer.com>
#
# $Log$
+# Revision 1.4 2006/07/19 12:56:24 bernie
+# Convert to new Doxygen style.
+#
# Revision 1.3 2006/05/27 22:42:24 bernie
# Search for verstag.h in app subdirs first.
#
# Revision 1.3 2006/05/27 22:42:24 bernie
# Search for verstag.h in app subdirs first.
#
@@
-191,6
+194,7
@@
flash_$(1): $(OUTDIR)/$(1).s19 flash_$(1)_local
if ! $(AVRDUDE) $(DPROG) -p $$($(1)_MCU) -U flash:w:$$< ; then \
$(AVRDUDE) $(DPROG) -p $$($(1)_MCU) -U flash:w:$$< ; \
fi
if ! $(AVRDUDE) $(DPROG) -p $$($(1)_MCU) -U flash:w:$$< ; then \
$(AVRDUDE) $(DPROG) -p $$($(1)_MCU) -U flash:w:$$< ; \
fi
+ #avarice --mkII -j usb --erase --program --verify --file images/triface.elf
.PHONY: flash_$(1)_local
flash_$(1)_local:
.PHONY: flash_$(1)_local
flash_$(1)_local:
diff --git
a/verstag.c
b/verstag.c
index 33a05d75270c336ed611c328df5574ed0d435877..f0afc47ec3a877a2f54c34bdd83d8d8e997385cc 100755
(executable)
--- a/
verstag.c
+++ b/
verstag.c
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2004, 2005 Develer S.r.l. (http://www.develer.com/)
diff --git
a/verstag.h
b/verstag.h
index 527e9dc60fd143a272c00b698de860ba47356bf4..a1f37ac3d5e88949491ae5acb78df0f956437bb8 100755
(executable)
--- a/
verstag.h
+++ b/
verstag.h
@@
-38,7
+38,7
@@
#error unknown architecture
#endif
#error unknown architecture
#endif
-/*
!
+/*
*
* If _SNAPSHOT is defined, \c VERS_TAG contains the build date
* date instead of a numeric version string.
*/
* If _SNAPSHOT is defined, \c VERS_TAG contains the build date
* date instead of a numeric version string.
*/
@@
-53,7
+53,7
@@
#define __STRINGIZE(x) #x
#define _STRINGIZE(x) __STRINGIZE(x)
#define __STRINGIZE(x) #x
#define _STRINGIZE(x) __STRINGIZE(x)
-/*
!
Build application version string (i.e.: "1.7.0") */
+/*
*
Build application version string (i.e.: "1.7.0") */
#define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
#ifdef _SNAPSHOT
#define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
#define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
#ifdef _SNAPSHOT
#define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
@@
-61,18
+61,18
@@
#define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
#endif
#define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
#endif
-/*
!
Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */
+/*
*
Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */
#define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
#define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
#define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
#define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
-/*
!
The revision string (contains VERS_TAG) */
+/*
*
The revision string (contains VERS_TAG) */
extern const char vers_tag[];
extern const char vers_tag[];
-/*
!
Sequential build number (contains VERS_BUILD) */
+/*
*
Sequential build number (contains VERS_BUILD) */
extern const int vers_build_nr;
//extern const char vers_build_str[];
extern const int vers_build_nr;
//extern const char vers_build_str[];
-/*
!
Hostname of the machine used to build this binary (contains VERS_HOST) */
+/*
*
Hostname of the machine used to build this binary (contains VERS_HOST) */
extern const char vers_host[];
#endif /* DEVLIB_VERSTAG_H */
extern const char vers_host[];
#endif /* DEVLIB_VERSTAG_H */