diff options
Diffstat (limited to 'board/nocturne_fp/fpsensor_detect.c')
-rw-r--r-- | board/nocturne_fp/fpsensor_detect.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/board/nocturne_fp/fpsensor_detect.c b/board/nocturne_fp/fpsensor_detect.c index 638b5fbfe0..5a4b95e64c 100644 --- a/board/nocturne_fp/fpsensor_detect.c +++ b/board/nocturne_fp/fpsensor_detect.c @@ -4,26 +4,8 @@ */ #include "fpsensor_detect.h" -#include "gpio.h" -#include "timer.h" enum fp_transport_type get_fp_transport_type(void) { - enum fp_transport_type ret; - - gpio_set_level(GPIO_DIVIDER_HIGHSIDE, 1); - usleep(1); - switch (gpio_get_level(GPIO_TRANSPORT_SEL)) { - case 0: - ret = FP_TRANSPORT_TYPE_UART; - break; - case 1: - ret = FP_TRANSPORT_TYPE_SPI; - break; - default: - ret = FP_TRANSPORT_TYPE_UNKNOWN; - break; - } - gpio_set_level(GPIO_DIVIDER_HIGHSIDE, 0); - return ret; + return FP_TRANSPORT_TYPE_SPI; } |