⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dev.h

📁 做的是LCD液晶显示实验
💻 H
字号:
/*  Generated 6/2/04 10:17 PM By FastChip Version 3.0 Build 040305-1035  */

/*****************************************************************************
**
**  ----------------------------------
**  ------   GENERATED CODE   --------
**  ----------------------------------
**  The code in this file was generated automatically for your
**  project by Triscend FastChip. Please DO NOT EDIT this file.
**  It will be overwritten the next time FastChip generates code
**  for your project.
**
******************************************************************************
*/

#define USE_PROJECT_FILE_MACRO


/* ========= CSoC Register Declaration ====== */

/* You must add <FastChip installation>\include */
/* directory to your compiler's include search path */
/* for the next include statement to work. */

#include <triscend_a7.h>

/* ============= BEGIN ACCESS MACRO DEFINITION ============ */

#define TWORD(x) \
(*(volatile unsigned int *)(x))

#define TWORD_ARRAY(x, index) \
 (((volatile unsigned int *)(x))[index])

#define TSHORT(x) \
(*(volatile unsigned short *)(x))

#define TSHORT_ARRAY(x, index) \
 (((volatile unsigned short *)(x))[index])

#define TBYTE(x)  \
(*(volatile unsigned char *)(x))

#define TBYTE_ARRAY(x, index) \
 (((volatile unsigned char *)(x))[index])

/* ============== END ACCESS MACRO DEFINITION ============= */

/* ========== BEGIN SOFT MODULE REGISTER DEFINITION ======= */
/* =  You can use the following register definition       = */
/* =  with the access macros defined above.  You can      = */
/* =  also type cast the register definition yourself     = */
/* =    eg. to access a 4 bytes register 'MyReg'          = */
/* =        as unsigned int -> TWORD(MyReg)=102;          = */
/* =        as string -> sprintf((char *)MyReg, "abc"); = */
/* ======================================================== */

#define DMATFTLCD 0x100ffff8 /* size in byte(s) = 4, lane = LANEBA */
#define LCDDATA 0x100fffec /* size in byte(s) = 4, lane = LANEW */
#define SEVEN_SEG_LED_REG 0x100ffffc /* size in byte(s) = 1, lane = LANEB0 */
#define keycontrol 0x100ffff4 /* size in byte(s) = 1, lane = LANEB0 */
#define keystatus 0x100ffff0 /* size in byte(s) = 1, lane = LANEB0 */
#define m_seqcmd 0x100fffe8 /* size in byte(s) = 1, lane = LANEB0 */

/* ========== END SOFT MODULE REGISTER DEFINITION ======= */

#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -