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

Msp initialization functions. More...

#include "bsp.h"
#include "hel_lcd.h"

Functions

void HAL_MspInit (void)
 Initialize MSP.
 
void HAL_RTC_MspInit (RTC_HandleTypeDef *hrtc)
 Initialize RTC (Real Time Clock)
 
void HAL_FDCAN_MspInit (FDCAN_HandleTypeDef *hfdcan)
 Initialize FDCAN.
 
void HAL_SPI_MspInit (SPI_HandleTypeDef *hspi)
 Initialize SPI.
 
void HEL_LCD_MspInit (LCD_HandleTypeDef *hlcd)
 Sub-initialization interface for the pins used by the LCD.
 
void HAL_TIM_PWM_MspInit (TIM_HandleTypeDef *htim)
 Initialize PWM.
 

Detailed Description

Msp initialization functions.

This file contains the initialization functions for MSP

Function Documentation

◆ HAL_FDCAN_MspInit()

void HAL_FDCAN_MspInit ( FDCAN_HandleTypeDef * hfdcan)

Initialize FDCAN.

This function initializes the FDCAN peripheral and associated GPIO pins for operation It configures the clock sources, GPIO pins, and interrupt priorities to enable FDCAN communication

Parameters
hfdcanpointer to FDCAN handle structure

◆ HAL_MspInit()

void HAL_MspInit ( void )

Initialize MSP.

This function initializes the MSP for the microcontroller. It sets up the essential system configuration and clock setting requiered for the microcontroller's operation. Additionally, it configures the MCU internal clock to run at 64MHz for the AHB bus and 32 MHz for the APB bus.

Configure the main internal regulator output voltage

Initializes the CPU, AHB and APB buses clocks

◆ HAL_RTC_MspInit()

void HAL_RTC_MspInit ( RTC_HandleTypeDef * hrtc)

Initialize RTC (Real Time Clock)

This function intializes the RTC for the microcontroller It configures and enables the necessary clocks and system resources for the RTC operation Additionally, it enable the LSE (Low Speed External) clock in low-power mode to feed the internal RTC

Parameters
hrtcpointer to RTC handle structure

◆ HAL_SPI_MspInit()

void HAL_SPI_MspInit ( SPI_HandleTypeDef * hspi)

Initialize SPI.

This function initializes the SPI peripheral and associated GPIO pins for operation It enables the SPI clock and the GPIO ports used for SPI communication

Parameters
hspipointer to SPI handle structure

◆ HAL_TIM_PWM_MspInit()

void HAL_TIM_PWM_MspInit ( TIM_HandleTypeDef * htim)

Initialize PWM.

This function initializes the TIM peripheral and associated GPIO pins for operation It enables the ports for using the pwm with the buzzer

Parameters
htimpointer to htmi handle structure

◆ HEL_LCD_MspInit()

void HEL_LCD_MspInit ( LCD_HandleTypeDef * hlcd)

Sub-initialization interface for the pins used by the LCD.

Parameters
[out]hlcdLCD Handler.