armOS  0.1.0
Minimal ARM Operating System for the Raspberry Pi - Documentation generated for Pi 4.
led.c File Reference

Implementation of functions for manipulating a LED to a GPIO pin. More...

#include <stdint.h>
#include <stddef.h>
#include <kernel/mmio.h>
#include <kernel/gpio.h>
#include <kernel/printk.h>
#include <kernel/timer.h>
#include <peripherals/gpio.h>
Include dependency graph for led.c:

Functions

int led_init (uint8_t pin_num)
 
void led_on (uint8_t pin_num)
 
void led_off (uint8_t pin_num)
 
void led_on_ms (uint8_t pin_num, uint32_t msec)
 
void led_pulse (uint8_t pin_num, uint32_t msec)
 
void led_blink_times (uint8_t pin_num, size_t count, uint32_t msec)
 
void led_blink_sos (uint8_t pin_num, uint32_t msec)
 

Detailed Description

Implementation of functions for manipulating a LED to a GPIO pin.