MAXREFDES63# Code Documentation  V01.00
8-Channel Digital Output MicroPLC
 All Files Functions Variables Macros Pages
init_config.h File Reference

Go to the source code of this file.

Functions

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

Detailed Description

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

Project: MAXREFDES63# Filename: init_config.h 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.h.

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.