armOS  0.1.0
Minimal ARM Operating System for the Raspberry Pi - Documentation generated for Pi 4.
led.h
Go to the documentation of this file.
1 
7 #ifndef LED_H
8 #define LED_H
9 
10 #include <stdint.h>
11 #include <stddef.h>
12 
13 #ifdef AARCH_32
14 
18 #define LED_PIN 47
19 #elif AARCH_64
20 
25 #define LED_PIN 17
26 #endif
27 
38 int led_init(uint8_t pin_num);
39 
46 void led_on(uint8_t pin_num);
47 
54 void led_off(uint8_t pin_num);
55 
63 void led_on_ms(uint8_t pin_num, uint32_t msec);
64 
72 void led_pulse(uint8_t pin_num, uint32_t msec);
73 
86 void led_blink_times(uint8_t pin_num, size_t count, uint32_t msec);
87 
96 void led_blink_sos(uint8_t pin_num, uint32_t msec);
97 
98 #endif
led_off
void led_off(uint8_t pin_num)
Definition: led.c:57
led_on
void led_on(uint8_t pin_num)
Definition: led.c:33
led_init
int led_init(uint8_t pin_num)
Definition: led.c:18
led_blink_times
void led_blink_times(uint8_t pin_num, size_t count, uint32_t msec)
Definition: led.c:109
led_on_ms
void led_on_ms(uint8_t pin_num, uint32_t msec)
Definition: led.c:81
led_blink_sos
void led_blink_sos(uint8_t pin_num, uint32_t msec)
Definition: led.c:117
led_pulse
void led_pulse(uint8_t pin_num, uint32_t msec)
Definition: led.c:93