From 4966a47a6cd2f0b02367484d407e16a4dd1672df Mon Sep 17 00:00:00 2001 From: cfif Date: Wed, 17 Dec 2025 16:17:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gpios.c | 6 ++++-- Gpios.h | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Gpios.c b/Gpios.c index ef163f2..d0fad49 100644 --- a/Gpios.c +++ b/Gpios.c @@ -8,8 +8,10 @@ tGpios GPIOS; void Gpios_Init() { - - tGpios *env = &GPIOS; + env->led.LED1 = vInitGpioPinPull(GPIO_A, PORT_PIN_8, GPIO_OUT, GPIO_PIN_NOREVERSE, GPIO_LOW, false, PORT_PULL_DOWN); + env->led.LED2 = vInitGpioPinPull(GPIO_A, PORT_PIN_11, GPIO_OUT, GPIO_PIN_NOREVERSE, GPIO_LOW, false, PORT_PULL_DOWN); + env->led.LED3 = vInitGpioPinPull(GPIO_A, PORT_PIN_15, GPIO_OUT, GPIO_PIN_NOREVERSE, GPIO_LOW, false, PORT_PULL_DOWN); + } \ No newline at end of file diff --git a/Gpios.h b/Gpios.h index 4a8d2c0..4d14eb3 100644 --- a/Gpios.h +++ b/Gpios.h @@ -9,7 +9,13 @@ //#include "PowerManagement.h" typedef struct { + tGpioPin LED1; + tGpioPin LED2; + tGpioPin LED3; +} tLed; +typedef struct { + tLed led; } tGpios; extern tGpios GPIOS;