From 6fa2b14b2ad66dde6575c1214e8eab256c314bd2 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Mon, 21 Apr 2014 23:33:41 +0200 Subject: [PATCH] Fix pio definitions (restore green status led !) and status led numbering (not much importance, but do it anyway) --- drivers/status_led.c | 4 ++-- include/core/pio.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/status_led.c b/drivers/status_led.c index 1c75327..728991b 100644 --- a/drivers/status_led.c +++ b/drivers/status_led.c @@ -41,8 +41,8 @@ void status_led_config(void) { struct lpc_gpio* gpio1 = LPC_GPIO_1; uint32_t mode = (LPC_IO_MODE_PULL_UP | LPC_IO_DIGITAL | LPC_IO_DRIVE_HIGHCURENT); - struct pio red_led = LPC_GPIO_1_4; - struct pio green_led = LPC_GPIO_1_5; + struct pio red_led = LPC_GPIO_1_5; + struct pio green_led = LPC_GPIO_1_4; /* Status Led GPIO */ config_pio(&green_led, mode); config_pio(&red_led, mode); diff --git a/include/core/pio.h b/include/core/pio.h index 84b4f90..223189d 100644 --- a/include/core/pio.h +++ b/include/core/pio.h @@ -165,7 +165,7 @@ void config_pio(struct pio* pp, uint32_t mode); #define LPC_ADC_AD2_PIO_1_0 {1, 0, 2} #define LPC_ADC_AD3_PIO_1_1 {1, 1, 2} #define LPC_ADC_AD4_PIO_1_2 {1, 2, 2} -#define LPC_ADC_AD5_PIO_1_3 {1, 4, 1} +#define LPC_ADC_AD5_PIO_1_3 {1, 3, 1} #define LPC_ADC_AD6_PIO_1_4 {1, 4, 1} #define LPC_ADC_AD7_PIO_1_5 {1, 5, 1} -- 2.43.0