Digilog Console Firmware
Loading...
Searching...
No Matches
main.c File Reference

: Main program body More...

#include "main.h"
#include "cmsis_os.h"
#include <stdio.h>
#include "cmsis_os2.h"
#include "led_driver.h"

Functions

void SystemClock_Config (void)
 System Clock Configuration.
 
void StartDefaultTask (void *argument)
 Function implementing the defaultTask thread.
 
int main (void)
 The application entry point.
 
void HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *htim)
 Period elapsed callback in non blocking mode.
 
void Error_Handler (void)
 This function is executed in case of error occurrence.
 

Variables

ADC_HandleTypeDef hadc1
 
I2C_HandleTypeDef hi2c1
 
I2C_HandleTypeDef hi2c2
 
I2C_HandleTypeDef hi2c3
 
I2C_HandleTypeDef hi2c4
 
SPI_HandleTypeDef hspi1
 
SPI_HandleTypeDef hspi2
 
SPI_HandleTypeDef hspi3
 
TIM_HandleTypeDef htim1
 
TIM_HandleTypeDef htim2
 
TIM_HandleTypeDef htim3
 
osThreadId_t defaultTaskHandle
 
const osThreadAttr_t defaultTask_attributes
 

Detailed Description

: Main program body

Attention

Copyright (c) 2026 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Function Documentation

◆ Error_Handler()

void Error_Handler ( void  )

This function is executed in case of error occurrence.

Return values
None

◆ HAL_TIM_PeriodElapsedCallback()

void HAL_TIM_PeriodElapsedCallback ( TIM_HandleTypeDef *  htim)

Period elapsed callback in non blocking mode.

Note
This function is called when TIM7 interrupt took place, inside HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment a global variable "uwTick" used as application time base.
Parameters
htim: TIM handle
Return values
None

◆ main()

int main ( void  )

The application entry point.

Return values
int

◆ StartDefaultTask()

void StartDefaultTask ( void *  argument)

Function implementing the defaultTask thread.

Parameters
argumentNot used
Return values
None

◆ SystemClock_Config()

void SystemClock_Config ( void  )

System Clock Configuration.

Return values
None

Configure the main internal regulator output voltage

Initializes the RCC Oscillators according to the specified parameters in the RCC_OscInitTypeDef structure.

Initializes the CPU, AHB and APB buses clocks

Variable Documentation

◆ defaultTask_attributes

const osThreadAttr_t defaultTask_attributes
Initial value:
= {
.name = "defaultTask",
.priority = (osPriority_t) osPriorityNormal,
.stack_size = 128 * 4
}