STM32 RTC Scheduler
RTC-based scheduler for ultra-low power applications
|
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. | |
This file contains the hardware-specific definitions and function prototypes.
STM32 RTC Scheduler
Definition in file hardware.h.
#define LED_LD2_Pin GPIO_PIN_13 |
Pin of LED LD2
Definition at line 28 of file hardware.h.
#define LED_LD2_Port GPIOB |
Port of LED LD2
Definition at line 27 of file hardware.h.
#define LED_LD3_Pin GPIO_PIN_5 |
Pin of LED LD3
Definition at line 32 of file hardware.h.
#define LED_LD3_Port GPIOA |
Port of LED LD3
Definition at line 31 of file hardware.h.
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.