From 7b2e6463e67076abc82028fe3fdb400492983b8d Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 25 Nov 2013 23:51:32 +0100 Subject: [PATCH] cleanup Olimex-STM32-LCD board file --- boards/base/Olimex-STM32-LCD/ginput_lld_mouse_board.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/boards/base/Olimex-STM32-LCD/ginput_lld_mouse_board.h b/boards/base/Olimex-STM32-LCD/ginput_lld_mouse_board.h index 8b0fc3b2..4fcffd25 100644 --- a/boards/base/Olimex-STM32-LCD/ginput_lld_mouse_board.h +++ b/boards/base/Olimex-STM32-LCD/ginput_lld_mouse_board.h @@ -81,11 +81,6 @@ static inline uint16_t read_x(void) { uint16_t val1, val2; adcsample_t samples[ADC_NUM_CHANNELS * ADC_BUF_DEPTH]; - palSetPadMode(GPIOC, 0, PAL_MODE_INPUT_ANALOG); - palSetPadMode(GPIOC, 1, PAL_MODE_INPUT_ANALOG); - palSetPadMode(GPIOC, 2, PAL_MODE_OUTPUT_PUSHPULL); - palSetPadMode(GPIOC, 3, PAL_MODE_OUTPUT_PUSHPULL); - palSetPad(GPIOC, 2); palClearPad(GPIOC, 3); gfxSleepMilliseconds(1); @@ -105,11 +100,6 @@ static inline uint16_t read_y(void) { uint16_t val1, val2; adcsample_t samples[ADC_NUM_CHANNELS * ADC_BUF_DEPTH]; - palSetPadMode(GPIOC, 2, PAL_MODE_INPUT_ANALOG); - palSetPadMode(GPIOC, 3, PAL_MODE_INPUT_ANALOG); - palSetPadMode(GPIOC, 0, PAL_MODE_OUTPUT_PUSHPULL); - palSetPadMode(GPIOC, 1, PAL_MODE_OUTPUT_PUSHPULL); - palSetPad(GPIOC, 1); palClearPad(GPIOC, 0); gfxSleepMilliseconds(1);