Handle the configuration of the TMP_RDY pin

This commit is contained in:
George Oikonomou 2015-05-01 15:44:18 +01:00
parent cee6c190c5
commit 883c30b4ac
1 changed files with 4 additions and 0 deletions

View File

@ -267,6 +267,10 @@ configure(int type, int enable)
{
switch(type) {
case SENSORS_HW_INIT:
ti_lib_ioc_pin_type_gpio_input(BOARD_IOID_TMP_RDY);
ti_lib_ioc_io_port_pull_set(BOARD_IOID_TMP_RDY, IOC_IOPULL_UP);
ti_lib_ioc_io_hyst_set(BOARD_IOID_TMP_RDY, IOC_HYST_ENABLE);
enable_sensor(false);
enabled = SENSOR_STATUS_INITIALISED;
break;