#ifndef __GUI_H
#define __GUI_H
#include "stm32f10x.h"
#include "lcd_driver.h"
/* ±àòëÑ¡Ôñ */
//#define USE_FONT_UPDATE //ê1óÃ×Ö¿a¸üDÂoˉêy
//#define USE_FLASH_CHAR //ê1óÃFLASH×Ö¿a
/* ×Ö¿aÎļtμØÖ· */
#define GUI_ASCII_FILE "Ïμí3/FONT/ASCII£¨8X16£©.DZK"
#define GUI_12CHAR_FILE "Ïμí3/FONT/12oÅ×Öì壨16X16£©.DZK"
#define GUI_16CHAR_FILE "Ïμí3/FONT/16oÅ×Öì壨24X21£©.DZK"
/* éèÖÃ×Ö¿aμØÖ· */
#define GUI_FLASH_ASCII_ADDR 6112846 //ASCII×Ö¿aê×μØÖ·£¨6114304 - 1456 - 2£©
#define GUI_FLASH_12CHAR_ADDR 6114304 //12oÅ×Ö¿aê×μØÖ·£¨6880386 - 766080 - 2£©
#define GUI_FLASH_16CHAR_ADDR 6880386 //16oÅ×Ö¿aê×μØÖ·£¨8388608 - 1508220 - 2£©
/* ¸üDÂ×Ö¿aÑ¡ÔñÏî */
#define GUI_UPDATE_ASCII 0x01
#define GUI_UPDATE_12CHAR 0x02
#define GUI_UPDATE_16CHAR 0x04
#define GUI_UPDATE_ALL 0x07
/* éùÃ÷諾ֱäá¿ */
void GUI_Dot(uint16_t x, uint16_t y, uint16_t color);
void GUI_BigPoint(uint16_t x, uint16_t y, uint16_t color);
void GUI_Box(uint16_t xState, uint16_t yState, uint16_t xEnd, uint16_t yEnd, uint16_t color);
void GUI_DrowSign(uint16_t x, uint16_t y, uint16_t color);
void GUI_FontUpdate(uint8_t updateState);
void GUI_Show12ASCII(uint16_t x, uint16_t y, uint8_t *p,
uint16_t wordColor, uint16_t backColor);
void GUI_Show12Char(uint16_t x, uint16_t y, uint8_t *ch,
uint16_t wordColor, uint16_t backColor);
void GUI_Show16Chinese(uint16_t x, uint16_t y, uint8_t *cn,
uint16_t wordColor, uint16_t backColor);
#endif
这三个void GUI_Show12ASCII(uint16_t x, uint16_t y, uint8_t *p,
uint16_t wordColor, uint16_t backColor);
void GUI_Show12Char(uint16_t x, uint16_t y, uint8_t *ch,
uint16_t wordColor, uint16_t backColor);
void GUI_Show16Chinese(uint16_t x, uint16_t y, uint8_t *cn,
uint16_t wordColor, uint16_t backColor);都一样定义了为什么在主函数中调用下面两个就出错啊
.Objproject.axf: Error: L6218E: Undefined symbol GUI_Show16Chinese (referred from main.o).
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
楼主有在选项中包含该头文件的路径了吗
一周热门 更多>