From: asterix Date: Fri, 6 Feb 2009 10:16:39 +0000 (+0000) Subject: Fix comments and add the wizard info. X-Git-Tag: 2.1.0~394 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=663cf4d83abe9ca57222f24761b7ebcd63ecbf29;p=bertos.git Fix comments and add the wizard info. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2288 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cfg/cfg_spi_bitbang.h b/bertos/cfg/cfg_spi_bitbang.h index f292346b..eab167ea 100644 --- a/bertos/cfg/cfg_spi_bitbang.h +++ b/bertos/cfg/cfg_spi_bitbang.h @@ -40,8 +40,15 @@ #ifndef CFG_SPI_BITBANG_H #define CFG_SPI_BITBANG_H -/// Set data order for emulated SPI -#define CONFIG_SPI_DATAORDER 1 +/** + * Set data order for emulated SPI. + * + * $WIZARD = { + * "type" : "enum", + * "value_list" : "ordet_bit_list" + * } + */ +#define CONFIG_SPI_DATAORDER SPI_LSB_FIRST #endif /* CFG_SPI_BITBANG_H */ diff --git a/bertos/drv/spi_bitbang.h b/bertos/drv/spi_bitbang.h index 85816d87..07c7b6a2 100644 --- a/bertos/drv/spi_bitbang.h +++ b/bertos/drv/spi_bitbang.h @@ -37,6 +37,12 @@ * * \author Francesco Sacchi * \author Daniele Basile + * + * $WIZARD_MODULE = { + * "name" : "spi_bitbang", + * "depends" : [], + * "configuration" : "bertos/cfg/cfg_spi_bitbang.h" + * } */ @@ -49,11 +55,13 @@ /** * Define send and receive order bit. - * \{ + * + * $WIZARD_LIST = { + * "ordet_bit_list" : ["SPI_LSB_FIRST", "SPI_MSB_FIRST"] + * } */ #define SPI_LSB_FIRST 1 #define SPI_MSB_FIRST 2 -/* \} */ #if CONFIG_SPI_DATAORDER == SPI_LSB_FIRST #define SPI_DATAORDER_START 1