cursada_mc2
Base de control de temperatura para EDU-CIAA-NXP
Loading...
Searching...
No Matches
led_driver.h File Reference

Interfaz del driver de LEDs discretos. More...

#include "chip.h"
+ Include dependency graph for led_driver.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LED0R   1
 LED rojo del LED RGB de placa.
 
#define LED0G   2
 LED verde del LED RGB de placa.
 
#define LED0B   3
 LED azul del LED RGB de placa.
 
#define LED1   4
 LED discreto 1.
 
#define LED2   5
 LED discreto 2.
 
#define LED3   6
 LED discreto 3.
 

Functions

void led_init (void)
 Inicializa los pines asociados a los LEDs.
 
void led_turn_on (uint8_t led_id)
 Enciende un LED.
 
void led_turn_off (uint8_t led_id)
 Apaga un LED.
 
void led_toggle (uint8_t led_id)
 Invierte el estado actual de un LED.
 

Macro Definition Documentation

◆ LED0B

#define LED0B   3

Definition at line 16 of file led_driver.h.

◆ LED0G

#define LED0G   2

Definition at line 14 of file led_driver.h.

◆ LED0R

#define LED0R   1

Definition at line 12 of file led_driver.h.

◆ LED1

#define LED1   4

Definition at line 18 of file led_driver.h.

◆ LED2

#define LED2   5

Definition at line 20 of file led_driver.h.

◆ LED3

#define LED3   6

Definition at line 22 of file led_driver.h.

Function Documentation

◆ led_init()

void led_init ( void  )

Definition at line 14 of file led_driver.c.

Referenced by app_init().

◆ led_toggle()

void led_toggle ( uint8_t  led_id)
Parameters
led_idIdentificador del LED a conmutar.

Definition at line 84 of file led_driver.c.

References LED0B, LED0G, LED0R, LED1, LED2, and LED3.

◆ led_turn_off()

void led_turn_off ( uint8_t  led_id)
Parameters
led_idIdentificador del LED a apagar.

Definition at line 58 of file led_driver.c.

References LED0B, LED0G, LED0R, LED1, LED2, and LED3.

Referenced by app_salida_control_escribir().

◆ led_turn_on()

void led_turn_on ( uint8_t  led_id)
Parameters
led_idIdentificador del LED a encender.

Definition at line 32 of file led_driver.c.

References LED0B, LED0G, LED0R, LED1, LED2, and LED3.

Referenced by app_salida_control_escribir().