From: asterix Date: Mon, 26 May 2008 20:44:25 +0000 (+0000) Subject: Add configuration file for bertos modules. X-Git-Tag: 2.0.0~553 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=9bde379b39600b3023bc42ea7affdab4edc8cf18;p=bertos.git Add configuration file for bertos modules. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1381 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cfg/cfg_buzzerled.h b/bertos/cfg/cfg_buzzerled.h new file mode 100644 index 00000000..e13b29b0 --- /dev/null +++ b/bertos/cfg/cfg_buzzerled.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Configuration file for buzzerled module. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_BUZZERLED_H +#define CFG_BUZZERLED_H + +/// TODO +#define CONFIG_NUM_BLDS 1 + + +#endif /* CFG_BUZZERLED_H */ + diff --git a/bertos/cfg/cfg_dc_motor.h b/bertos/cfg/cfg_dc_motor.h index baa09796..3475059d 100644 --- a/bertos/cfg/cfg_dc_motor.h +++ b/bertos/cfg/cfg_dc_motor.h @@ -40,5 +40,7 @@ #ifndef CFG_DC_MOTOR_H #define CFG_DC_MOTOR_H +//DC motor configuration +#define CONFIG_NUM_DC_MOTOR 1 #endif /* CFG_DC_MOTOR_H */ diff --git a/bertos/cfg/cfg_formatwr.h b/bertos/cfg/cfg_formatwr.h new file mode 100644 index 00000000..a3cf6f62 --- /dev/null +++ b/bertos/cfg/cfg_formatwr.h @@ -0,0 +1,56 @@ +/** + * \file + * + * + * \brief Configuration file for formatted write module. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_FORMTWR_H +#define CFG_FORMTWR_H + +/** + * printf()-style formatter configuration. + * + * \sa PRINTF_DISABLED + * \sa PRINTF_NOMODIFIERS + * \sa PRINTF_REDUCED + * \sa PRINTF_NOFLOAT + * \sa PRINTF_FULL + */ +#define CONFIG_PRINTF PRINTF_FULL + + +#endif /* CFG_FORMTWR_H */ + diff --git a/bertos/cfg/cfg_gfx.h b/bertos/cfg/cfg_gfx.h new file mode 100644 index 00000000..09142f9b --- /dev/null +++ b/bertos/cfg/cfg_gfx.h @@ -0,0 +1,74 @@ +/** + * \file + * + * + * \brief Configuration file for GFX module. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_GFX_H +#define CFG_GFX_H + +/// Enable line clipping algorithm. +#define CONFIG_GFX_CLIPPING 1 + +/// Enable text rendering in bitmaps. +#define CONFIG_GFX_TEXT 1 + +/// Enable virtual coordinate system. +#define CONFIG_GFX_VCOORDS 1 + +/// Select bitmap pixel format. +#define CONFIG_BITMAP_FMT BITMAP_FMT_PLANAR_V_LSB + +/** + * \name Type for the chart dataset + * \{ + */ +#define CONFIG_CHART_TYPE_X uint8_t +#define CONFIG_CHART_TYPE_Y uint8_t +/*\}*/ + + +/// Enable button bar behind menus +#define CONFIG_MENU_MENUBAR 0 +#define CONFIG_LEVELEDIT_TIMEOUT 0 +#define CONFIG_MENU_TIMEOUT 0 + +/// Enable smooth scrolling in menus +#define CONFIG_MENU_SMOOTH 1 + + +#endif /* CFG_GFX_H */ + diff --git a/bertos/cfg/cfg_heap.h b/bertos/cfg/cfg_heap.h new file mode 100644 index 00000000..0cba377b --- /dev/null +++ b/bertos/cfg/cfg_heap.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Configuration file for heap module. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_HEAP_H +#define CFG_HEAP_H + +/// TODO +#define CONFIG_HEAP_MALLOC 1 + +#endif /* CFG_HEAP_H */ + + diff --git a/bertos/cfg/cfg_kern.h b/bertos/cfg/cfg_kern.h index 807817a2..dd950b82 100644 --- a/bertos/cfg/cfg_kern.h +++ b/bertos/cfg/cfg_kern.h @@ -54,12 +54,12 @@ * \{ */ /* Module/option Active Dependencies */ -#define CONFIG_KERN_SCHED (1) -#define CONFIG_KERN_SIGNALS (1 && CONFIG_KERN_SCHED) -#define CONFIG_KERN_TIMER (1) +#define CONFIG_KERN_SCHED (0) +#define CONFIG_KERN_SIGNALS (0 && CONFIG_KERN_SCHED) +#define CONFIG_KERN_TIMER (0) #define CONFIG_KERN_HEAP (0) #define CONFIG_KERN_SEMAPHORES (0 && CONFIG_KERN_SIGNALS) -#define CONFIG_KERN_MONITOR (1 && CONFIG_KERN_SCHED) +#define CONFIG_KERN_MONITOR (0 && CONFIG_KERN_SCHED) /*\}*/ /* EXPERIMENTAL */ diff --git a/bertos/cfg/cfg_kfile.h b/bertos/cfg/cfg_kfile.h new file mode 100644 index 00000000..347846dc --- /dev/null +++ b/bertos/cfg/cfg_kfile.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Configuration file for KFile interface module. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_KFILE_H +#define CFG_KFILE_H + +/// TODO: +#define CONFIG_KFILE_GETS 0 + +#endif /* CFG_KFILE_H */ + + diff --git a/bertos/cfg/cfg_parser.h b/bertos/cfg/cfg_parser.h new file mode 100644 index 00000000..c28dcc3e --- /dev/null +++ b/bertos/cfg/cfg_parser.h @@ -0,0 +1,49 @@ +/** + * \file + * + * + * \brief Configuration file for parser module. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_PARSER_H +#define CFG_PARSER_H + +/// TODO +#define CONFIG_INTERNAL_COMMANDS 0 + +#endif /* CFG_PARSER_H */ + + + diff --git a/bertos/cfg/cfg_ser.h b/bertos/cfg/cfg_ser.h index 5d5f0ffc..75f72afa 100644 --- a/bertos/cfg/cfg_ser.h +++ b/bertos/cfg/cfg_ser.h @@ -53,6 +53,13 @@ /// [bytes] Size of the inbound FIFO buffer for port 1. #define CONFIG_UART1_RXBUFSIZE 32 + +/// [bytes] Size of the outbound FIFO buffer for SPI port (AVR only) +#define CONFIG_SPI_TXBUFSIZE 32 + +/// [bytes] Size of the inbound FIFO buffer for SPI port (AVR only) +#define CONFIG_SPI_RXBUFSIZE 32 + /// [bytes] Size of the outbound FIFO buffer for SPI port 0. #define CONFIG_SPI0_TXBUFSIZE 32 diff --git a/bertos/cfg/cfg_spi_bitbang.h b/bertos/cfg/cfg_spi_bitbang.h new file mode 100644 index 00000000..f292346b --- /dev/null +++ b/bertos/cfg/cfg_spi_bitbang.h @@ -0,0 +1,47 @@ +/** + * \file + * + * + * \brief Configuration file for SPI bitbang module. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_SPI_BITBANG_H +#define CFG_SPI_BITBANG_H + +/// Set data order for emulated SPI +#define CONFIG_SPI_DATAORDER 1 + +#endif /* CFG_SPI_BITBANG_H */ + diff --git a/bertos/cfg/cfg_stepper.h b/bertos/cfg/cfg_stepper.h index fbe7a3e8..b884bfc3 100644 --- a/bertos/cfg/cfg_stepper.h +++ b/bertos/cfg/cfg_stepper.h @@ -40,8 +40,11 @@ #ifndef CFG_STEPPER_H #define CFG_STEPPER_H -/// Number of usable stepper motor. +/// Max number of the stepper motor. #define CONFIG_NUM_STEPPER_MOTORS 1 +/// Max number of the timer usable on target to drive stepper motor. +#define CONFIG_TC_STEPPER_MAX_NUM 6 + #endif /* CFG_STEPPER_H */ diff --git a/bertos/cfg/cfg_twi.h b/bertos/cfg/cfg_twi.h new file mode 100644 index 00000000..9bb012cd --- /dev/null +++ b/bertos/cfg/cfg_twi.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Configuration file for TWI module. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_TWI_H +#define CFG_TWI_H + +/// Comunication frequency +#define CONFIG_TWI_FREQ 1000000 + +#endif /* CFG_TWI_H */ + +