#ifndef CFG_I2C_H
#define CFG_I2C_H
-/// Comunication frequency
+/// Comunication frequency. $WIZARD = { "type" : "int" }
#define CONFIG_I2C_FREQ 100000UL
/**
* I2C start timeout: for how many milliseconds
* the twi_start should try to get an ACK before
* returning error.
+ *
+ * $WIZARD = { "type" : "int" }
*/
#define CONFIG_I2C_START_TIMEOUT 100
* I2C_BACKEND_BUILTIN: Use (if present) the builtin i2c hardware.
* I2C_BACKEND_BITBANG: Use the emulated bitbang driver.
* \see drv/i2c.h for more information.
+ *
+ * $WIZARD = {
+ * "type" : "enum",
+ * "value_list" : "i2c_backend"
+ * }
*/
#define CONFIG_I2C_BACKEND I2C_BACKEND_BUILTIN
-/// Module logging level definition.
+/**
+ * Module logging level.
+ *
+ * $WIZARD = { "type" : "enum", "value_list" : "log_level" }
+ */
#define I2C_LOG_LEVEL LOG_LVL_INFO
-/// Module logging format.
+/**
+ * module logging format.
+ *
+ * $WIZARD = { "type" : "enum", "value_list" : "log_format" }
+ */
#define I2C_LOG_FORMAT LOG_FMT_TERSE
#endif /* CFG_I2C_H */
*
* \version $Id$
* \author Francesco Sacchi <batt@develer.com>
+ *
+ * $WIZARD_MODULE = {
+ * "name" : "i2c",
+ * "depends" : [],
+ * "configuration" : "bertos/cfg/cfg_i2c.h"
+ * }
*/
#ifndef DRV_I2C_H
#define DRV_I2C_H
* i2c driver or you don't want, for some reason, to
* use that.
* With this you can choose, at compile time, which backend to use.
- * \{
+ *
+ * $WIZARD_LIST = {
+ * "i2c_backend" : ["I2C_BACKEND_BUILTIN", "I2C_BACKEND_BITBANG"]
+ * }
*/
#define I2C_BACKEND_BUILTIN 0 ///< Uses cpu builtin i2c driver
#define I2C_BACKEND_BITBANG 1 ///< Uses emulated bitbang driver
-/*\}*/
/**