2019-04-30 17:27:23 +01:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
* @file BSP/Inc/main.h
|
|
|
|
* @author MCD Application Team
|
|
|
|
* @brief Header for main.c module
|
|
|
|
******************************************************************************
|
|
|
|
* @attention
|
|
|
|
*
|
2021-03-03 14:55:52 +01:00
|
|
|
* <h2><center>© Copyright (c) 2017 STMicroelectronics.
|
|
|
|
* All rights reserved.</center></h2>
|
2019-04-30 17:27:23 +01:00
|
|
|
*
|
2021-03-03 14:55:52 +01:00
|
|
|
* 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
|
2019-04-30 17:27:23 +01:00
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
|
|
#ifndef __MAIN_H
|
|
|
|
#define __MAIN_H
|
|
|
|
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
|
|
#include "stdio.h"
|
|
|
|
#include "stm324xg_eval.h"
|
|
|
|
#include "stm324xg_eval_ts.h"
|
|
|
|
#include "stm324xg_eval_io.h"
|
|
|
|
#include "stm324xg_eval_lcd.h"
|
|
|
|
#include "stm324xg_eval_sd.h"
|
|
|
|
#include "stm324xg_eval_eeprom.h"
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
void (*DemoFunc)(void);
|
|
|
|
uint8_t DemoName[50];
|
|
|
|
uint32_t DemoIndex;
|
|
|
|
}BSP_DemoTypedef;
|
|
|
|
|
|
|
|
extern const unsigned char stlogo[];
|
|
|
|
/* Exported constants --------------------------------------------------------*/
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#define COUNT_OF_EXAMPLE(x) (sizeof(x)/sizeof(BSP_DemoTypedef))
|
|
|
|
/* Exported functions ------------------------------------------------------- */
|
|
|
|
void Joystick_demo(void);
|
|
|
|
void Touchscreen_demo(void);
|
|
|
|
void LCD_demo(void);
|
|
|
|
void SD_demo(void);
|
|
|
|
void Log_demo(void);
|
|
|
|
void EEPROM_demo(void);
|
|
|
|
void Touchscreen_Calibration(void);
|
|
|
|
uint16_t Calibration_GetX(uint16_t x);
|
|
|
|
uint16_t Calibration_GetY(uint16_t y);
|
|
|
|
uint8_t IsCalibrationDone(void);
|
|
|
|
uint8_t CheckForUserInput(void);
|
|
|
|
void Toggle_Leds(void);
|
|
|
|
|
|
|
|
#endif /* __MAIN_H */
|
|
|
|
|
|
|
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|