Skip to content
Snippets Groups Projects
Commit 93b78f53 authored by Bartlomiej Sieka's avatar Bartlomiej Sieka
Browse files

Motion-PRO: Add support for the temperature sensor.

parent c75e6396
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
CFG_CMD_JFFS2 | \ CFG_CMD_JFFS2 | \
CFG_CMD_I2C | \ CFG_CMD_I2C | \
CFG_CMD_DATE | \ CFG_CMD_DATE | \
CFG_CMD_EEPROM) CFG_CMD_EEPROM | \
CFG_CMD_DTT)
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
#include <cmd_confdefs.h> #include <cmd_confdefs.h>
...@@ -297,6 +298,7 @@ ...@@ -297,6 +298,7 @@
* EEPROM configuration * EEPROM configuration
*/ */
#define CFG_I2C_EEPROM_ADDR_LEN 1 #define CFG_I2C_EEPROM_ADDR_LEN 1
#define CFG_EEPROM_PAGE_WRITE_ENABLE 1 /* DTT driver needs this */
#define CFG_EEPROM_PAGE_WRITE_BITS 3 #define CFG_EEPROM_PAGE_WRITE_BITS 3
#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70 #define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
#define CFG_I2C_MULTI_EEPROMS 1 /* 2 EEPROMs (addr:50,52) */ #define CFG_I2C_MULTI_EEPROMS 1 /* 2 EEPROMs (addr:50,52) */
...@@ -331,6 +333,13 @@ extern void __led_set(led_id_t id, int state); ...@@ -331,6 +333,13 @@ extern void __led_set(led_id_t id, int state);
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
/*
* Temperature sensor
*/
#define CONFIG_DTT_LM75 1
#define CONFIG_DTT_SENSORS { 0x49 }
/* /*
* Environment settings * Environment settings
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment