MAXREFDES62# Code Documentation  V01.00
RS-485 Micro PLC
 All Files Functions Variables Macros Pages
init_config.c File Reference
#include "stm32f10x.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_usart.h"
#include "stm32f10x_spi.h"
#include "init_config.h"

Go to the source code of this file.

Functions

void maxim_uart_init (void)
 Initialize the UART peripheral.
 
void maxim_gpio_init (void)
 Initialize the GPIO peripheral.
 

Variables

GPIO_InitTypeDef gpio_init_structure
 
SPI_InitTypeDef spi_init_structure
 
USART_InitTypeDef usart_init_structure
 

Detailed Description

******************************************************

Project: MAXREFDES62# Filename: init_config.c Description: This module contains all the functions used to initialize the STM32F1 peripherals

Revision History:
9-17-2014 Rev 01.00 GL Initial release.


This code follows the following naming conventions:


char ch_pmod_value
char (array) s_pmod_string[16]
float f_pmod_value
int n_pmod_value
int (array) an_pmod_value[16]
u16 u_pmod_value
u16 (array) au_pmod_value[16]
u8 uch_pmod_value
u8 (array) auch_pmod_buffer[16]
unsigned int un_pmod_value
int * pun_pmod_value


Definition in file init_config.c.

Function Documentation

void maxim_gpio_init ( void  )

Initialize the GPIO peripheral.

Details
This function initializes the GPIO that are used in this application
Parameters
None
Return values
None

Definition at line 171 of file init_config.c.

void maxim_uart_init ( void  )

Initialize the UART peripheral.

Details

This function initializes all UART peripherals.
UART1 for terminal program (baud rate = 921600)
UART2 connects to the MAX14783 (baud rate = 4000000)
UART3 connects to the MAX14789E (baud rate = 4000000)
Parameters
None
Return values
None

Definition at line 71 of file init_config.c.

Variable Documentation

GPIO_InitTypeDef gpio_init_structure

Definition at line 67 of file init_config.c.

SPI_InitTypeDef spi_init_structure

Definition at line 68 of file init_config.c.

USART_InitTypeDef usart_init_structure

Definition at line 69 of file init_config.c.