CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches
Led.h
Go to the documentation of this file.
1
2#include <stdint.h>
3#include "stdbool.h"
4
5
6/// \file
7
8
9//LED definitions
10#define LED_RED 1 /*!< ... */
11#define LED_GREEN 0 /*!< ... */
12#define accendi 1 /*!< ... */
13#define spegni 0 /*!< ... */
14#define LED_corto 100
15#define LED_lungo 1000
16
17extern volatile uint16_t LED_rosso_tempo;
18extern volatile uint16_t LED_rosso_fondo_scala;
19extern volatile uint8_t LED_rosso_attivo ;
20extern volatile uint8_t LED_verde_attivo ;
21extern volatile uint16_t LED_verde_tempo ;
22extern volatile uint16_t LED_verde_fondo_scala ;
23extern volatile uint8_t prolungamento;
24extern volatile uint8_t acceso;
25extern volatile bool LED_remote_control;
26extern volatile uint8_t LED_remote_control_setting;
27
28 void LED_RED_lampeggio(void);
29 void LED_VERDE_lampeggio(void);
30 void LED_accendi_spegni(uint8_t LED, uint8_t accendi_1_spegni_0);
32 void LED_remote_ON_OFF (void);
33
void LED_remote_ON_OFF(void)
LEDs can be set ON/OFF from remote.
Definition: Led.c:161
void LED_accendi_spegni(uint8_t LED, uint8_t accendi_1_spegni_0)
This function turns ON or OFF any of the selcted LED.
Definition: Led.c:123
volatile uint8_t LED_rosso_attivo
Definition: Led.c:57
void LED_VERDE_lampeggio(void)
This function toggles the green LED and it is launched by SysTick_Handler() every time LED_verde_temp...
Definition: Led.c:100
volatile uint16_t LED_verde_fondo_scala
Definition: Led.c:63
void instr_LED_ON_OFF_function(void)
LEDs can be set ON/OFF.
Definition: Led.c:144
volatile uint16_t LED_rosso_fondo_scala
Definition: Led.c:56
volatile uint8_t LED_verde_attivo
Definition: Led.c:61
void LED_RED_lampeggio(void)
This function toggles the Red LED and it is launched by SysTick_Handler() every time LED_rosso_tempo ...
Definition: Led.c:77