* \author Bernardo Innocenti <bernie@develer.com>
*/
-#ifndef CFG_DEBUG_H
-#define CFG_DEBUG_H
+#ifndef BERTOS_DEBUG_H
+#define BERTOS_DEBUG_H
#include <cfg/os.h>
#include <cfg/compiler.h>
-
/*
* Defaults for rarely used config stuff.
*/
#endif /* _DEBUG */
-#endif /* CFG_DEBUG_H */
+#endif /* BERTOS_DEBUG_H */
#include "adc_at91.h"
-#include <drv/adc.h>
-
+#include <cfg/cfg_adc.h>
+#include <cfg/cfg_kern.h>
#include <cfg/macros.h>
#include <cfg/compiler.h>
-#include <io/arm.h>
+#include <drv/adc.h>
-#include "appconfig.h"
+#include <io/arm.h>
#if CONFIG_KERNEL
#include <cfg/module.h>
- #include <config_kern.h>
#include <kern/proc.h>
#include <kern/signal.h>
#ifndef DRV_ADC_AT91_H
#define DRV_ADC_AT91_H
-#include <cfg/compiler.h>
-
#include "hw_cpu.h"
-#include "appconfig.h"
+
+#include <cfg/cfg_adc.h>
+
+#include <cfg/compiler.h>
/**
* ADC config define.
*/
#include "kdebug_at91.h"
-#include <hw_cpu.h> /* for CLOCK_FREQ */
-#include <hw_ser.h> /* Required for bus macros overrides */
+#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 <io/arm.h>
#include "pwm_at91.h"
#include "hw_cpu.h"
-#include "appconfig.h"
-
#include <cfg/macros.h>
#include <cfg/debug.h>
#include <io/arm.h>
-#include "appconfig.h"
#define PWM_HW_MAX_PRESCALER_STEP 10
#define PWM_HW_MAX_PERIOD 0xFFFF
* Setup all needed to test PWM on AT91
*
*/
-int pwm_setup(void)
+int pwm_testSetup(void)
{
IRQ_ENABLE;
kdbg_init();
* Test suit for genation of pwm waveform.
*
*/
-int pwm_test(void)
+int pwm_testRun(void)
{
kputs("PWM test\n\n");
kputs("Init pwm..");
- pwm_setup();
+ pwm_testSetup();
kputs("done.\n");
PWM_TEST_CH_SET(0);
/**
*
*/
-int pwm_tearDown(void)
+int pwm_testTearDown(void)
{
/* */
return 0;
int main(void)
{
- pwm_test();
+ pwm_testRun();
#include "hw_ser.h" /* Required for bus macros overrides */
#include "hw_cpu.h" /* CLOCK_FREQ */
+#include <cfg/cfg_ser.h>
#include <cfg/debug.h>
-#include <appconfig.h>
#include <io/arm.h>
#include "stepper_at91.h"
+#include <cfg/cfg_stepper.h>
#include <cfg/macros.h>
#include <cfg/debug.h>
#include <io/arm.h>
-#include "appconfig.h"
/*
* Delay to set C compare to clear output
#include "stepper_at91.h"
+#include <cfg/cfg_stepper.h>
#include <cfg/macros.h>
#include <cfg/debug.h>
#include <io/arm.h>
-#include "appconfig.h"
#warning FIXME:This test is incomplete.. you MUST review..
#ifndef DRV_AT91_TIMER_H
#define DRV_AT91_TIMER_H
-#include <appconfig.h> /* CONFIG_TIMER */
-#include <cfg/compiler.h> /* uint8_t */
-#include <hw_cpu.h> /* CLOCK_FREQ */
+#include "hw_cpu.h" /* CLOCK_FREQ */
+
+#include <cfg/cfg_timer.h> /* CONFIG_TIMER */
+#include <cfg/compiler.h> /* uint8_t */
/**
* \name Values for CONFIG_TIMER.
#include "twi_at91.h"
+#include <cfg/cfg_twi.h>
#include <cfg/compiler.h>
#include <cfg/debug.h>
#include <cfg/macros.h>
*/
#include <cfg/cfg_debug.h>
-
#include <cfg/macros.h> /* for BV() */
#include <cfg/debug.h>
+#include <cfg/os.h>
#include <cpu/irq.h>
#include <cpu/attr.h>
* \author Francesco Sacchi <batt@develer.com>
*/
-#include <drv/timer.h>
+#include "hw_mcp41.h"
#include <cfg/macros.h>
#include <cfg/compiler.h>
-#include <hw_mcp41.h>
+#include <drv/timer.h>
#include <drv/mcp41.h>
#include <drv/ser.h>
#ifndef DRV_MCP41_H
#define DRV_MCP41_H
-#include <hw/mcp41_map.h>
+#include "mcp41_map.h"
#include <cfg/compiler.h>
+
#include <drv/ser.h>
#define MCP41_WRITE_DATA 0x11
*
*/
-/*#*
- *#* $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/05/24 09:17:58 batt
- *#* Move drivers to top-level.
- *#*/
-
-#include <drv/ntc.h>
-#include <hw_ntc.h>
-#include <ntc_map.h>
+#include "hw_ntc.h"
+#include "ntc_map.h"
#include <cfg/debug.h>
+#include <drv/ntc.h>
+
DB(bool ntc_initialized;)
/**
void pwm_enable(PwmDev dev, bool state);
void pwm_init(void);
-void pwm_test(void);
+/**
+ * Test function prototypes.
+ *
+ * See pwm_test.c for implemntation of these functions.
+ */
+int pwm_testRun(void);
+int pwm_testSetup(void);
+int pwm_testTearDown(void);
#endif /* DRV_PWM_H */
* \author Marco Benelli <marco@develer.com>
*/
-#include <drv/tc520.h>
-#include <drv/timer.h>
-#include <hw_tc520.h>
+#include "hw_tc520.h"
#include <cfg/macros.h>
#include <cfg/compiler.h>
+#include <drv/tc520.h>
+#include <drv/timer.h>
+
#warning FIXME:This implementation is obsolete. Refactor with KFile interface.
#if 0
#include <cfg/cfg_timer.h>
#include <cfg/cfg_wdt.h>
+#include <cfg/cfg_kern.h>
#include <cfg/os.h>
#include <cfg/debug.h>
#include <cfg/module.h>
#endif
#if CONFIG_KERNEL
- #include <config_kern.h>
#if CONFIG_KERN_PREEMPTIVE
#include <hw/switch.h>
#endif
#include "menu.h"
-#include <appconfig.h>
-
+#include <cfg/cfg_gfx.h>
#include <cfg/compiler.h>
#include <cfg/debug.h>