ICARUS OS (Intelligent Cooperative Architecture for Real-time Unified Systems) 0.1.0
Preemptive Real-Time Operating System for ARM Cortex-M7
Loading...
Searching...
No Matches
led.h File Reference
#include <stdint.h>

Go to the source code of this file.

Functions

void LED_On (void)
 Turn LED on.
 
void LED_Off (void)
 Turn LED off.
 
void LED_Toggle (void)
 Toggle LED state.
 
void LED_Blink (uint32_t on_ticks, uint32_t off_ticks)
 Blink LED with specified timing.
 

Function Documentation

◆ LED_Blink()

void LED_Blink ( uint32_t  Hdelay,
uint32_t  Ldelay 
)

Blink LED with specified timing.

Parameters
[in]on_ticksDuration LED is on (in OS ticks)
[in]off_ticksDuration LED is off (in OS ticks)
Note
Uses task_active_sleep() - must be called from task context

Blink LED with specified timing.

Turns LED on for specified duration, then off for specified duration. Uses task_active_sleep() for non-blocking delays.

Parameters
[in]HdelayLED on duration in OS ticks
[in]LdelayLED off duration in OS ticks
Precondition
GPIO must be initialized (MX_GPIO_Init called)
Must be called from task context (uses task_active_sleep)
Note
Total blink period = Hdelay + Ldelay ticks

Definition at line 93 of file retarget_hal.c.

References E3_GPIO_Port, E3_Pin, and task_active_sleep().

Referenced by main(), and os_heartbeat_task().

◆ LED_Off()

void LED_Off ( void  )

Turn LED off.

Sets PE3 GPIO pin low to turn off the onboard LED.

Precondition
GPIO must be initialized

Definition at line 118 of file retarget_hal.c.

References E3_GPIO_Port, and E3_Pin.

Referenced by os_heartbeat_task().

◆ LED_On()

void LED_On ( void  )

Turn LED on.

Turn LED on.

Sets PE3 GPIO pin high to illuminate the onboard LED.

Precondition
GPIO must be initialized

Definition at line 107 of file retarget_hal.c.

References E3_GPIO_Port, and E3_Pin.

Referenced by os_heartbeat_task().

◆ LED_Toggle()

void LED_Toggle ( void  )

Toggle LED state.