Programmable Clock with RTOS 0.0.1
Implementaiton of a programmable clock using RTOS with STM32GO microcontroller.
Loading...
Searching...
No Matches
app_display.h File Reference

Interfaces for display process. More...

Go to the source code of this file.

Macros

#define DISPLAY_STATES   5U
 
#define CERO   0u
 
#define ONE   1u
 
#define TEN   10u
 
#define TWELVE   12u
 
#define ONE_HUNDRED   100U
 
#define ONE_THOUSAND   1000U
 
#define FIRST_CHARACTER_MONTH   0u
 
#define SECOND_CHARACTER_MONTH   1u
 
#define THIRD_CHARACTER_MONTH   2u
 
#define TENS_DIGIT_DAY   4u
 
#define ONES_DIGIT_DAY   5u
 
#define THOUSANDS_DIGIT_YEAR   7u
 
#define HUNDREDS_DIGIT_YEAR   8u
 
#define TENS_DIGIT_YEAR   9u
 
#define ONES_DIGIT_YEAR   10u
 
#define FIRST_CHARACTER_WEEK   12u
 
#define SECOND_CHARACTER_WEEK   13u
 
#define SECONDS_ONES   7u
 
#define SECONDS_TENS   6u
 
#define MINUTES_ONES   4u
 
#define MINUTES_TENS   3u
 
#define HOURS_ONES   1u
 
#define HOURS_TENS   0u
 
#define TIMER_BUZZER_ID   (void *)(uint32_t)1
 
#define ACTIVE   1u
 
#define INACTIVE   0u
 
#define TICKS   0u
 
#define STATIC   static
 

Functions

void Display_Init (void)
 Initializate the LCD.
 
void Display_Task (void)
 Display task function.
 

Detailed Description

Interfaces for display process.

Macro Definition Documentation

◆ ACTIVE

#define ACTIVE   1u

Buzzer state

◆ DISPLAY_STATES

#define DISPLAY_STATES   5U

Total states in event machine

◆ INACTIVE

#define INACTIVE   0u

Buzzer state

◆ TICKS

#define TICKS   0u

The maximum amount of time

◆ TIMER_BUZZER_ID

#define TIMER_BUZZER_ID   (void *)(uint32_t)1

ID for timer used to update display

Function Documentation

◆ Display_Init()

void Display_Init ( void )

Initializate the LCD.

This function gives the format of spi and initializate the lcd

< Brief description

< ID for timer used to update display

< The maximum amount of time

< ID for timer used to update display

< The maximum amount of time

◆ Display_Task()

void Display_Task ( void )

Display task function.

This function checks the queue of pending tasks every 100ms and process them calling the display machine