资源简介
此例程实现通过U盘升级STM32的程序(IAP),所有USB芯片为CH376,内附参考电路图及源程序。欢迎下载。
代码片段和文件信息
/*----------------------------------------------------------------------------
* 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程序\APP\CH376.plg
文件 21 2009-12-19 15:17 U盘更新STM32程序\APP\CH376.txt
文件 141398 2015-11-02 23:34 U盘更新STM32程序\APP\CH376.uvgui.suojinyu
文件 23815 2015-10-30 16:57 U盘更新STM32程序\APP\CH376.uvopt
文件 22109 2015-10-30 17:47 U盘更新STM32程序\APP\CH376.uvproj
文件 594533 2009-12-11 16:28 U盘更新STM32程序\APP\CH376EVT.ZIP
文件 65323 2009-12-19 15:36 U盘更新STM32程序\APP\CH376_CH376.dep
文件 5233 2009-12-19 15:26 U盘更新STM32程序\APP\CH376_Opt.Bak
文件 72 2009-12-19 10:22 U盘更新STM32程序\APP\CH376_Target 1.dep
文件 5015 2009-12-19 12:01 U盘更新STM32程序\APP\CH376_Uv2.Bak
文件 4079 2015-11-02 23:34 U盘更新STM32程序\APP\Jli
文件 671 2015-10-30 10:27 U盘更新STM32程序\APP\Jli
目录 0 2015-10-30 15:38 U盘更新STM32程序\APP\Lis\
目录 0 2015-11-02 23:30 U盘更新STM32程序\APP\List\
文件 85056 2015-11-02 23:31 U盘更新STM32程序\APP\List\CH376.map
文件 59654 2015-10-30 15:25 U盘更新STM32程序\APP\List\startup_stm32f10x_hd.lst
目录 0 2015-11-02 23:31 U盘更新STM32程序\APP\Obj\
文件 571192 2015-11-02 23:31 U盘更新STM32程序\APP\Obj\CH376.axf
文件 11776 2015-11-02 23:31 U盘更新STM32程序\APP\Obj\CH376.bin
文件 1859 2015-11-02 23:31 U盘更新STM32程序\APP\Obj\CH376.build_log.htm
文件 329492 2015-10-30 15:25 U盘更新STM32程序\APP\Obj\ch376.crf
文件 1939 2015-10-30 15:25 U盘更新STM32程序\APP\Obj\ch376.d
文件 12093 2015-11-02 11:30 U盘更新STM32程序\APP\Obj\CH376.dfu
文件 33171 2015-11-02 23:31 U盘更新STM32程序\APP\Obj\CH376.hex
文件 93541 2015-11-02 23:31 U盘更新STM32程序\APP\Obj\CH376.htm
文件 988 2015-11-02 23:31 U盘更新STM32程序\APP\Obj\CH376.lnp
文件 353724 2015-10-30 15:25 U盘更新STM32程序\APP\Obj\ch376.o
文件 479 2015-10-31 12:17 U盘更新STM32程序\APP\Obj\CH376.sct
文件 68347 2015-11-02 23:31 U盘更新STM32程序\APP\Obj\CH376_CH376.dep
............此处省略526个文件信息
相关资源
- 基于STM32F407的web服务器,可进行设备
- STM32F103C8T6 CAN总线 RS485 RS232 源代码
- 摄像头寻迹+stm32平衡车
- 自动识别U盘,批量复制文件夹到多个
- STM32F407+USB_HS
- STM32F4系列参考手册中文版
- STM32-ARM-实验-1-LED流水灯
- STM32源代码大全
- 两块STM32开发板--i2c主从模式
- stm32开发的GPS定位系统
- stm32f103_最小系统PCB&原理图
- 基于STM32F407的大棚种植远程监控系统
- STM32F103移植GRBL用于控制DIY雕刻机
- stm32F429的ADC采样的傅里叶变换
- STM32H743以太网通信TCP客户端实现IAR
- stm32f407网络通讯工程 Freertos+lwip的t
- STM32F103下用W5500模块的裸机TCP、UDP和基
- STM32F407+LAN8720+LWIP移植freemodbus TCP.zip
- STM32高级应用系列教程-常用电机控制
- STM32F412使用TIM1输出互补的PWM
- SM3257ENLT U盘修改,量产工作
- stm32f107在rt-thread上实现1588协议 ptpv2
- STM32 OV2640 机器视觉 图像处理 滚球系
- stm32F4最小系统板资料
- stm32F40自带继电器原理图
- stm32f0_mx25l64.zip
- STM32中文参考手册_V10
- STM32L476参考手册和数据手册
- 基于Ymodem的STM32F4串口IAP
- 001 STM32参考手册(中文)_V10
评论
共有 条评论