From 43a891d5cdd896d1f03fa834115f9a3e481f8683 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 4 Apr 2017 21:17:10 +0000 Subject: i2c-master: f0: fix leds --- tests/i2c-master/main-stm32f072-disco.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/i2c-master/main-stm32f072-disco.c b/tests/i2c-master/main-stm32f072-disco.c index b156e3c..26b071a 100644 --- a/tests/i2c-master/main-stm32f072-disco.c +++ b/tests/i2c-master/main-stm32f072-disco.c @@ -87,8 +87,8 @@ int main(void) rcc_clock_setup_in_hsi48_out_48mhz(); /* green led for ticking */ rcc_periph_clock_enable(RCC_GPIOC); - gpio_mode_setup(LED_DISCO_GREEN_PORT, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, LED_DISCO_GREEN_PORT); - gpio_set(LED_DISCO_GREEN_PORT, LED_DISCO_GREEN_PORT); + gpio_mode_setup(LED_DISCO_GREEN_PORT, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, LED_DISCO_GREEN_PIN); + gpio_set(LED_DISCO_GREEN_PORT, LED_DISCO_GREEN_PIN); setup(); -- cgit