#include "common.h"
#include "ics.h"
#include "rtc.h"
#include "uart.h"
#include "gpio.h"
#include "sysinit.h"
#include "start.h"
#include "boot.h"
#include "flash.h"
int main (void);
void RTC_Task(void);
/********************************************************************/
int main (void)
{
/*系统初始化*/
sysinit();
Flash_Init();
uint8_t sectornum;
uint32_t i;
uint32_t *boot32;
uint32_t adr;
adr =0x400000;
for(i=0;i<10;i++)
{
Flash_EraseSector(adr+512*i);
}
boot32=(uint32_t *)boot;
for (i=0;i<boot_size/4;i++)
{
Flash_Program1LongWord(adr,*boot32);
boot32++;
adr+=4;
}
printf("\nRunning the GPIO_demo project.\n");
GPIO_Init(GPIOB, GPIO_PTE7_MASK, GPIO_PinOutput);
while (1);
}
/*****************************************************************************//*!
*
* [url=home.php?mod=space&uid=247401]@brief[/url] RTC回调函数
*
* @param none
*
* [url=home.php?mod=space&uid=266161]@return[/url] none
*
*****************************************************************************/
|