/* 更新字库 */
void uart_FontLib(void)
{
uint8_t temp = 0;
if(check_flash()!=ERR_FLASH_NOFOUND)
{
uart_ms=0;
SPI_Flash_ChipErase();
Board_UART_Init ( LPC_USART0, 115200, &UART0arg );
Board_UART_SetRxBuff ( LPC_USART0, rx0buff, sizeof(rx0buff) );
GUI_PutStrEx(2,120,(uint8_t *)"2.Send font lib files in 5S.",16);
RxCount=0;
while(uart_ms<=5000);
Board_UART_Disable( LPC_USART0, 115200, &UART0arg );
uart_ms=0;
//更新标记
temp=FLASH_UPDATA;
SPI_Flash_Write(FLASH_FONTLIB_FLAG,&temp,1);
}
}
|