85 lines
2.4 KiB
C
85 lines
2.4 KiB
C
/*********************************************************************************************************
|
|
*
|
|
* File : main.c
|
|
* Hardware Environment:
|
|
* Build Environment : RealView MDK-ARM Version: 4.20
|
|
* Version : V1.0
|
|
* By :
|
|
*
|
|
* (c) Copyright 2005-2011, WaveShare
|
|
* http://www.waveshare.net
|
|
* All Rights Reserved
|
|
*
|
|
*********************************************************************************************************/
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "stm32f4xx.h"
|
|
#include "LCD/LCD.h"
|
|
#include <stdio.h>
|
|
|
|
/*******************************************************************************
|
|
* Function Name : Delay
|
|
* Description : Delay Time
|
|
* Input : - nCount: Delay Time
|
|
* Output : None
|
|
* Return : None
|
|
* Attention : None
|
|
*******************************************************************************/
|
|
void Delay (uint32_t nCount)
|
|
{
|
|
for(; nCount != 0; nCount--);
|
|
}
|
|
|
|
|
|
/*******************************************************************************
|
|
* Function Name : main
|
|
* Description : Main program
|
|
* Input : None
|
|
* Output : None
|
|
* Return : None
|
|
* Attention : None
|
|
*******************************************************************************/
|
|
int main(void)
|
|
{
|
|
|
|
LCD_Initializtion();
|
|
|
|
/* Infinite loop */
|
|
while (1)
|
|
{
|
|
LCD_Clear(Red);
|
|
GUI_Text(132,104,"Open407I",White,Red);
|
|
Delay(0x1ffffff);
|
|
|
|
LCD_Clear(Red);
|
|
GUI_Text(76,120,"Development Board V1.0",White,Red);
|
|
Delay(0x1ffffff);
|
|
}
|
|
}
|
|
|
|
#ifdef USE_FULL_ASSERT
|
|
|
|
/**
|
|
* @brief Reports the name of the source file and the source line number
|
|
* where the assert_param error has occurred.
|
|
* @param file: pointer to the source file name
|
|
* @param line: assert_param error line source number
|
|
* @retval None
|
|
*/
|
|
void assert_failed(uint8_t* file, uint32_t line)
|
|
{
|
|
/* User can add his own implementation to report the file name and line number,
|
|
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
|
|
|
|
/* Infinite loop */
|
|
while (1)
|
|
{
|
|
}
|
|
}
|
|
#endif
|
|
|
|
/*********************************************************************************************************
|
|
END FILE
|
|
*********************************************************************************************************/
|
|
|