STM32 RTC Scheduler
RTC-based scheduler for ultra-low power applications
hardware.h
Go to the documentation of this file.
1
15
#ifndef HARDWARE_H
16
#define HARDWARE_H
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
/* Includes ------------------------------------------------------------------*/
23
#include "stm32l4xx_hal.h"
24
25
/* Defines -------------------------------------------------------------------*/
26
/* LED: LD2 */
27
#define LED_LD2_Port GPIOB
28
#define LED_LD2_Pin GPIO_PIN_13
30
/* LED: LD3 */
31
#define LED_LD3_Port GPIOA
32
#define LED_LD3_Pin GPIO_PIN_5
34
/* Functions -----------------------------------------------------------------*/
35
void
SystemClockConfig
(
void
);
36
void
GpioInit
(
void
);
37
void
GpioDeinit
(
void
);
38
39
void
LedLd2On
(
void
);
40
void
LedLd2Off
(
void
);
41
void
LedLd2Toggle
(
void
);
42
void
LedLd3On
(
void
);
43
void
LedLd3Off
(
void
);
44
void
LedLd3Toggle
(
void
);
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* HARDWARE_H */
LedLd2Toggle
void LedLd2Toggle(void)
Toggle the status of the LD2 LED.
Definition:
hardware.c:146
LedLd3Toggle
void LedLd3Toggle(void)
Toggle the status of the LD3 LED.
Definition:
hardware.c:170
GpioInit
void GpioInit(void)
This function initializes the GPIOs of the LEDs.
Definition:
hardware.c:79
LedLd2Off
void LedLd2Off(void)
Turn off the LD2 LED.
Definition:
hardware.c:138
LedLd3Off
void LedLd3Off(void)
Turn off the LD3 LED.
Definition:
hardware.c:162
GpioDeinit
void GpioDeinit(void)
This function deinitializes the GPIOs and sets them to analog mode.
Definition:
hardware.c:103
SystemClockConfig
void SystemClockConfig(void)
This function configures the system and peripheral clocks.
Definition:
hardware.c:25
LedLd2On
void LedLd2On(void)
Turn on the LD2 LED.
Definition:
hardware.c:130
LedLd3On
void LedLd3On(void)
Turn on the LD3 LED.
Definition:
hardware.c:154
include
hardware.h
Generated by
1.8.17