SNAKE_STM32F3
Loading...
Searching...
No Matches
main.c File Reference

: Main program body More...

#include "main.h"
#include "game.h"
#include "joystick.h"
#include "ws2812b.h"
Include dependency graph for main.c:

Functions

void SystemClock_Config (void)
 System Clock Configuration.
int main (void)
 The application entry point.
void HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *htim)
void HAL_GPIO_EXTI_Callback (uint16_t GPIO_Pin)
void Error_Handler (void)
 This function is executed in case of error occurrence.

Variables

ADC_HandleTypeDef hadc1
SPI_HandleTypeDef hspi1
TIM_HandleTypeDef htim2

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_GPIO_EXTI_Callback()

void HAL_GPIO_EXTI_Callback ( uint16_t GPIO_Pin)
Here is the call graph for this function:

◆ HAL_TIM_PeriodElapsedCallback()

void HAL_TIM_PeriodElapsedCallback ( TIM_HandleTypeDef * htim)
Here is the call graph for this function:

◆ main()

int main ( void )

The application entry point.

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

◆ SystemClock_Config()

void SystemClock_Config ( void )

System Clock Configuration.

Return values
None

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

◆ hadc1

ADC_HandleTypeDef hadc1

◆ hspi1

SPI_HandleTypeDef hspi1

◆ htim2

TIM_HandleTypeDef htim2