* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
- * Copyright 2007 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2008 Develer S.r.l. (http://www.develer.com/)
*
* -->
*
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
- * Copyright 2007 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2008 Develer S.r.l. (http://www.develer.com/)
*
* -->
*
#include "hw_cpu.h" /* for CLOCK_FREQ */
#include "hw_ser.h" /* Required for bus macros overrides */
-#include <appconfig.h>
+#include <cfg/cfg_debug.h>
#include <cfg/macros.h> /* for BV(), DIV_ROUND */
#include <cpu/types.h>
#include "lcd_32122a_avr.h"
-#include "appconfig.h"
+#include <cfg/cfg_lcd.h>
#include <cfg/macros.h> /* BV() */
#include <cfg/debug.h>
#include "pwm_avr.h"
#include "hw_cpu.h"
-#include "appconfig.h"
-
#warning TODO:This is an exmple of implementation of PWM low level channel for AVR, implemnt it!
/**
#include "pwm_map.h"
-#include "appconfig.h"
-
#include <cpu/types.h>
#define PWM_HW_MAX_PRESCALER_STEP 10
* \author Stefano Fedrigo <aleph@develer.com>
*/
-#include <drv/ser.h>
-#include <drv/ser_p.h>
+#include "hw_ser.h" /* Required for bus macros overrides */
+#include "hw_cpu.h" /* CLOCK_FREQ */
-#include <hw_ser.h> /* Required for bus macros overrides */
-#include <hw_cpu.h> /* CLOCK_FREQ */
-#include <appconfig.h>
+#include <cfg/cfg_ser.h>
#include <cfg/macros.h> /* DIV_ROUND */
#include <cfg/debug.h>
+
+#include <drv/ser.h>
+#include <drv/ser_p.h>
#include <drv/timer.h>
+
#include <mware/fifobuf.h>
#include <avr/io.h>
+
#if defined(__AVR_LIBC_VERSION__) && (__AVR_LIBC_VERSION__ >= 10400UL)
#include <avr/interrupt.h>
#else
#include "twi_avr.h"
+#include "hw_cpu.h" /* CLOCK_FREQ */
+
+#include <cfg/cfg_twi.h>
#include <cfg/debug.h>
+#include <cfg/macros.h> // BV()
+
#include <cpu/detect.h>
#include <cpu/irq.h>
-#include <cfg/macros.h> // BV()
-#include <hw_cpu.h> /* CLOCK_FREQ */
-#include <appconfig.h>
#include <compat/twi.h>
#include "buzzerled.h"
-#include <appconfig.h>
-#include <drv/timer.h>
-
#warning FIXME:This drive is obsolete, you must refactor it.
#if 0
+#include <cfg/cfg_buzzerled.h>
+#include <drv/timer.h>
+
static struct Timer timers[CONFIG_NUM_BLDS];
static bool timer_go[CONFIG_NUM_BLDS];
#include "hw_dc_motor.h"
+#include <cfg/cfg_dc_motor.h>
+#include <cfg/macros.h>
+
#include <algo/pid_control.h>
#include <drv/pwm.h>
#include <drv/timer.h>
#include <drv/adc.h>
-#include <cfg/macros.h>
-
-#include "appconfig.h"
/**
* Define status bit for DC motor device.
* \author Stefano Fedrigo <aleph@develer.com>
*/
-#include <cpu/irq.h>
-#include <cpu/attr.h>
-#include <cpu/types.h>
+#include <cfg/cfg_debug.h>
#include <cfg/macros.h> /* for BV() */
#include <cfg/debug.h>
-#include <appconfig.h>
+#include <cpu/irq.h>
+#include <cpu/attr.h>
+#include <cpu/types.h>
#include <mware/formatwr.h> /* for _formatted_write() */
#include <mware/pgm.h>
*/
#include "hw_lcd.h"
+#include "lcd_hd44.h"
#include <cfg/cfg_arch.h>
-#include <drv/lcd_hd44.h>
#include <drv/timer.h>
#if defined(LCD_READ_H) && defined(LCD_READ_L) && defined(LCD_WRITE_H) && defined(LCD_WRITE_L)
*/
#include "hw_lcd.h"
+#include "lcd_hd44.h"
#include <drv/timer.h>
-#include <drv/lcd_hd44.h>
void lcd_hw_test(void)
{
#include "ser.h"
#include "wdt.h"
#include "ser_p.h"
-#include <mware/formatwr.h>
+
+#include <cfg/cfg_ser.h>
+#include <cfg/cfg_kern.h>
#include <cfg/debug.h>
-#include <appconfig.h>
+
+#include <mware/formatwr.h>
#include <string.h> /* memset */
#include "spi_bitbang.h"
#include "hw_spi.h"
+#include <cfg/cfg_spi_bitbang.h>
#include <cfg/module.h>
+
#include <cpu/irq.h>
void spi_assertSS(void)
#ifndef DRV_SPI_BITBANG_H
#define DRV_SPI_BITBANG_H
-#include <appconfig.h>
+#include <cfg/cfg_spi_bitbang.h>
#include <cfg/compiler.h>
#include <algo/ramp.h>
-#include <drv/stepper_at91.h>
+#include CPU_HEADER(stepper)
#include <string.h> // memset
#include "timer.h"
-#include <cpu/attr.h>
-#include <cpu/types.h>
-#include <cpu/irq.h>
-
+#include <cfg/cfg_timer.h>
+#include <cfg/cfg_wdt.h>
#include <cfg/os.h>
#include <cfg/debug.h>
#include <cfg/module.h>
-#include <appconfig.h>
+
+#include <cpu/attr.h>
+#include <cpu/types.h>
+#include <cpu/irq.h>
/*
* Include platform-specific binding code if we're hosted.
#include "gfx.h"
#include "gfx_p.h"
-#include <cfg/debug.h> /* ASSERT() */
-#include <cpu/attr.h> /* CPU_HARVARD */
-#include <cfg/macros.h> /* MIN() */
-#include <appconfig.h> /* CONFIG_GFX_CLIPPING */
+#include <cfg/cfg_gfx.h> /* CONFIG_GFX_CLIPPING */
+#include <cfg/macros.h> /* MIN() */
+#include <cfg/debug.h> /* ASSERT() */
+
+#include <cpu/attr.h> /* CPU_HARVARD */
#include <string.h> /* memset() */
* \author Bernardo Innocenti <bernie@develer.com>
*/
-/*#*
- *#* $Log$
- *#* Revision 1.5 2006/08/01 12:23:03 bernie
- *#* Indentation fix.
- *#*
- *#* 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.2 2005/11/04 18:17:45 bernie
- *#* Fix header guards and includes for new location of gfx module.
- *#*
- *#* Revision 1.1 2005/11/04 18:11:35 bernie
- *#* Move graphics stuff from mware/ to gfx/.
- *#*
- *#* Revision 1.7 2005/11/04 16:20:02 bernie
- *#* Fix reference to README.devlib in header.
- *#*
- *#* Revision 1.6 2005/04/11 19:10:28 bernie
- *#* Include top-level headers from cfg/ subdir.
- *#*
- *#* Revision 1.5 2004/09/14 20:56:39 bernie
- *#* Make more generic and adapt to new gfx functions.
- *#*
- *#* Revision 1.3 2004/08/11 19:39:12 bernie
- *#* Use chart_x_t and chart_y_t for the input dataset.
- *#*
- *#* Revision 1.1 2004/08/04 03:16:30 bernie
- *#* Import simple chart drawing code.
- *#*
- *#*/
#ifndef GFX_CHARTS_H
#define GFX_CHARTS_H
+#include <cfg/cfg_gfx.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
#ifndef GFX_GFX_H
#define GFX_GFX_H
+#include <cfg/cfg_gfx.h> /* CONFIG_GFX_* */
#include <cfg/compiler.h>
-#include <cpu/attr.h> /* CPU_HARVARD */
-#include <appconfig.h> /* CONFIG_GFX_* */
+#include <cpu/attr.h> /* CPU_HARVARD */
+
/**
* \name Known pixel formats for bitmap representation.
#include "gfx.h"
#include "gfx_p.h"
+#include <cfg/cfg_gfx.h> /* CONFIG_GFX_CLIPPING */
#include <cfg/debug.h> /* ASSERT() */
#include <cfg/macros.h> /* SWAP() */
-#include <appconfig.h> /* CONFIG_GFX_CLIPPING */
/* Configuration sanity checks */
#if !defined(CONFIG_GFX_CLIPPING) || (CONFIG_GFX_CLIPPING != 0 && CONFIG_GFX_CLIPPING != 1)
#include "leveledit.h"
-#include <appconfig.h>
+#include <cfg/cfg_gfx.h>
#include <cfg/macros.h> /* MAX() */
#include <drv/kbd.h>
#ifndef MWARE_MENUBAR_H
#define MWARE_MENUBAR_H
-#include <appconfig.h>
#include <cfg/compiler.h>
/** Predefined labels ids */
#include "kfile.h"
-#include <appconfig.h>
+#include <cfg/cfg_kfile.h>
#include <cfg/debug.h>
+
#include <mware/formatwr.h>
+
#include <string.h>
/*
#include "kfile.h"
-#include <appconfig.h>
+#include <cfg/cfg_kfile.h>
#include <cfg/debug.h>
+
#include <mware/formatwr.h>
+
#include <string.h>
#warning TODO:Refactor this module..
#ifndef KERN_MONITOR_H
#define KERN_MONITOR_H
+#include <cfg/cfg_kern.h>
+
#include <cpu/types.h>
-#include <config_kern.h>
#if CONFIG_KERN_MONITOR
#include "proc_p.h"
#include "proc.h"
-//#include "hw.h"
-#include <mware/event.h>
+
+#include <cfg/cfg_arch.h> /* ARCH_EMUL */
+#include <cfg/debug.h>
+#include <cfg/module.h>
+#include <cfg/macros.h> /* ABS() */
+
#include <cpu/irq.h>
#include <cpu/types.h>
#include <cpu/attr.h>
-#include <cfg/debug.h>
-#include <cfg/module.h>
-#include <cfg/arch_config.h> /* ARCH_EMUL */
-#include <cfg/macros.h> /* ABS() */
-#include <string.h> /* memset() */
+#include <mware/event.h>
+
+#include <string.h> /* memset() */
/**
* CPU dependent context switching routines.
#ifndef KERN_PROC_P_H
#define KERN_PROC_P_H
+#include <cfg/cfg_kern.h>
#include <cfg/compiler.h>
+
#include <cpu/types.h> /* for cpu_stack_t */
+
#include <mware/list.h>
-#include <config_kern.h>
-#include <appconfig.h>
typedef struct Process
{
#include "formatwr.h"
+
+#include <cfg/cfg_formatwr.h> /* CONFIG_ macros */
+#include <cfg/debug.h> /* ASSERT */
+
#include <mware/pgm.h>
#include <mware/hex.h>
-#include <cfg/debug.h> /* ASSERT */
-#include <appconfig.h> /* CONFIG_ macros */
#ifndef CONFIG_PRINTF_N_FORMATTER
/** Disable the arcane %n formatter. */
#ifndef MWARE_FORMATWR_H
#define MWARE_FORMATWR_H
-#include <stdarg.h> /* va_list */
-#include <appconfig.h>
+#include <cfg/cfg_formatwr.h>
+
#include <cpu/attr.h> /* CPU_HARVARD */
+#include <stdarg.h> /* va_list */
+
/**
* \name _formatted_write() configuration
* \{
*
* \brief Heap subsystem (public interface).
*
- * \version $Id$
- *
- * \author Bernardo Innocenti <bernie@develer.com>
- *
* \todo Heap memory could be defined as an array of MemChunk, and used
* in this form also within the implementation. This would probably remove
* memory alignment problems, and also some aliasing issues.
*
+ * \version $Id$
+ *
+ * \author Bernardo Innocenti <bernie@develer.com>
+ *
*/
#ifndef MWARE_HEAP_H
#define MWARE_HEAP_H
-#include <appconfig.h>
-
+#include <cfg/cfg_heap.h>
#include <cfg/compiler.h>
struct _MemChunk;
#include "parser.h"
-#include "appconfig.h"
+#include <cfg/cfg_parser.h>
#include <drv/ser.h>
#include <mware/hashtable.h>
#define BERTOS_VERSTAG_H
#ifndef CFG_ARCH_CONFIG_H
- #include <cfg/arch_config.h>
+ #include <cfg/cfg_arch.h>
#endif
#define APP_NAME "Appname"