mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 11:53:53 -04:00
Add FreeRTOS-Plus directory.
This commit is contained in:
parent
7bd5f21ad5
commit
f508a5f653
6798 changed files with 134949 additions and 19 deletions
|
@ -0,0 +1,645 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file stm320518_eval.c
|
||||
* @author MCD Application Team
|
||||
* @version V1.0.0RC1
|
||||
* @date 27-January-2012
|
||||
* @brief This file provides:
|
||||
* - set of firmware functions to manage Leds, push-button and COM ports
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
||||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
||||
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
||||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
||||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
||||
*
|
||||
* FOR MORE INFORMATION PLEASE READ CAREFULLY THE LICENSE AGREEMENT FILE
|
||||
* LOCATED IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.
|
||||
*
|
||||
* <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "stm320518_eval.h"
|
||||
|
||||
/** @addtogroup Utilities
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @addtogroup STM32_EVAL
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @addtogroup STM320518_EVAL
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @defgroup STM320518_EVAL_LOW_LEVEL
|
||||
* @brief This file provides firmware functions to manage Leds, push-buttons,
|
||||
* COM ports, SD card on SPI and temperature sensor (LM75) available on
|
||||
* STM320518-EVAL evaluation board from STMicroelectronics.
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @defgroup STM320518_EVAL_LOW_LEVEL_Private_TypesDefinitions
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
/** @defgroup STM320518_EVAL_LOW_LEVEL_Private_Defines
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
/** @defgroup STM320518_EVAL_LOW_LEVEL_Private_Macros
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
/** @defgroup STM320518_EVAL_LOW_LEVEL_Private_Variables
|
||||
* @{
|
||||
*/
|
||||
GPIO_TypeDef* GPIO_PORT[LEDn] = {LED1_GPIO_PORT, LED2_GPIO_PORT, LED3_GPIO_PORT,
|
||||
LED4_GPIO_PORT};
|
||||
const uint16_t GPIO_PIN[LEDn] = {LED1_PIN, LED2_PIN, LED3_PIN,
|
||||
LED4_PIN};
|
||||
const uint32_t GPIO_CLK[LEDn] = {LED1_GPIO_CLK, LED2_GPIO_CLK, LED3_GPIO_CLK,
|
||||
LED4_GPIO_CLK};
|
||||
|
||||
GPIO_TypeDef* BUTTON_PORT[BUTTONn] = {TAMPER_BUTTON_GPIO_PORT, KEY_BUTTON_GPIO_PORT,
|
||||
RIGHT_BUTTON_GPIO_PORT, LEFT_BUTTON_GPIO_PORT,
|
||||
UP_BUTTON_GPIO_PORT, DOWN_BUTTON_GPIO_PORT,
|
||||
SEL_BUTTON_GPIO_PORT};
|
||||
|
||||
const uint16_t BUTTON_PIN[BUTTONn] = {TAMPER_BUTTON_PIN, KEY_BUTTON_PIN,
|
||||
RIGHT_BUTTON_PIN, LEFT_BUTTON_PIN,
|
||||
UP_BUTTON_PIN, DOWN_BUTTON_PIN,
|
||||
SEL_BUTTON_PIN};
|
||||
|
||||
const uint32_t BUTTON_CLK[BUTTONn] = {TAMPER_BUTTON_GPIO_CLK, KEY_BUTTON_GPIO_CLK,
|
||||
RIGHT_BUTTON_GPIO_CLK, LEFT_BUTTON_GPIO_CLK,
|
||||
UP_BUTTON_GPIO_CLK, DOWN_BUTTON_GPIO_CLK,
|
||||
SEL_BUTTON_GPIO_CLK};
|
||||
|
||||
const uint16_t BUTTON_EXTI_LINE[BUTTONn] = {TAMPER_BUTTON_EXTI_LINE,
|
||||
KEY_BUTTON_EXTI_LINE,
|
||||
RIGHT_BUTTON_EXTI_LINE,
|
||||
LEFT_BUTTON_EXTI_LINE,
|
||||
UP_BUTTON_EXTI_LINE,
|
||||
DOWN_BUTTON_EXTI_LINE,
|
||||
SEL_BUTTON_EXTI_LINE};
|
||||
|
||||
const uint16_t BUTTON_PORT_SOURCE[BUTTONn] = {TAMPER_BUTTON_EXTI_PORT_SOURCE,
|
||||
KEY_BUTTON_EXTI_PORT_SOURCE,
|
||||
RIGHT_BUTTON_EXTI_PORT_SOURCE,
|
||||
LEFT_BUTTON_EXTI_PORT_SOURCE,
|
||||
UP_BUTTON_EXTI_PORT_SOURCE,
|
||||
DOWN_BUTTON_EXTI_PORT_SOURCE,
|
||||
SEL_BUTTON_EXTI_PORT_SOURCE};
|
||||
|
||||
const uint16_t BUTTON_PIN_SOURCE[BUTTONn] = {TAMPER_BUTTON_EXTI_PIN_SOURCE,
|
||||
KEY_BUTTON_EXTI_PIN_SOURCE,
|
||||
RIGHT_BUTTON_EXTI_PIN_SOURCE,
|
||||
LEFT_BUTTON_EXTI_PIN_SOURCE,
|
||||
UP_BUTTON_EXTI_PIN_SOURCE,
|
||||
DOWN_BUTTON_EXTI_PIN_SOURCE,
|
||||
SEL_BUTTON_EXTI_PIN_SOURCE};
|
||||
|
||||
const uint16_t BUTTON_IRQn[BUTTONn] = {TAMPER_BUTTON_EXTI_IRQn, KEY_BUTTON_EXTI_IRQn,
|
||||
RIGHT_BUTTON_EXTI_IRQn, LEFT_BUTTON_EXTI_IRQn,
|
||||
UP_BUTTON_EXTI_IRQn, DOWN_BUTTON_EXTI_IRQn,
|
||||
SEL_BUTTON_EXTI_IRQn};
|
||||
|
||||
USART_TypeDef* COM_USART[COMn] = {EVAL_COM1};
|
||||
|
||||
GPIO_TypeDef* COM_TX_PORT[COMn] = {EVAL_COM1_TX_GPIO_PORT};
|
||||
|
||||
GPIO_TypeDef* COM_RX_PORT[COMn] = {EVAL_COM1_RX_GPIO_PORT};
|
||||
|
||||
const uint32_t COM_USART_CLK[COMn] = {EVAL_COM1_CLK};
|
||||
|
||||
const uint32_t COM_TX_PORT_CLK[COMn] = {EVAL_COM1_TX_GPIO_CLK};
|
||||
|
||||
const uint32_t COM_RX_PORT_CLK[COMn] = {EVAL_COM1_RX_GPIO_CLK};
|
||||
|
||||
const uint16_t COM_TX_PIN[COMn] = {EVAL_COM1_TX_PIN};
|
||||
|
||||
const uint16_t COM_RX_PIN[COMn] = {EVAL_COM1_RX_PIN};
|
||||
|
||||
const uint16_t COM_TX_PIN_SOURCE[COMn] = {EVAL_COM1_TX_SOURCE};
|
||||
|
||||
const uint16_t COM_RX_PIN_SOURCE[COMn] = {EVAL_COM1_RX_SOURCE};
|
||||
|
||||
const uint16_t COM_TX_AF[COMn] = {EVAL_COM1_TX_AF};
|
||||
|
||||
const uint16_t COM_RX_AF[COMn] = {EVAL_COM1_RX_AF};
|
||||
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
/** @defgroup STM320518_EVAL_LOW_LEVEL_Private_FunctionPrototypes
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @defgroup STM320518_EVAL_LOW_LEVEL_Private_Functions
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Configures LED GPIO.
|
||||
* @param Led: Specifies the Led to be configured.
|
||||
* This parameter can be one of following parameters:
|
||||
* @arg LED1
|
||||
* @arg LED2
|
||||
* @arg LED3
|
||||
* @arg LED4
|
||||
* @retval None
|
||||
*/
|
||||
void STM_EVAL_LEDInit(Led_TypeDef Led)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
/* Enable the GPIO_LED Clock */
|
||||
RCC_AHBPeriphClockCmd(GPIO_CLK[Led], ENABLE);
|
||||
|
||||
/* Configure the GPIO_LED pin */
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_PIN[Led];
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_Init(GPIO_PORT[Led], &GPIO_InitStructure);
|
||||
GPIO_PORT[Led]->BSRR = GPIO_PIN[Led];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Turns selected LED On.
|
||||
* @param Led: Specifies the Led to be set on.
|
||||
* This parameter can be one of following parameters:
|
||||
* @arg LED1
|
||||
* @arg LED2
|
||||
* @arg LED3
|
||||
* @arg LED4
|
||||
* @retval None
|
||||
*/
|
||||
void STM_EVAL_LEDOn(Led_TypeDef Led)
|
||||
{
|
||||
GPIO_PORT[Led]->BRR = GPIO_PIN[Led];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Turns selected LED Off.
|
||||
* @param Led: Specifies the Led to be set off.
|
||||
* This parameter can be one of following parameters:
|
||||
* @arg LED1
|
||||
* @arg LED2
|
||||
* @arg LED3
|
||||
* @arg LED4
|
||||
* @retval None
|
||||
*/
|
||||
void STM_EVAL_LEDOff(Led_TypeDef Led)
|
||||
{
|
||||
GPIO_PORT[Led]->BSRR = GPIO_PIN[Led];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Toggles the selected LED.
|
||||
* @param Led: Specifies the Led to be toggled.
|
||||
* This parameter can be one of following parameters:
|
||||
* @arg LED1
|
||||
* @arg LED2
|
||||
* @arg LED3
|
||||
* @arg LED4
|
||||
* @retval None
|
||||
*/
|
||||
void STM_EVAL_LEDToggle(Led_TypeDef Led)
|
||||
{
|
||||
GPIO_PORT[Led]->ODR ^= GPIO_PIN[Led];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Configures Button GPIO and EXTI Line.
|
||||
* @param Button: Specifies the Button to be configured.
|
||||
* This parameter can be one of following parameters:
|
||||
* @arg BUTTON_TAMPER: Tamper Push Button
|
||||
* @arg BUTTON_KEY: Key Push Button
|
||||
* @arg BUTTON_RIGHT: Joystick Right Push Button
|
||||
* @arg BUTTON_LEFT: Joystick Left Push Button
|
||||
* @arg BUTTON_UP: Joystick Up Push Button
|
||||
* @arg BUTTON_DOWN: Joystick Down Push Button
|
||||
* @arg BUTTON_SEL: Joystick Sel Push Button
|
||||
* @param Button_Mode: Specifies Button mode.
|
||||
* This parameter can be one of following parameters:
|
||||
* @arg BUTTON_MODE_GPIO: Button will be used as simple IO
|
||||
* @arg BUTTON_MODE_EXTI: Button will be connected to EXTI line with interrupt
|
||||
* generation capability
|
||||
* @retval None
|
||||
*/
|
||||
void STM_EVAL_PBInit(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
EXTI_InitTypeDef EXTI_InitStructure;
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
|
||||
/* Enable the BUTTON Clock */
|
||||
RCC_AHBPeriphClockCmd(BUTTON_CLK[Button], ENABLE);
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
|
||||
|
||||
/* Configure Button pin as input */
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
|
||||
GPIO_InitStructure.GPIO_Pin = BUTTON_PIN[Button];
|
||||
GPIO_Init(BUTTON_PORT[Button], &GPIO_InitStructure);
|
||||
|
||||
if (Button_Mode == BUTTON_MODE_EXTI)
|
||||
{
|
||||
/* Connect Button EXTI Line to Button GPIO Pin */
|
||||
SYSCFG_EXTILineConfig(BUTTON_PORT_SOURCE[Button], BUTTON_PIN_SOURCE[Button]);
|
||||
|
||||
/* Configure Button EXTI line */
|
||||
EXTI_InitStructure.EXTI_Line = BUTTON_EXTI_LINE[Button];
|
||||
EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;
|
||||
if ((Button != BUTTON_TAMPER) && (Button != BUTTON_KEY))
|
||||
{
|
||||
EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Rising;
|
||||
}
|
||||
else
|
||||
{
|
||||
EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Falling;
|
||||
}
|
||||
EXTI_InitStructure.EXTI_LineCmd = ENABLE;
|
||||
EXTI_Init(&EXTI_InitStructure);
|
||||
|
||||
/* Enable and set Button EXTI Interrupt to the lowest priority */
|
||||
NVIC_InitStructure.NVIC_IRQChannel = BUTTON_IRQn[Button];
|
||||
NVIC_InitStructure.NVIC_IRQChannelPriority = 0x03;
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
|
||||
|
||||
NVIC_Init(&NVIC_InitStructure);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the selected Button state.
|
||||
* @param Button: Specifies the Button to be checked.
|
||||
* This parameter can be one of following parameters:
|
||||
* @arg BUTTON_TAMPER: Tamper Push Button
|
||||
* @arg BUTTON_KEY: Key Push Button
|
||||
* @arg BUTTON_RIGHT: Joystick Right Push Button
|
||||
* @arg BUTTON_LEFT: Joystick Left Push Button
|
||||
* @arg BUTTON_UP: Joystick Up Push Button
|
||||
* @arg BUTTON_DOWN: Joystick Down Push Button
|
||||
* @arg BUTTON_SEL: Joystick Sel Push Button
|
||||
* @retval The Button GPIO pin value.
|
||||
*/
|
||||
uint32_t STM_EVAL_PBGetState(Button_TypeDef Button)
|
||||
{
|
||||
/* There is no Wakeup button on STM320518-EVAL. */
|
||||
return GPIO_ReadInputDataBit(BUTTON_PORT[Button], BUTTON_PIN[Button]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Configures COM port.
|
||||
* @param COM: Specifies the COM port to be configured.
|
||||
* This parameter can be one of following parameters:
|
||||
* @arg COM1
|
||||
* @param USART_InitStruct: pointer to a USART_InitTypeDef structure that
|
||||
* contains the configuration information for the specified USART peripheral.
|
||||
* @retval None
|
||||
*/
|
||||
void STM_EVAL_COMInit(COM_TypeDef COM, USART_InitTypeDef* USART_InitStruct)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
/* Enable GPIO clock */
|
||||
RCC_AHBPeriphClockCmd(COM_TX_PORT_CLK[COM] | COM_RX_PORT_CLK[COM], ENABLE);
|
||||
|
||||
/* Enable USART clock */
|
||||
RCC_APB2PeriphClockCmd(COM_USART_CLK[COM], ENABLE);
|
||||
|
||||
/* Connect PXx to USARTx_Tx */
|
||||
GPIO_PinAFConfig(COM_TX_PORT[COM], COM_TX_PIN_SOURCE[COM], COM_TX_AF[COM]);
|
||||
|
||||
/* Connect PXx to USARTx_Rx */
|
||||
GPIO_PinAFConfig(COM_RX_PORT[COM], COM_RX_PIN_SOURCE[COM], COM_RX_AF[COM]);
|
||||
|
||||
/* Configure USART Tx as alternate function push-pull */
|
||||
GPIO_InitStructure.GPIO_Pin = COM_TX_PIN[COM];
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
|
||||
GPIO_Init(COM_TX_PORT[COM], &GPIO_InitStructure);
|
||||
|
||||
/* Configure USART Rx as alternate function push-pull */
|
||||
GPIO_InitStructure.GPIO_Pin = COM_RX_PIN[COM];
|
||||
GPIO_Init(COM_RX_PORT[COM], &GPIO_InitStructure);
|
||||
|
||||
/* USART configuration */
|
||||
USART_Init(COM_USART[COM], USART_InitStruct);
|
||||
|
||||
/* Enable USART */
|
||||
USART_Cmd(COM_USART[COM], ENABLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DeInitializes the SPI interface.
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
void SD_LowLevel_DeInit(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
SPI_Cmd(SD_SPI, DISABLE); /*!< SD_SPI disable */
|
||||
SPI_I2S_DeInit(SD_SPI); /*!< DeInitializes the SD_SPI */
|
||||
|
||||
/*!< SD_SPI Periph clock disable */
|
||||
RCC_APB2PeriphClockCmd(SD_SPI_CLK, DISABLE);
|
||||
|
||||
/*!< Configure SD_SPI pins: SCK */
|
||||
GPIO_InitStructure.GPIO_Pin = SD_SPI_SCK_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
|
||||
GPIO_Init(SD_SPI_SCK_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure SD_SPI pins: MISO */
|
||||
GPIO_InitStructure.GPIO_Pin = SD_SPI_MISO_PIN;
|
||||
GPIO_Init(SD_SPI_MISO_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure SD_SPI pins: MOSI */
|
||||
GPIO_InitStructure.GPIO_Pin = SD_SPI_MOSI_PIN;
|
||||
GPIO_Init(SD_SPI_MOSI_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure SD_SPI_CS_PIN pin: SD Card CS pin */
|
||||
GPIO_InitStructure.GPIO_Pin = SD_CS_PIN;
|
||||
GPIO_Init(SD_CS_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure SD_SPI_DETECT_PIN pin: SD Card detect pin */
|
||||
GPIO_InitStructure.GPIO_Pin = SD_DETECT_PIN;
|
||||
GPIO_Init(SD_DETECT_GPIO_PORT, &GPIO_InitStructure);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Initializes the SD Card and put it into StandBy State (Ready for
|
||||
* data transfer).
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
void SD_LowLevel_Init(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
SPI_InitTypeDef SPI_InitStructure;
|
||||
|
||||
/*!< SD_SPI_CS_GPIO, SD_SPI_MOSI_GPIO, SD_SPI_MISO_GPIO, SD_SPI_DETECT_GPIO
|
||||
and SD_SPI_SCK_GPIO Periph clock enable */
|
||||
RCC_AHBPeriphClockCmd(SD_CS_GPIO_CLK | SD_SPI_MOSI_GPIO_CLK | SD_SPI_MISO_GPIO_CLK |
|
||||
SD_SPI_SCK_GPIO_CLK | SD_DETECT_GPIO_CLK, ENABLE);
|
||||
|
||||
/*!< SD_SPI Periph clock enable */
|
||||
RCC_APB2PeriphClockCmd(SD_SPI_CLK, ENABLE);
|
||||
|
||||
/*!< Configure SD_SPI pins: SCK */
|
||||
GPIO_InitStructure.GPIO_Pin = SD_SPI_SCK_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
|
||||
GPIO_Init(SD_SPI_SCK_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure SD_SPI pins: MISO */
|
||||
GPIO_InitStructure.GPIO_Pin = SD_SPI_MISO_PIN;
|
||||
GPIO_Init(SD_SPI_MISO_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure SD_SPI pins: MOSI */
|
||||
GPIO_InitStructure.GPIO_Pin = SD_SPI_MOSI_PIN;
|
||||
GPIO_Init(SD_SPI_MOSI_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure SD_SPI_CS_PIN pin: SD Card CS pin */
|
||||
GPIO_InitStructure.GPIO_Pin = SD_CS_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_Init(SD_CS_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure SD_SPI_DETECT_PIN pin: SD Card detect pin */
|
||||
GPIO_InitStructure.GPIO_Pin = SD_DETECT_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
|
||||
GPIO_Init(SD_DETECT_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/* Connect PXx to SD_SPI_SCK */
|
||||
GPIO_PinAFConfig(SD_SPI_SCK_GPIO_PORT, SD_SPI_SCK_SOURCE, SD_SPI_SCK_AF);
|
||||
|
||||
/* Connect PXx to SD_SPI_MISO */
|
||||
GPIO_PinAFConfig(SD_SPI_MISO_GPIO_PORT, SD_SPI_MISO_SOURCE, SD_SPI_MISO_AF);
|
||||
|
||||
/* Connect PXx to SD_SPI_MOSI */
|
||||
GPIO_PinAFConfig(SD_SPI_MOSI_GPIO_PORT, SD_SPI_MOSI_SOURCE, SD_SPI_MOSI_AF);
|
||||
|
||||
/*!< SD_SPI Config */
|
||||
SPI_InitStructure.SPI_Direction = SPI_Direction_2Lines_FullDuplex;
|
||||
SPI_InitStructure.SPI_Mode = SPI_Mode_Master;
|
||||
SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b;
|
||||
SPI_InitStructure.SPI_CPOL = SPI_CPOL_High;
|
||||
SPI_InitStructure.SPI_CPHA = SPI_CPHA_2Edge;
|
||||
SPI_InitStructure.SPI_NSS = SPI_NSS_Soft;
|
||||
SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_2;
|
||||
|
||||
SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB;
|
||||
SPI_InitStructure.SPI_CRCPolynomial = 7;
|
||||
SPI_Init(SD_SPI, &SPI_InitStructure);
|
||||
|
||||
SPI_RxFIFOThresholdConfig(SD_SPI, SPI_RxFIFOThreshold_QF);
|
||||
|
||||
SPI_Cmd(SD_SPI, ENABLE); /*!< SD_SPI enable */
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DeInitializes the LM75_I2C.
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
void LM75_LowLevel_DeInit(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
/*!< Disable LM75_I2C */
|
||||
I2C_Cmd(LM75_I2C, DISABLE);
|
||||
|
||||
/*!< DeInitializes the LM75_I2C */
|
||||
I2C_DeInit(LM75_I2C);
|
||||
|
||||
/*!< LM75_I2C Periph clock disable */
|
||||
RCC_APB1PeriphClockCmd(LM75_I2C_CLK, DISABLE);
|
||||
|
||||
/*!< Configure LM75_I2C pins: SCL */
|
||||
GPIO_InitStructure.GPIO_Pin = LM75_I2C_SCL_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
|
||||
GPIO_Init(LM75_I2C_SCL_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure LM75_I2C pins: SDA */
|
||||
GPIO_InitStructure.GPIO_Pin = LM75_I2C_SDA_PIN;
|
||||
GPIO_Init(LM75_I2C_SDA_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure LM75_I2C pin: SMBUS ALERT */
|
||||
GPIO_InitStructure.GPIO_Pin = LM75_I2C_SMBUSALERT_PIN;
|
||||
GPIO_Init(LM75_I2C_SMBUSALERT_GPIO_PORT, &GPIO_InitStructure);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Initializes the LM75_I2C..
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
void LM75_LowLevel_Init(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
/*!< LM75_I2C Periph clock enable */
|
||||
RCC_APB1PeriphClockCmd(LM75_I2C_CLK, ENABLE);
|
||||
|
||||
/* Configure the I2C clock source. The clock is derived from the HSI */
|
||||
RCC_I2CCLKConfig(RCC_I2C1CLK_HSI);
|
||||
|
||||
/*!< LM75_I2C_SCL_GPIO_CLK, LM75_I2C_SDA_GPIO_CLK
|
||||
and LM75_I2C_SMBUSALERT_GPIO_CLK Periph clock enable */
|
||||
RCC_AHBPeriphClockCmd(LM75_I2C_SCL_GPIO_CLK | LM75_I2C_SDA_GPIO_CLK |
|
||||
LM75_I2C_SMBUSALERT_GPIO_CLK, ENABLE);
|
||||
|
||||
/* Connect PXx to I2C_SCL */
|
||||
GPIO_PinAFConfig(LM75_I2C_SCL_GPIO_PORT, LM75_I2C_SCL_SOURCE, LM75_I2C_SCL_AF);
|
||||
|
||||
/* Connect PXx to I2C_SDA */
|
||||
GPIO_PinAFConfig(LM75_I2C_SDA_GPIO_PORT, LM75_I2C_SDA_SOURCE, LM75_I2C_SDA_AF);
|
||||
|
||||
/* Connect PXx to I2C_SMBUSALER */
|
||||
GPIO_PinAFConfig(LM75_I2C_SMBUSALERT_GPIO_PORT, LM75_I2C_SMBUSALERT_SOURCE, LM75_I2C_SMBUSALERT_AF);
|
||||
|
||||
/*!< Configure LM75_I2C pins: SCL */
|
||||
GPIO_InitStructure.GPIO_Pin = LM75_I2C_SCL_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_OD;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
|
||||
GPIO_Init(LM75_I2C_SCL_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure LM75_I2C pins: SDA */
|
||||
GPIO_InitStructure.GPIO_Pin = LM75_I2C_SDA_PIN;
|
||||
GPIO_Init(LM75_I2C_SDA_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure LM75_I2C pin: SMBUS ALERT */
|
||||
GPIO_InitStructure.GPIO_Pin = LM75_I2C_SMBUSALERT_PIN;
|
||||
GPIO_Init(LM75_I2C_SMBUSALERT_GPIO_PORT, &GPIO_InitStructure);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DeInitializes peripherals used by the I2C EEPROM driver.
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
void sEE_LowLevel_DeInit(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
/* sEE_I2C Peripheral Disable */
|
||||
I2C_Cmd(sEE_I2C, DISABLE);
|
||||
|
||||
/* sEE_I2C DeInit */
|
||||
I2C_DeInit(sEE_I2C);
|
||||
|
||||
/*!< sEE_I2C Periph clock disable */
|
||||
RCC_APB1PeriphClockCmd(sEE_I2C_CLK, DISABLE);
|
||||
|
||||
/*!< GPIO configuration */
|
||||
/*!< Configure sEE_I2C pins: SCL */
|
||||
GPIO_InitStructure.GPIO_Pin = sEE_I2C_SCL_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
|
||||
GPIO_Init(sEE_I2C_SCL_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure sEE_I2C pins: SDA */
|
||||
GPIO_InitStructure.GPIO_Pin = sEE_I2C_SDA_PIN;
|
||||
GPIO_Init(sEE_I2C_SDA_GPIO_PORT, &GPIO_InitStructure);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Initializes peripherals used by the I2C EEPROM driver.
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
void sEE_LowLevel_Init(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
/* Configure the I2C clock source. The clock is derived from the HSI */
|
||||
RCC_I2CCLKConfig(RCC_I2C1CLK_HSI);
|
||||
|
||||
/*!< sEE_I2C_SCL_GPIO_CLK and sEE_I2C_SDA_GPIO_CLK Periph clock enable */
|
||||
RCC_AHBPeriphClockCmd(sEE_I2C_SCL_GPIO_CLK | sEE_I2C_SDA_GPIO_CLK, ENABLE);
|
||||
|
||||
/*!< sEE_I2C Periph clock enable */
|
||||
RCC_APB1PeriphClockCmd(sEE_I2C_CLK, ENABLE);
|
||||
|
||||
/* Connect PXx to I2C_SCL*/
|
||||
GPIO_PinAFConfig(sEE_I2C_SCL_GPIO_PORT, sEE_I2C_SCL_SOURCE, sEE_I2C_SCL_AF);
|
||||
|
||||
/* Connect PXx to I2C_SDA*/
|
||||
GPIO_PinAFConfig(sEE_I2C_SDA_GPIO_PORT, sEE_I2C_SDA_SOURCE, sEE_I2C_SDA_AF);
|
||||
|
||||
/*!< GPIO configuration */
|
||||
/*!< Configure sEE_I2C pins: SCL */
|
||||
GPIO_InitStructure.GPIO_Pin = sEE_I2C_SCL_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_OD;
|
||||
GPIO_Init(sEE_I2C_SCL_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/*!< Configure sEE_I2C pins: SDA */
|
||||
GPIO_InitStructure.GPIO_Pin = sEE_I2C_SDA_PIN;
|
||||
GPIO_Init(sEE_I2C_SDA_GPIO_PORT, &GPIO_InitStructure);
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/******************* (C) COPYRIGHT 2012 STMicroelectronics *****END OF FILE****/
|
|
@ -0,0 +1,411 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file stm320518_eval.h
|
||||
* @author MCD Application Team
|
||||
* @version V1.0.0RC1
|
||||
* @date 27-January-2012
|
||||
* @brief This file contains definitions for STM320518_EVAL's Leds, push-buttons
|
||||
* and COM ports hardware resources.
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
||||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
||||
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
||||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
||||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
||||
*
|
||||
* FOR MORE INFORMATION PLEASE READ CAREFULLY THE LICENSE AGREEMENT FILE
|
||||
* LOCATED IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.
|
||||
*
|
||||
* <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __STM320518_EVAL_H
|
||||
#define __STM320518_EVAL_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "stm32f0xx.h"
|
||||
#include "stm32_eval_legacy.h"
|
||||
|
||||
/** @addtogroup Utilities
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @addtogroup STM32_EVAL
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @addtogroup STM320518_EVAL
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @addtogroup STM320518_EVAL_LOW_LEVEL
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @defgroup STM320518_EVAL_LOW_LEVEL_Exported_Types
|
||||
* @{
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
LED1 = 0,
|
||||
LED2 = 1,
|
||||
LED3 = 2,
|
||||
LED4 = 3
|
||||
} Led_TypeDef;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
BUTTON_TAMPER = 0,
|
||||
BUTTON_KEY = 1,
|
||||
BUTTON_RIGHT = 2,
|
||||
BUTTON_LEFT = 3,
|
||||
BUTTON_UP = 4,
|
||||
BUTTON_DOWN = 5,
|
||||
BUTTON_SEL = 6
|
||||
} Button_TypeDef;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
BUTTON_MODE_GPIO = 0,
|
||||
BUTTON_MODE_EXTI = 1
|
||||
} ButtonMode_TypeDef;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
JOY_NONE = 0,
|
||||
JOY_SEL = 1,
|
||||
JOY_DOWN = 2,
|
||||
JOY_LEFT = 3,
|
||||
JOY_RIGHT = 4,
|
||||
JOY_UP = 5
|
||||
} JOYState_TypeDef
|
||||
;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
COM1 = 0,
|
||||
COM2 = 1
|
||||
} COM_TypeDef;
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @defgroup STM320518_EVAL_LOW_LEVEL_Exported_Constants
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Define for STM320518_EVAL board
|
||||
*/
|
||||
#if !defined (USE_STM320518_EVAL)
|
||||
#define USE_STM320518_EVAL
|
||||
#endif
|
||||
|
||||
/** @addtogroup STM320518_EVAL_LOW_LEVEL_LED
|
||||
* @{
|
||||
*/
|
||||
#define LEDn 4
|
||||
|
||||
#define LED1_PIN GPIO_Pin_10
|
||||
#define LED1_GPIO_PORT GPIOC
|
||||
#define LED1_GPIO_CLK RCC_AHBPeriph_GPIOC
|
||||
|
||||
#define LED2_PIN GPIO_Pin_11
|
||||
#define LED2_GPIO_PORT GPIOC
|
||||
#define LED2_GPIO_CLK RCC_AHBPeriph_GPIOC
|
||||
|
||||
#define LED3_PIN GPIO_Pin_12
|
||||
#define LED3_GPIO_PORT GPIOC
|
||||
#define LED3_GPIO_CLK RCC_AHBPeriph_GPIOC
|
||||
|
||||
#define LED4_PIN GPIO_Pin_2
|
||||
#define LED4_GPIO_PORT GPIOD
|
||||
#define LED4_GPIO_CLK RCC_AHBPeriph_GPIOD
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @addtogroup STM320518_EVAL_LOW_LEVEL_BUTTON
|
||||
* @{
|
||||
*/
|
||||
#define BUTTONn 7
|
||||
|
||||
/**
|
||||
* @brief Tamper push-button
|
||||
*/
|
||||
#define TAMPER_BUTTON_PIN GPIO_Pin_13
|
||||
#define TAMPER_BUTTON_GPIO_PORT GPIOC
|
||||
#define TAMPER_BUTTON_GPIO_CLK RCC_AHBPeriph_GPIOC
|
||||
#define TAMPER_BUTTON_EXTI_LINE EXTI_Line13
|
||||
#define TAMPER_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOC
|
||||
#define TAMPER_BUTTON_EXTI_PIN_SOURCE EXTI_PinSource13
|
||||
#define TAMPER_BUTTON_EXTI_IRQn EXTI4_15_IRQn
|
||||
|
||||
/**
|
||||
* @brief Key push-button
|
||||
*/
|
||||
#define KEY_BUTTON_PIN GPIO_Pin_8
|
||||
#define KEY_BUTTON_GPIO_PORT GPIOB
|
||||
#define KEY_BUTTON_GPIO_CLK RCC_AHBPeriph_GPIOB
|
||||
#define KEY_BUTTON_EXTI_LINE EXTI_Line8
|
||||
#define KEY_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOB
|
||||
#define KEY_BUTTON_EXTI_PIN_SOURCE EXTI_PinSource8
|
||||
#define KEY_BUTTON_EXTI_IRQn EXTI4_15_IRQn
|
||||
|
||||
/**
|
||||
* @brief Joystick Right push-button
|
||||
*/
|
||||
#define RIGHT_BUTTON_PIN GPIO_Pin_8
|
||||
#define RIGHT_BUTTON_GPIO_PORT GPIOC
|
||||
#define RIGHT_BUTTON_GPIO_CLK RCC_AHBPeriph_GPIOC
|
||||
#define RIGHT_BUTTON_EXTI_LINE EXTI_Line8
|
||||
#define RIGHT_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOC
|
||||
#define RIGHT_BUTTON_EXTI_PIN_SOURCE EXTI_PinSource8
|
||||
#define RIGHT_BUTTON_EXTI_IRQn EXTI4_15_IRQn
|
||||
|
||||
/**
|
||||
* @brief Joystick Left push-button
|
||||
*/
|
||||
#define LEFT_BUTTON_PIN GPIO_Pin_9
|
||||
#define LEFT_BUTTON_GPIO_PORT GPIOC
|
||||
#define LEFT_BUTTON_GPIO_CLK RCC_AHBPeriph_GPIOC
|
||||
#define LEFT_BUTTON_EXTI_LINE EXTI_Line9
|
||||
#define LEFT_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOC
|
||||
#define LEFT_BUTTON_EXTI_PIN_SOURCE EXTI_PinSource9
|
||||
#define LEFT_BUTTON_EXTI_IRQn EXTI4_15_IRQn
|
||||
|
||||
/**
|
||||
* @brief Joystick Up push-button
|
||||
*/
|
||||
#define UP_BUTTON_PIN GPIO_Pin_6
|
||||
#define UP_BUTTON_GPIO_PORT GPIOC
|
||||
#define UP_BUTTON_GPIO_CLK RCC_AHBPeriph_GPIOC
|
||||
#define UP_BUTTON_EXTI_LINE EXTI_Line6
|
||||
#define UP_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOC
|
||||
#define UP_BUTTON_EXTI_PIN_SOURCE EXTI_PinSource6
|
||||
#define UP_BUTTON_EXTI_IRQn EXTI4_15_IRQn
|
||||
|
||||
/**
|
||||
* @brief Joystick Down push-button
|
||||
*/
|
||||
#define DOWN_BUTTON_PIN GPIO_Pin_7
|
||||
#define DOWN_BUTTON_GPIO_PORT GPIOC
|
||||
#define DOWN_BUTTON_GPIO_CLK RCC_AHBPeriph_GPIOC
|
||||
#define DOWN_BUTTON_EXTI_LINE EXTI_Line7
|
||||
#define DOWN_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOC
|
||||
#define DOWN_BUTTON_EXTI_PIN_SOURCE EXTI_PinSource7
|
||||
#define DOWN_BUTTON_EXTI_IRQn EXTI4_15_IRQn
|
||||
|
||||
/**
|
||||
* @brief Joystick Sel push-button
|
||||
*/
|
||||
#define SEL_BUTTON_PIN GPIO_Pin_0
|
||||
#define SEL_BUTTON_GPIO_PORT GPIOA
|
||||
#define SEL_BUTTON_GPIO_CLK RCC_AHBPeriph_GPIOA
|
||||
#define SEL_BUTTON_EXTI_LINE EXTI_Line0
|
||||
#define SEL_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOA
|
||||
#define SEL_BUTTON_EXTI_PIN_SOURCE EXTI_PinSource0
|
||||
#define SEL_BUTTON_EXTI_IRQn EXTI0_1_IRQn
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
/** @addtogroup STM320518_EVAL_LOW_LEVEL_COM
|
||||
* @{
|
||||
*/
|
||||
#define COMn 1
|
||||
|
||||
/**
|
||||
* @brief Definition for COM port1, connected to USART1
|
||||
*/
|
||||
#define EVAL_COM1 USART1
|
||||
#define EVAL_COM1_CLK RCC_APB2Periph_USART1
|
||||
|
||||
#define EVAL_COM1_TX_PIN GPIO_Pin_9
|
||||
#define EVAL_COM1_TX_GPIO_PORT GPIOA
|
||||
#define EVAL_COM1_TX_GPIO_CLK RCC_AHBPeriph_GPIOA
|
||||
#define EVAL_COM1_TX_SOURCE GPIO_PinSource9
|
||||
#define EVAL_COM1_TX_AF GPIO_AF_1
|
||||
|
||||
#define EVAL_COM1_RX_PIN GPIO_Pin_10
|
||||
#define EVAL_COM1_RX_GPIO_PORT GPIOA
|
||||
#define EVAL_COM1_RX_GPIO_CLK RCC_AHBPeriph_GPIOA
|
||||
#define EVAL_COM1_RX_SOURCE GPIO_PinSource10
|
||||
#define EVAL_COM1_RX_AF GPIO_AF_1
|
||||
|
||||
#define EVAL_COM1_CTS_PIN GPIO_Pin_11
|
||||
#define EVAL_COM1_CTS_GPIO_PORT GPIOA
|
||||
#define EVAL_COM1_CTS_GPIO_CLK RCC_AHBPeriph_GPIOA
|
||||
#define EVAL_COM1_CTS_SOURCE GPIO_PinSource11
|
||||
#define EVAL_COM1_CTS_AF GPIO_AF_1
|
||||
|
||||
#define EVAL_COM1_RTS_PIN GPIO_Pin_12
|
||||
#define EVAL_COM1_RTS_GPIO_PORT GPIOA
|
||||
#define EVAL_COM1_RTS_GPIO_CLK RCC_AHBPeriph_GPIOA
|
||||
#define EVAL_COM1_RTS_SOURCE GPIO_PinSource12
|
||||
#define EVAL_COM1_RTS_AF GPIO_AF_1
|
||||
|
||||
#define EVAL_COM1_IRQn USART1_IRQn
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @addtogroup STM320518_EVAL_LOW_LEVEL_SD_SPI
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* @brief SD SPI Interface pins
|
||||
*/
|
||||
#define SD_SPI SPI1
|
||||
#define SD_SPI_CLK RCC_APB2Periph_SPI1
|
||||
|
||||
#define SD_SPI_SCK_PIN GPIO_Pin_5 /* PA.05 */
|
||||
#define SD_SPI_SCK_GPIO_PORT GPIOA /* GPIOA */
|
||||
#define SD_SPI_SCK_GPIO_CLK RCC_AHBPeriph_GPIOA
|
||||
#define SD_SPI_SCK_SOURCE GPIO_PinSource5
|
||||
#define SD_SPI_SCK_AF GPIO_AF_0
|
||||
|
||||
#define SD_SPI_MISO_PIN GPIO_Pin_6 /* PA.06 */
|
||||
#define SD_SPI_MISO_GPIO_PORT GPIOA /* GPIOA */
|
||||
#define SD_SPI_MISO_GPIO_CLK RCC_AHBPeriph_GPIOA
|
||||
#define SD_SPI_MISO_SOURCE GPIO_PinSource6
|
||||
#define SD_SPI_MISO_AF GPIO_AF_0
|
||||
|
||||
#define SD_SPI_MOSI_PIN GPIO_Pin_7 /* PA.07 */
|
||||
#define SD_SPI_MOSI_GPIO_PORT GPIOA /* GPIOA */
|
||||
#define SD_SPI_MOSI_GPIO_CLK RCC_AHBPeriph_GPIOA
|
||||
#define SD_SPI_MOSI_SOURCE GPIO_PinSource7
|
||||
#define SD_SPI_MOSI_AF GPIO_AF_0
|
||||
|
||||
#define SD_CS_PIN GPIO_Pin_5 /* PF.05 */
|
||||
#define SD_CS_GPIO_PORT GPIOF /* GPIOF */
|
||||
#define SD_CS_GPIO_CLK RCC_AHBPeriph_GPIOF
|
||||
|
||||
|
||||
#define SD_DETECT_PIN GPIO_Pin_15 /* PB.15 */
|
||||
#define SD_DETECT_EXTI_LINE EXTI_Line15
|
||||
#define SD_DETECT_EXTI_PIN_SOURCE EXTI_PinSource15
|
||||
#define SD_DETECT_GPIO_PORT GPIOB /* GPIOB */
|
||||
#define SD_DETECT_GPIO_CLK RCC_AHBPeriph_GPIOB
|
||||
#define SD_DETECT_EXTI_PORT_SOURCE EXTI_PortSourceGPIOB
|
||||
#define SD_DETECT_EXTI_IRQn EXTI4_15_IRQn
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
/** @addtogroup STM320518_EVAL_LOW_LEVEL_TSENSOR_I2C
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* @brief LM75 Temperature Sensor I2C Interface pins
|
||||
*/
|
||||
#define LM75_I2C I2C1
|
||||
#define LM75_I2C_CLK RCC_APB1Periph_I2C1
|
||||
|
||||
#define LM75_I2C_SCL_PIN GPIO_Pin_6 /* PB.06 */
|
||||
#define LM75_I2C_SCL_GPIO_PORT GPIOB /* GPIOB */
|
||||
#define LM75_I2C_SCL_GPIO_CLK RCC_AHBPeriph_GPIOB
|
||||
#define LM75_I2C_SCL_SOURCE GPIO_PinSource6
|
||||
#define LM75_I2C_SCL_AF GPIO_AF_1
|
||||
|
||||
#define LM75_I2C_SDA_PIN GPIO_Pin_7 /* PB.07 */
|
||||
#define LM75_I2C_SDA_GPIO_PORT GPIOB /* GPIOB */
|
||||
#define LM75_I2C_SDA_GPIO_CLK RCC_AHBPeriph_GPIOB
|
||||
#define LM75_I2C_SDA_SOURCE GPIO_PinSource7
|
||||
#define LM75_I2C_SDA_AF GPIO_AF_1
|
||||
|
||||
#define LM75_I2C_SMBUSALERT_PIN GPIO_Pin_5 /* PB.05 */
|
||||
#define LM75_I2C_SMBUSALERT_GPIO_PORT GPIOB /* GPIOB */
|
||||
#define LM75_I2C_SMBUSALERT_GPIO_CLK RCC_AHBPeriph_GPIOB
|
||||
#define LM75_I2C_SMBUSALERT_SOURCE GPIO_PinSource5
|
||||
#define LM75_I2C_SMBUSALERT_AF GPIO_AF_3
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @addtogroup STM320518_EVAL_LOW_LEVEL_I2C_EE
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* @brief I2C EEPROM Interface pins
|
||||
*/
|
||||
#define sEE_I2C I2C1
|
||||
#define sEE_I2C_CLK RCC_APB1Periph_I2C1
|
||||
|
||||
#define sEE_I2C_SCL_PIN GPIO_Pin_6 /* PB.06 */
|
||||
#define sEE_I2C_SCL_GPIO_PORT GPIOB /* GPIOB */
|
||||
#define sEE_I2C_SCL_GPIO_CLK RCC_AHBPeriph_GPIOB
|
||||
#define sEE_I2C_SCL_SOURCE GPIO_PinSource6
|
||||
#define sEE_I2C_SCL_AF GPIO_AF_1
|
||||
|
||||
#define sEE_I2C_SDA_PIN GPIO_Pin_7 /* PB.07 */
|
||||
#define sEE_I2C_SDA_GPIO_PORT GPIOB /* GPIOB */
|
||||
#define sEE_I2C_SDA_GPIO_CLK RCC_AHBPeriph_GPIOB
|
||||
#define sEE_I2C_SDA_SOURCE GPIO_PinSource7
|
||||
#define sEE_I2C_SDA_AF GPIO_AF_1
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @defgroup STM320518_EVAL_LOW_LEVEL_Exported_Functions
|
||||
* @{
|
||||
*/
|
||||
void STM_EVAL_LEDInit(Led_TypeDef Led);
|
||||
void STM_EVAL_LEDOn(Led_TypeDef Led);
|
||||
void STM_EVAL_LEDOff(Led_TypeDef Led);
|
||||
void STM_EVAL_LEDToggle(Led_TypeDef Led);
|
||||
void STM_EVAL_PBInit(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode);
|
||||
uint32_t STM_EVAL_PBGetState(Button_TypeDef Button);
|
||||
void STM_EVAL_COMInit(COM_TypeDef COM, USART_InitTypeDef* USART_InitStruct);
|
||||
void SD_LowLevel_DeInit(void);
|
||||
void SD_LowLevel_Init(void);
|
||||
void sFLASH_LowLevel_DeInit(void);
|
||||
void sFLASH_LowLevel_Init(void);
|
||||
void LM75_LowLevel_DeInit(void);
|
||||
void LM75_LowLevel_Init(void);
|
||||
void sEE_LowLevel_DeInit(void);
|
||||
void sEE_LowLevel_Init(void);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __STM320518_EVAL_H */
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/******************* (C) COPYRIGHT 2012 STMicroelectronics *****END OF FILE****/
|
|
@ -0,0 +1,205 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file stm32_eval_legacy.h
|
||||
* @author MCD Application Team
|
||||
* @version V5.0.1
|
||||
* @date 28-December-2011
|
||||
* @brief This file contains defines legacy for STM32 EVAL drivers.
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
||||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
||||
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
||||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
||||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
||||
*
|
||||
* FOR MORE INFORMATION PLEASE READ CAREFULLY THE LICENSE AGREEMENT FILE
|
||||
* LOCATED IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.
|
||||
*
|
||||
* <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __STM32_EVAL_LEGACY_H
|
||||
#define __STM32_EVAL_LEGACY_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/* STM322xG_EVAL Defines Legacy */
|
||||
#ifdef USE_STM3220F_EVAL
|
||||
#define USE_STM322xG_EVAL
|
||||
#endif
|
||||
#define STM3220F_LCD_Init STM322xG_LCD_Init
|
||||
|
||||
/* Button Defines Legacy */
|
||||
#define Button_WAKEUP BUTTON_WAKEUP
|
||||
#define Button_TAMPER BUTTON_TAMPER
|
||||
#define Button_KEY BUTTON_KEY
|
||||
#define Button_RIGHT BUTTON_RIGHT
|
||||
#define Button_LEFT BUTTON_LEFT
|
||||
#define Button_UP BUTTON_UP
|
||||
#define Button_DOWN BUTTON_DOWN
|
||||
#define Button_SEL BUTTON_SEL
|
||||
#define Mode_GPIO BUTTON_MODE_GPIO
|
||||
#define Mode_EXTI BUTTON_MODE_EXTI
|
||||
#define Button_Mode_TypeDef ButtonMode_TypeDef
|
||||
#define JOY_CENTER JOY_SEL
|
||||
#define JOY_State_TypeDef JOYState_TypeDef
|
||||
|
||||
/* LCD Defines Legacy */
|
||||
#define LCD_RSNWR_GPIO_CLK LCD_NWR_GPIO_CLK
|
||||
#define LCD_SPI_GPIO_PORT LCD_SPI_SCK_GPIO_PORT
|
||||
#define LCD_SPI_GPIO_CLK LCD_SPI_SCK_GPIO_CLK
|
||||
#define R0 LCD_REG_0
|
||||
#define R1 LCD_REG_1
|
||||
#define R2 LCD_REG_2
|
||||
#define R3 LCD_REG_3
|
||||
#define R4 LCD_REG_4
|
||||
#define R5 LCD_REG_5
|
||||
#define R6 LCD_REG_6
|
||||
#define R7 LCD_REG_7
|
||||
#define R8 LCD_REG_8
|
||||
#define R9 LCD_REG_9
|
||||
#define R10 LCD_REG_10
|
||||
#define R12 LCD_REG_12
|
||||
#define R13 LCD_REG_13
|
||||
#define R14 LCD_REG_14
|
||||
#define R15 LCD_REG_15
|
||||
#define R16 LCD_REG_16
|
||||
#define R17 LCD_REG_17
|
||||
#define R18 LCD_REG_18
|
||||
#define R19 LCD_REG_19
|
||||
#define R20 LCD_REG_20
|
||||
#define R21 LCD_REG_21
|
||||
#define R22 LCD_REG_22
|
||||
#define R23 LCD_REG_23
|
||||
#define R24 LCD_REG_24
|
||||
#define R25 LCD_REG_25
|
||||
#define R26 LCD_REG_26
|
||||
#define R27 LCD_REG_27
|
||||
#define R28 LCD_REG_28
|
||||
#define R29 LCD_REG_29
|
||||
#define R30 LCD_REG_30
|
||||
#define R31 LCD_REG_31
|
||||
#define R32 LCD_REG_32
|
||||
#define R33 LCD_REG_33
|
||||
#define R34 LCD_REG_34
|
||||
#define R36 LCD_REG_36
|
||||
#define R37 LCD_REG_37
|
||||
#define R40 LCD_REG_40
|
||||
#define R41 LCD_REG_41
|
||||
#define R43 LCD_REG_43
|
||||
#define R45 LCD_REG_45
|
||||
#define R48 LCD_REG_48
|
||||
#define R49 LCD_REG_49
|
||||
#define R50 LCD_REG_50
|
||||
#define R51 LCD_REG_51
|
||||
#define R52 LCD_REG_52
|
||||
#define R53 LCD_REG_53
|
||||
#define R54 LCD_REG_54
|
||||
#define R55 LCD_REG_55
|
||||
#define R56 LCD_REG_56
|
||||
#define R57 LCD_REG_57
|
||||
#define R59 LCD_REG_59
|
||||
#define R60 LCD_REG_60
|
||||
#define R61 LCD_REG_61
|
||||
#define R62 LCD_REG_62
|
||||
#define R63 LCD_REG_63
|
||||
#define R64 LCD_REG_64
|
||||
#define R65 LCD_REG_65
|
||||
#define R66 LCD_REG_66
|
||||
#define R67 LCD_REG_67
|
||||
#define R68 LCD_REG_68
|
||||
#define R69 LCD_REG_69
|
||||
#define R70 LCD_REG_70
|
||||
#define R71 LCD_REG_71
|
||||
#define R72 LCD_REG_72
|
||||
#define R73 LCD_REG_73
|
||||
#define R74 LCD_REG_74
|
||||
#define R75 LCD_REG_75
|
||||
#define R76 LCD_REG_76
|
||||
#define R77 LCD_REG_77
|
||||
#define R78 LCD_REG_78
|
||||
#define R79 LCD_REG_79
|
||||
#define R80 LCD_REG_80
|
||||
#define R81 LCD_REG_81
|
||||
#define R82 LCD_REG_82
|
||||
#define R83 LCD_REG_83
|
||||
#define R96 LCD_REG_96
|
||||
#define R97 LCD_REG_97
|
||||
#define R106 LCD_REG_106
|
||||
#define R118 LCD_REG_118
|
||||
#define R128 LCD_REG_128
|
||||
#define R129 LCD_REG_129
|
||||
#define R130 LCD_REG_130
|
||||
#define R131 LCD_REG_131
|
||||
#define R132 LCD_REG_132
|
||||
#define R133 LCD_REG_133
|
||||
#define R134 LCD_REG_134
|
||||
#define R135 LCD_REG_135
|
||||
#define R136 LCD_REG_136
|
||||
#define R137 LCD_REG_137
|
||||
#define R139 LCD_REG_139
|
||||
#define R140 LCD_REG_140
|
||||
#define R141 LCD_REG_141
|
||||
#define R143 LCD_REG_143
|
||||
#define R144 LCD_REG_144
|
||||
#define R145 LCD_REG_145
|
||||
#define R146 LCD_REG_146
|
||||
#define R147 LCD_REG_147
|
||||
#define R148 LCD_REG_148
|
||||
#define R149 LCD_REG_149
|
||||
#define R150 LCD_REG_150
|
||||
#define R151 LCD_REG_151
|
||||
#define R152 LCD_REG_152
|
||||
#define R153 LCD_REG_153
|
||||
#define R154 LCD_REG_154
|
||||
#define R157 LCD_REG_157
|
||||
#define R192 LCD_REG_192
|
||||
#define R193 LCD_REG_193
|
||||
#define R227 LCD_REG_227
|
||||
#define R229 LCD_REG_229
|
||||
#define R231 LCD_REG_231
|
||||
#define R239 LCD_REG_239
|
||||
#define White LCD_COLOR_WHITE
|
||||
#define Black LCD_COLOR_BLACK
|
||||
#define Grey LCD_COLOR_GREY
|
||||
#define Blue LCD_COLOR_BLUE
|
||||
#define Blue2 LCD_COLOR_BLUE2
|
||||
#define Red LCD_COLOR_RED
|
||||
#define Magenta LCD_COLOR_MAGENTA
|
||||
#define Green LCD_COLOR_GREEN
|
||||
#define Cyan LCD_COLOR_CYAN
|
||||
#define Yellow LCD_COLOR_YELLOW
|
||||
#define Line0 LCD_LINE_0
|
||||
#define Line1 LCD_LINE_1
|
||||
#define Line2 LCD_LINE_2
|
||||
#define Line3 LCD_LINE_3
|
||||
#define Line4 LCD_LINE_4
|
||||
#define Line5 LCD_LINE_5
|
||||
#define Line6 LCD_LINE_6
|
||||
#define Line7 LCD_LINE_7
|
||||
#define Line8 LCD_LINE_8
|
||||
#define Line9 LCD_LINE_9
|
||||
#define Horizontal LCD_DIR_HORIZONTAL
|
||||
#define Vertical LCD_DIR_VERTICAL
|
||||
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
/* Exported functions --------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __STM32_EVAL_LEGACY_H */
|
||||
|
||||
/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
|
|
@ -0,0 +1,78 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file stm32f0xx_conf.h
|
||||
* @author MCD Application Team
|
||||
* @version V1.0.0RC1
|
||||
* @date 27-January-2012
|
||||
* @brief Library configuration file.
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
||||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
||||
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
||||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
||||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
||||
*
|
||||
* FOR MORE INFORMATION PLEASE READ CAREFULLY THE LICENSE AGREEMENT FILE
|
||||
* LOCATED IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.
|
||||
*
|
||||
* <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __STM32F0XX_CONF_H
|
||||
#define __STM32F0XX_CONF_H
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
/* Comment the line below to disable peripheral header file inclusion */
|
||||
#include "stm32f0xx_adc.h"
|
||||
#include "stm32f0xx_cec.h"
|
||||
#include "stm32f0xx_crc.h"
|
||||
#include "stm32f0xx_comp.h"
|
||||
#include "stm32f0xx_dac.h"
|
||||
#include "stm32f0xx_dbgmcu.h"
|
||||
#include "stm32f0xx_dma.h"
|
||||
#include "stm32f0xx_exti.h"
|
||||
#include "stm32f0xx_flash.h"
|
||||
#include "stm32f0xx_gpio.h"
|
||||
#include "stm32f0xx_syscfg.h"
|
||||
#include "stm32f0xx_i2c.h"
|
||||
#include "stm32f0xx_iwdg.h"
|
||||
#include "stm32f0xx_pwr.h"
|
||||
#include "stm32f0xx_rcc.h"
|
||||
#include "stm32f0xx_rtc.h"
|
||||
#include "stm32f0xx_spi.h"
|
||||
#include "stm32f0xx_tim.h"
|
||||
#include "stm32f0xx_usart.h"
|
||||
#include "stm32f0xx_wwdg.h"
|
||||
#include "stm32f0xx_misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/* Uncomment the line below to expanse the "assert_param" macro in the
|
||||
Standard Peripheral Library drivers code */
|
||||
/* #define USE_FULL_ASSERT 1 */
|
||||
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
#ifdef USE_FULL_ASSERT
|
||||
|
||||
/**
|
||||
* @brief The assert_param macro is used for function's parameters check.
|
||||
* @param expr: If expr is false, it calls assert_failed function which reports
|
||||
* the name of the source file and the source line number of the call
|
||||
* that failed. If expr is true, it returns no value.
|
||||
* @retval None
|
||||
*/
|
||||
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
|
||||
/* Exported functions ------------------------------------------------------- */
|
||||
void assert_failed(uint8_t* file, uint32_t line);
|
||||
#else
|
||||
#define assert_param(expr) ((void)0)
|
||||
#endif /* USE_FULL_ASSERT */
|
||||
|
||||
#endif /* __STM32F0XX_CONF_H */
|
||||
|
||||
/******************* (C) COPYRIGHT 2012 STMicroelectronics *****END OF FILE****/
|
Loading…
Add table
Add a link
Reference in a new issue