minipix_uart_interface
A library and examples for the MiniPIX UART interface
main.c File Reference

: Main program body More...

#include <main.h>
#include <minipix_interface_stm.h>
#include <gatherer_interface_stm.h>
+ Include dependency graph for main.c:

Macros

#define LLCP_DEBUG_PRINT   0
 
#define USART_DMA_BUFFER_SIZE   (4 * LLCP_RX_TX_BUFFER_SIZE)
 

Functions

void SystemClock_Config (void)
 System Clock Configuration. More...
 
int main (void)
 The application entry point. More...
 
void USART_IDLECallback (UART_HandleTypeDef *huart)
 
void Error_Handler (void)
 This function is executed in case of error occurrence. More...
 

Variables

UART_HandleTypeDef huart1
 
UART_HandleTypeDef huart2
 
UART_HandleTypeDef huart6
 
DMA_HandleTypeDef hdma_usart1_rx
 
DMA_HandleTypeDef hdma_usart2_rx
 
DMA_HandleTypeDef hdma_usart6_rx
 
uint8_t usart1_rx_buffer [USART_DMA_BUFFER_SIZE]
 
uint8_t usart2_rx_buffer [USART_DMA_BUFFER_SIZE]
 
uint8_t usart6_rx_buffer [USART_DMA_BUFFER_SIZE]
 
MUI_Handler_t mui_handler_
 
Gatherer_Handler_t gatherer_handler_
 

Detailed Description

: Main program body

Attention

© Copyright (c) 2021 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Macro Definition Documentation

◆ LLCP_DEBUG_PRINT

#define LLCP_DEBUG_PRINT   0

◆ USART_DMA_BUFFER_SIZE

#define USART_DMA_BUFFER_SIZE   (4 * LLCP_RX_TX_BUFFER_SIZE)

Function Documentation

◆ Error_Handler()

void Error_Handler ( void  )

This function is executed in case of error occurrence.

Return values
None

◆ main()

int main ( void  )

The application entry point.

Return values
int

◆ 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

◆ USART_IDLECallback()

void USART_IDLECallback ( UART_HandleTypeDef *  huart)

Variable Documentation

◆ gatherer_handler_

Gatherer_Handler_t gatherer_handler_

◆ hdma_usart1_rx

DMA_HandleTypeDef hdma_usart1_rx

◆ hdma_usart2_rx

DMA_HandleTypeDef hdma_usart2_rx

◆ hdma_usart6_rx

DMA_HandleTypeDef hdma_usart6_rx

◆ huart1

UART_HandleTypeDef huart1

◆ huart2

UART_HandleTypeDef huart2

◆ huart6

UART_HandleTypeDef huart6

◆ mui_handler_

MUI_Handler_t mui_handler_

◆ usart1_rx_buffer

uint8_t usart1_rx_buffer[USART_DMA_BUFFER_SIZE]

◆ usart2_rx_buffer

uint8_t usart2_rx_buffer[USART_DMA_BUFFER_SIZE]

◆ usart6_rx_buffer

uint8_t usart6_rx_buffer[USART_DMA_BUFFER_SIZE]