此例程实现通过U盘升级STM32的程序(IAP),所有USB芯片为CH376,内附参考电路图及源程序。欢迎下载。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-11-02 23:42 U盘更新STM32程序
目录 0 2015-11-02 23:34 U盘更新STM32程序APP
文件 167 2009-12-19 10:22 U盘更新STM32程序APPCH376.plg
文件 21 2009-12-19 15:17 U盘更新STM32程序APPCH376.txt
文件 141398 2015-11-02 23:34 U盘更新STM32程序APPCH376.uvgui.suojinyu
文件 23815 2015-10-30 16:57 U盘更新STM32程序APPCH376.uvopt
文件 22109 2015-10-30 17:47 U盘更新STM32程序APPCH376.uvproj
文件 594533 2009-12-11 16:28 U盘更新STM32程序APPCH376EVT.ZIP
文件 65323 2009-12-19 15:36 U盘更新STM32程序APPCH376_CH376.dep
文件 5233 2009-12-19 15:26 U盘更新STM32程序APPCH376_Opt.Bak
文件 72 2009-12-19 10:22 U盘更新STM32程序APPCH376_Target 1.dep
文件 5015 2009-12-19 12:01 U盘更新STM32程序APPCH376_Uv2.Bak
文件 4079 2015-11-02 23:34 U盘更新STM32程序APPJlinkLog.txt
文件 671 2015-10-30 10:27 U盘更新STM32程序APPJlinkSettings.ini
目录 0 2015-10-30 15:38 U盘更新STM32程序APPLis
目录 0 2015-11-02 23:30 U盘更新STM32程序APPList
文件 85056 2015-11-02 23:31 U盘更新STM32程序APPListCH376.map
文件 59654 2015-10-30 15:25 U盘更新STM32程序APPListstartup_stm32f10x_hd.lst
目录 0 2015-11-02 23:31 U盘更新STM32程序APPObj
文件 571192 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.axf
文件 11776 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.bin
文件 1859 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.build_log.htm
文件 329492 2015-10-30 15:25 U盘更新STM32程序APPObjch376.crf
文件 1939 2015-10-30 15:25 U盘更新STM32程序APPObjch376.d
文件 12093 2015-11-02 11:30 U盘更新STM32程序APPObjCH376.dfu
文件 33171 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.hex
文件 93541 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.htm
文件 988 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.lnp
文件 353724 2015-10-30 15:25 U盘更新STM32程序APPObjch376.o
文件 479 2015-10-31 12:17 U盘更新STM32程序APPObjCH376.sct
文件 68347 2015-11-02 23:31 U盘更新STM32程序APPObjCH376_CH376.dep
............此处省略526个文件信息
/*----------------------------------------------------------------------------
* Name: GLCD.c
* Purpose: MCBSTM32C low level Graphic LCD (320x240 pixels) functions
* Version: V1.00
* Note(s):
*----------------------------------------------------------------------------
* This file is part of the uVision/ARM development tools.
* This software may only be used under the terms of a valid current
* end user licence from KEIL for a compatible version of KEIL software
* development tools. Nothing else gives you the right to use this software.
*
* This software is supplied “AS IS“ without warranties of any kind.
*
* Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
*----------------------------------------------------------------------------
* History:
* V1.00 Initial Version
*----------------------------------------------------------------------------*/
#pragma diag_suppress=550
#include “stm32f10x.h“
#include “GLCD.h“
#include “font.h“
/* SPI_SR - bit definitions. */
#define RXNE 0x01
#define TXE 0x02
#define BSY 0x80
/*********************** Hardware specific configuration **********************/
/*------------------------- Speed dependant settings -------------------------*/
/* If processor works on high frequency delay has to be increased it can be
increased by factor 2^N by this constant */
#define DELAY_2N 18
/*---------------------- Graphic LCD size definitions ------------------------*/
#define WIDTH 320 /* Screen Width (in pixels) */
#define HEIGHT 240 /* Screen Hight (in pixels) */
#define BPP 16 /* Bits per pixel */
#define BYPP ((BPP+7)/8) /* Bytes per pixel */
/*--------------- Graphic LCD interface hardware definitions -----------------*/
#define SPI_START (0x70) /* Start byte for SPI transfer */
#define SPI_RD (0x01) /* WR bit 1 within start */
#define SPI_WR (0x00) /* WR bit 0 within start */
#define SPI_DATA (0x02) /* RS bit 1 within start byte */
#define SPI_INDEX (0x00) /* RS bit 0 within start byte */
/*---------------------------- Global variables ------------------------------*/
/******************************************************************************/
static volatile unsigned short TextColor = Black BackColor = White;
/************************ Local auxiliary functions ***************************/
/*******************************************************************************
* Delay in while loop cycles *
* Parameter: cnt: number of while cycles to delay *
* Return:
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-11-02 23:42 U盘更新STM32程序
目录 0 2015-11-02 23:34 U盘更新STM32程序APP
文件 167 2009-12-19 10:22 U盘更新STM32程序APPCH376.plg
文件 21 2009-12-19 15:17 U盘更新STM32程序APPCH376.txt
文件 141398 2015-11-02 23:34 U盘更新STM32程序APPCH376.uvgui.suojinyu
文件 23815 2015-10-30 16:57 U盘更新STM32程序APPCH376.uvopt
文件 22109 2015-10-30 17:47 U盘更新STM32程序APPCH376.uvproj
文件 594533 2009-12-11 16:28 U盘更新STM32程序APPCH376EVT.ZIP
文件 65323 2009-12-19 15:36 U盘更新STM32程序APPCH376_CH376.dep
文件 5233 2009-12-19 15:26 U盘更新STM32程序APPCH376_Opt.Bak
文件 72 2009-12-19 10:22 U盘更新STM32程序APPCH376_Target 1.dep
文件 5015 2009-12-19 12:01 U盘更新STM32程序APPCH376_Uv2.Bak
文件 4079 2015-11-02 23:34 U盘更新STM32程序APPJli
文件 671 2015-10-30 10:27 U盘更新STM32程序APPJli
目录 0 2015-10-30 15:38 U盘更新STM32程序APPLis
目录 0 2015-11-02 23:30 U盘更新STM32程序APPList
文件 85056 2015-11-02 23:31 U盘更新STM32程序APPListCH376.map
文件 59654 2015-10-30 15:25 U盘更新STM32程序APPListstartup_stm32f10x_hd.lst
目录 0 2015-11-02 23:31 U盘更新STM32程序APPObj
文件 571192 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.axf
文件 11776 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.bin
文件 1859 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.build_log.htm
文件 329492 2015-10-30 15:25 U盘更新STM32程序APPObjch376.crf
文件 1939 2015-10-30 15:25 U盘更新STM32程序APPObjch376.d
文件 12093 2015-11-02 11:30 U盘更新STM32程序APPObjCH376.dfu
文件 33171 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.hex
文件 93541 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.htm
文件 988 2015-11-02 23:31 U盘更新STM32程序APPObjCH376.lnp
文件 353724 2015-10-30 15:25 U盘更新STM32程序APPObjch376.o
文件 479 2015-10-31 12:17 U盘更新STM32程序APPObjCH376.sct
文件 68347 2015-11-02 23:31 U盘更新STM32程序APPObjCH376_CH376.dep
............此处省略526个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)