firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
main.c File Reference
#include "main.h"
#include "rtos.h"
Include dependency graph for main.c:

Functions

void SystemClock_Config (void)
 System Clock Configuration.
void PeriphCommonClock_Config (void)
 Peripherals Common Clock Configuration.
static void MPU_Config (void)
static void MX_GPIO_Init (void)
 GPIO Initialization Function.
static void MX_DMA_Init (void)
static void MX_FDCAN2_Init (void)
 FDCAN2 Initialization Function.
static void MX_FDCAN1_Init (void)
 FDCAN1 Initialization Function.
static void MX_FDCAN3_Init (void)
 FDCAN3 Initialization Function.
static void MX_TIM2_Init (void)
 TIM2 Initialization Function.
static void MX_SPI4_Init (void)
 SPI4 Initialization Function.
static void MX_CRC_Init (void)
 CRC Initialization Function.
static void MX_ADC2_Init (void)
 ADC2 Initialization Function.
static void MX_ADC1_Init (void)
 ADC1 Initialization Function.
static void MX_UART4_Init (void)
 UART4 Initialization Function.
int main (void)
 The application entry point.
int __io_putchar (int ch)
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
ADC_HandleTypeDef hadc2
DMA_HandleTypeDef hdma_adc1
DMA_HandleTypeDef hdma_adc2
CRC_HandleTypeDef hcrc
FDCAN_HandleTypeDef hfdcan1
FDCAN_HandleTypeDef hfdcan2
FDCAN_HandleTypeDef hfdcan3
SPI_HandleTypeDef hspi4
DMA_HandleTypeDef hdma_spi4_rx
DMA_HandleTypeDef hdma_spi4_tx
TIM_HandleTypeDef htim2
UART_HandleTypeDef huart4
DMA_HandleTypeDef hdma_uart4_rx
DMA_HandleTypeDef hdma_uart4_tx

Function Documentation

◆ __io_putchar()

int __io_putchar ( int ch)
Here is the caller graph for this function:

◆ 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 TIM5 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
Here is the caller graph for this function:

◆ main()

int main ( void )

The application entry point.

Return values
int
Here is the call graph for this function:

◆ MPU_Config()

void MPU_Config ( void )
static

Initializes and configures the Region and the memory to be protected

Initializes and configures the Region and the memory to be protected

Initializes and configures the Region and the memory to be protected

Initializes and configures the Region and the memory to be protected

Here is the caller graph for this function:

◆ MX_ADC1_Init()

void MX_ADC1_Init ( void )
static

ADC1 Initialization Function.

Parameters
None
Return values
None

Common config

Configure the ADC multi-mode

Configure Regular Channel

Configure Regular Channel

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MX_ADC2_Init()

void MX_ADC2_Init ( void )
static

ADC2 Initialization Function.

Parameters
None
Return values
None

Common config

Configure Regular Channel

Configure Regular Channel

Configure Regular Channel

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MX_CRC_Init()

void MX_CRC_Init ( void )
static

CRC Initialization Function.

Parameters
None
Return values
None
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MX_DMA_Init()

void MX_DMA_Init ( void )
static

Enable DMA controller clock

Here is the caller graph for this function:

◆ MX_FDCAN1_Init()

void MX_FDCAN1_Init ( void )
static

FDCAN1 Initialization Function.

Parameters
None
Return values
None
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MX_FDCAN2_Init()

void MX_FDCAN2_Init ( void )
static

FDCAN2 Initialization Function.

Parameters
None
Return values
None
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MX_FDCAN3_Init()

void MX_FDCAN3_Init ( void )
static

FDCAN3 Initialization Function.

Parameters
None
Return values
None
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MX_GPIO_Init()

void MX_GPIO_Init ( void )
static

GPIO Initialization Function.

Parameters
None
Return values
None

◆ MX_SPI4_Init()

void MX_SPI4_Init ( void )
static

SPI4 Initialization Function.

Parameters
None
Return values
None
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MX_TIM2_Init()

void MX_TIM2_Init ( void )
static

TIM2 Initialization Function.

Parameters
None
Return values
None
Here is the call graph for this function:

◆ MX_UART4_Init()

void MX_UART4_Init ( void )
static

UART4 Initialization Function.

Parameters
None
Return values
None
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PeriphCommonClock_Config()

void PeriphCommonClock_Config ( void )

Peripherals Common Clock Configuration.

Return values
None

Initializes the peripherals clock

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SystemClock_Config()

void SystemClock_Config ( void )

System Clock Configuration.

Return values
None

Supply configuration update enable

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

Here is the call graph for this function:

Variable Documentation

◆ hadc2

ADC_HandleTypeDef hadc2

◆ hcrc

CRC_HandleTypeDef hcrc

◆ hdma_adc1

DMA_HandleTypeDef hdma_adc1

◆ hdma_adc2

DMA_HandleTypeDef hdma_adc2

◆ hdma_spi4_rx

DMA_HandleTypeDef hdma_spi4_rx

◆ hdma_spi4_tx

DMA_HandleTypeDef hdma_spi4_tx

◆ hdma_uart4_rx

DMA_HandleTypeDef hdma_uart4_rx

◆ hdma_uart4_tx

DMA_HandleTypeDef hdma_uart4_tx

◆ hfdcan1

FDCAN_HandleTypeDef hfdcan1

◆ hfdcan2

FDCAN_HandleTypeDef hfdcan2

◆ hfdcan3

FDCAN_HandleTypeDef hfdcan3

◆ hspi4

SPI_HandleTypeDef hspi4

◆ htim2

TIM_HandleTypeDef htim2

◆ huart4

UART_HandleTypeDef huart4