STM32 RTC Scheduler
RTC-based scheduler for ultra-low power applications
hardware.h File Reference

This file contains the hardware-specific definitions and function prototypes. More...

#include "stm32l4xx_hal.h"

Go to the source code of this file.

Macros

#define LED_LD2_Port   GPIOB
 
#define LED_LD2_Pin   GPIO_PIN_13
 
#define LED_LD3_Port   GPIOA
 
#define LED_LD3_Pin   GPIO_PIN_5
 

Functions

void SystemClockConfig (void)
 This function configures the system and peripheral clocks. More...
 
void GpioInit (void)
 This function initializes the GPIOs of the LEDs.
 
void GpioDeinit (void)
 This function deinitializes the GPIOs and sets them to analog mode.
 
void LedLd2On (void)
 Turn on the LD2 LED.
 
void LedLd2Off (void)
 Turn off the LD2 LED.
 
void LedLd2Toggle (void)
 Toggle the status of the LD2 LED.
 
void LedLd3On (void)
 Turn on the LD3 LED.
 
void LedLd3Off (void)
 Turn off the LD3 LED.
 
void LedLd3Toggle (void)
 Toggle the status of the LD3 LED.
 

Detailed Description

This file contains the hardware-specific definitions and function prototypes.

STM32 RTC Scheduler

Author
Akos Pasztor
See also
Please refer to README for detailed information.

Definition in file hardware.h.

Macro Definition Documentation

◆ LED_LD2_Pin

#define LED_LD2_Pin   GPIO_PIN_13

Pin of LED LD2

Definition at line 28 of file hardware.h.

◆ LED_LD2_Port

#define LED_LD2_Port   GPIOB

Port of LED LD2

Definition at line 27 of file hardware.h.

◆ LED_LD3_Pin

#define LED_LD3_Pin   GPIO_PIN_5

Pin of LED LD3

Definition at line 32 of file hardware.h.

◆ LED_LD3_Port

#define LED_LD3_Port   GPIOA

Port of LED LD3

Definition at line 31 of file hardware.h.

Function Documentation

◆ SystemClockConfig()

void SystemClockConfig ( void  )

This function configures the system and peripheral clocks.

The function switches the clock source to HSI16, enables and configures the PLL, configures the peripheral clock sources, enables the RTC clock and sets its source to LSI and sets the core clock to 80 MHz.

Definition at line 25 of file hardware.c.