diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-06 11:50:56 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-06 11:50:56 -0600 |
commit | 3c5fae81f4923f684adaafc5b72d18ad09baba45 (patch) | |
tree | b77d83cc8300acd5856ff8effdf3a303d4655d76 /nuttx/configs/dk-tm4c129x/include/board.h | |
parent | 0e1697302a5692d2fa81af5c76d3277b3a19a656 (diff) | |
download | nuttx-3c5fae81f4923f684adaafc5b72d18ad09baba45.tar.gz nuttx-3c5fae81f4923f684adaafc5b72d18ad09baba45.tar.bz2 nuttx-3c5fae81f4923f684adaafc5b72d18ad09baba45.zip |
DK-TM4C129X: Add support for on-board TMP100 temperature sensor
Diffstat (limited to 'nuttx/configs/dk-tm4c129x/include/board.h')
-rw-r--r-- | nuttx/configs/dk-tm4c129x/include/board.h | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/nuttx/configs/dk-tm4c129x/include/board.h b/nuttx/configs/dk-tm4c129x/include/board.h index 7df3b08eb..aacdda3b2 100644 --- a/nuttx/configs/dk-tm4c129x/include/board.h +++ b/nuttx/configs/dk-tm4c129x/include/board.h @@ -108,14 +108,14 @@ * --- ------------ ----------------- */ -/* LED index values for use with tm4c_setled() */ +/* LED index values for use with tiva_setled() */ #define BOARD_LED_R 0 #define BOARD_LED_G 1 #define BOARD_LED_B 2 #define BOARD_NLEDS 3 -/* LED bits for use with tm4c_setleds() */ +/* LED bits for use with tiva_setleds() */ #define BOARD_LED_R_BIT (1 << BOARD_LED_R) #define BOARD_LED_G_BIT (1 << BOARD_LED_G) @@ -244,7 +244,7 @@ void tiva_boardinitialize(void); /************************************************************************************ - * Name: tm4c_ledinit, tm4c_setled, and tm4c_setleds + * Name: tiva_ledinit, tiva_setled, and tiva_setleds * * Description: * If CONFIG_ARCH_LEDS is defined, then NuttX will control the on-board LED. If @@ -254,9 +254,27 @@ void tiva_boardinitialize(void); ************************************************************************************/ #ifndef CONFIG_ARCH_LEDS -void tm4c_ledinit(void); -void tm4c_setled(int led, bool ledon); -void tm4c_setleds(uint8_t ledset); +void tiva_ledinit(void); +void tiva_setled(int led, bool ledon); +void tiva_setleds(uint8_t ledset); +#endif + +/************************************************************************************ + * Name: tiva_tmp100_initialize + * + * Description: + * Initialize and register the TMP-100 Temperature Sensor driver. + * + * Input parameters: + * devpath - The full path to the driver to register. E.g., "/dev/temp0" + * + * Returned Value: + * Zero (OK) on success; a negated errno value on failure. + * + ************************************************************************************/ + +#if defined(CONFIG_I2C) && defined(CONFIG_I2C_LM75) && defined(CONFIG_STM32_I2C1) +int tiva_tmp100_initialize(FAR const char *devpath); #endif #endif /* __ASSEMBLY__ */ |