MAXREFDES63# Code Documentation  V01.00
8-Channel Digital Output MicroPLC
 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.
 
void maxim_spi_init (void)
 Initialize the SPI peripheral.
 

Variables

GPIO_InitTypeDef gpio_init_structure
 
SPI_InitTypeDef spi_init_structure
 
USART_InitTypeDef usart_init_structure
 

Detailed Description

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

Project: MAXREFDES63# 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 112 of file init_config.c.

void maxim_spi_init ( void  )

Initialize the SPI peripheral.

Details
This function initializes the SPI2 peripheral
CS is controlled by GPIO PB12
Parameters
None
Return values
None

Definition at line 149 of file init_config.c.

void maxim_uart_init ( void  )

Initialize the UART peripheral.

Details
This function initializes the UART peripheral that connects to the terminal program.
The baud rate is set to 921600
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.