Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
: Main program body More...
Go to the source code of this file.
Functions | |
void | SystemClock_Config (void) |
System Clock Configuration. More... | |
static void | MX_GPIO_Init (void) |
GPIO Initialization Function. More... | |
static void | MX_DMA_Init (void) |
static void | MX_TIM1_Init (void) |
TIM1 Initialization Function. More... | |
static void | MX_ADC1_Init (void) |
ADC1 Initialization Function. More... | |
static void | MX_ADC2_Init (void) |
ADC2 Initialization Function. More... | |
static void | MX_ADC3_Init (void) |
ADC3 Initialization Function. More... | |
static void | MX_CAN1_Init (void) |
CAN1 Initialization Function. More... | |
static void | MX_CAN2_Init (void) |
CAN2 Initialization Function. More... | |
static void | MX_USART3_UART_Init (void) |
USART3 Initialization Function. More... | |
static void | MX_I2C1_Init (void) |
I2C1 Initialization Function. More... | |
static void | MX_I2C2_Init (void) |
I2C2 Initialization Function. More... | |
static void | MX_I2C4_Init (void) |
I2C4 Initialization Function. More... | |
static void | MX_SPI3_Init (void) |
SPI3 Initialization Function. More... | |
static void | MX_SPI4_Init (void) |
SPI4 Initialization Function. More... | |
static void | MX_SPI5_Init (void) |
SPI5 Initialization Function. More... | |
int | main (void) |
The application entry point. More... | |
int | _write (int file, char *data, int len) |
void | Error_Handler (void) |
This function is executed in case of error occurrence. More... | |
Variables | |
ADC_HandleTypeDef | hadc1 |
ADC_HandleTypeDef | hadc2 |
ADC_HandleTypeDef | hadc3 |
DMA_HandleTypeDef | hdma_adc1 |
DMA_HandleTypeDef | hdma_adc2 |
DMA_HandleTypeDef | hdma_adc3 |
CAN_HandleTypeDef | hcan1 |
CAN_HandleTypeDef | hcan2 |
I2C_HandleTypeDef | hi2c1 |
I2C_HandleTypeDef | hi2c2 |
I2C_HandleTypeDef | hi2c4 |
SPI_HandleTypeDef | hspi3 |
SPI_HandleTypeDef | hspi4 |
SPI_HandleTypeDef | hspi5 |
TIM_HandleTypeDef | htim1 |
UART_HandleTypeDef | huart3 |
: Main program body
Copyright (c) 2024 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.
Definition in file main.c.
int _write | ( | int | file, |
char * | data, | ||
int | len | ||
) |
void Error_Handler | ( | void | ) |
This function is executed in case of error occurrence.
None |
Definition at line 1178 of file main.c.
int main | ( | void | ) |
The application entry point.
int |
Definition at line 99 of file main.c.
|
static |
ADC1 Initialization Function.
None |
None |
Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
Configure the ADC multi-mode
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Definition at line 259 of file main.c.
|
static |
ADC2 Initialization Function.
None |
None |
Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Definition at line 367 of file main.c.
|
static |
ADC3 Initialization Function.
None |
None |
Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
Definition at line 453 of file main.c.
|
static |
CAN1 Initialization Function.
None |
None |
Definition at line 530 of file main.c.
|
static |
CAN2 Initialization Function.
None |
None |
Definition at line 590 of file main.c.
|
static |
Enable DMA controller clock
Definition at line 994 of file main.c.
|
static |
GPIO Initialization Function.
None |
None |
Definition at line 1018 of file main.c.
|
static |
I2C1 Initialization Function.
None |
None |
Configure Analogue filter
Configure Digital filter
Definition at line 650 of file main.c.
|
static |
I2C2 Initialization Function.
None |
None |
Configure Analogue filter
Configure Digital filter
Definition at line 698 of file main.c.
|
static |
I2C4 Initialization Function.
None |
None |
Configure Analogue filter
Configure Digital filter
Definition at line 746 of file main.c.
|
static |
SPI3 Initialization Function.
None |
None |
Definition at line 794 of file main.c.
|
static |
SPI4 Initialization Function.
None |
None |
Definition at line 834 of file main.c.
|
static |
SPI5 Initialization Function.
None |
None |
Definition at line 874 of file main.c.
|
static |
TIM1 Initialization Function.
None |
None |
Definition at line 914 of file main.c.
|
static |
USART3 Initialization Function.
None |
None |
Definition at line 961 of file main.c.
void SystemClock_Config | ( | void | ) |
System Clock Configuration.
None |
Configure LSE Drive Capability
Configure the main internal regulator output voltage
Initializes the RCC Oscillators according to the specified parameters in the RCC_OscInitTypeDef structure.
Activate the Over-Drive mode
Initializes the CPU, AHB and APB buses clocks
Definition at line 201 of file main.c.