با سلام من این برنامه زیر را نوشتم برای تست!
/* Automatic Code Generator For N96 LCD
Version : beta
www.ECA.ir
2011/8/10 21:5
Platform : ARM
Microcontroller : AT91SAM7S64
Data PORT : PORTA
Data PORT Offset: 15
Control PORT : PORTA
RS PIN : 17
WR PIN : 19
RD PIN : 20
CS PIN : 18
RST PIN: 16
*/
#include <AT91SAM7S64.H>
#define TFTLCD_DATAPORT_A
#define TFTLCD_DATAPORT_OFFSET 15
#define TFTLCD_CONTROLPORT_A
#define TFTLCD_RS 17
#define TFTLCD_WR 19
#define TFTLCD_RD 20
#define TFTLCD_CS 18
#define TFTLCD_RST 16
#include <delay.h>
#define PORTRAIT
#include <tftlcd_functions.c>
#include <tftlcd_functions.h>
#include "images.h"
int main (void)
{
tftlcd_init();
tftlcd_write_pic(0, 0, image1);
while(1);
}
ولی ارور های زیر را میده!!!
Build target 'Target 1'
compiling tftlcd_functions.c...
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(131 ): error: #20: identifier "_TFTLCD_CONTROLPORT_CODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(131 ): error: #20: identifier "TFTLCD_RS" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(132 ): error: #20: identifier "_TFTLCD_DATAPORT_CODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(132 ): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(133 ): error: #20: identifier "_TFTLCD_DATAPORT_SODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(134 ): error: #20: identifier "TFTLCD_CS" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(135 ): error: #20: identifier "_TFTLCD_CONTROLPORT_SODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(145 ): error: #20: identifier "_TFTLCD_DATAPORT_SODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(145 ): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(146 ): error: #20: identifier "_TFTLCD_CONTROLPORT_CODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(146 ): error: #20: identifier "TFTLCD_CS" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(147 ): error: #20: identifier "_TFTLCD_CONTROLPORT_SODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(156 ): error: #20: identifier "_TFTLCD_DATAPORT_ODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(156 ): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(157 ): error: #20: identifier "_TFTLCD_CONTROLPORT_CODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(157 ): error: #20: identifier "TFTLCD_RD" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(158 ): error: #20: identifier "_TFTLCD_CONTROLPORT_SODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(158 ): error: #20: identifier "TFTLCD_WR" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(159 ): error: #20: identifier "TFTLCD_CS" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(160 ): error: #20: identifier "_TFTLCD_DATAPORT_PDSR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(164 ): error: #20: identifier "_TFTLCD_DATAPORT_OER_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(268 ): error: #20: identifier "AT91C_PMC_PCER" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(268 ): error: #20: identifier "_TFTLCD_DATAPORT_ID_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(268 ): error: #20: identifier "_TFTLCD_CONTROLPORT_ID_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(269 ): error: #20: identifier "_TFTLCD_DATAPORT_PER_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(269 ): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(270 ): error: #20: identifier "_TFTLCD_DATAPORT_OER_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(271 ): error: #20: identifier "_TFTLCD_DATAPORT_PUER_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(272 ): error: #20: identifier "_TFTLCD_CONTROLPORT_PER_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(272 ): error: #20: identifier "TFTLCD_RST" is undefined
Target not created
من تقریبا میشه گفت در ارم تازه کارم میشه کمکم کنید ممنون میشم!!1 :cry2: :cry: :angry:
/* Automatic Code Generator For N96 LCD
Version : beta
www.ECA.ir
2011/8/10 21:5
Platform : ARM
Microcontroller : AT91SAM7S64
Data PORT : PORTA
Data PORT Offset: 15
Control PORT : PORTA
RS PIN : 17
WR PIN : 19
RD PIN : 20
CS PIN : 18
RST PIN: 16
*/
#include <AT91SAM7S64.H>
#define TFTLCD_DATAPORT_A
#define TFTLCD_DATAPORT_OFFSET 15
#define TFTLCD_CONTROLPORT_A
#define TFTLCD_RS 17
#define TFTLCD_WR 19
#define TFTLCD_RD 20
#define TFTLCD_CS 18
#define TFTLCD_RST 16
#include <delay.h>
#define PORTRAIT
#include <tftlcd_functions.c>
#include <tftlcd_functions.h>
#include "images.h"
int main (void)
{
tftlcd_init();
tftlcd_write_pic(0, 0, image1);
while(1);
}
ولی ارور های زیر را میده!!!
Build target 'Target 1'
compiling tftlcd_functions.c...
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(131 ): error: #20: identifier "_TFTLCD_CONTROLPORT_CODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(131 ): error: #20: identifier "TFTLCD_RS" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(132 ): error: #20: identifier "_TFTLCD_DATAPORT_CODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(132 ): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(133 ): error: #20: identifier "_TFTLCD_DATAPORT_SODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(134 ): error: #20: identifier "TFTLCD_CS" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(135 ): error: #20: identifier "_TFTLCD_CONTROLPORT_SODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(145 ): error: #20: identifier "_TFTLCD_DATAPORT_SODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(145 ): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(146 ): error: #20: identifier "_TFTLCD_CONTROLPORT_CODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(146 ): error: #20: identifier "TFTLCD_CS" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(147 ): error: #20: identifier "_TFTLCD_CONTROLPORT_SODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(156 ): error: #20: identifier "_TFTLCD_DATAPORT_ODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(156 ): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(157 ): error: #20: identifier "_TFTLCD_CONTROLPORT_CODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(157 ): error: #20: identifier "TFTLCD_RD" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(158 ): error: #20: identifier "_TFTLCD_CONTROLPORT_SODR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(158 ): error: #20: identifier "TFTLCD_WR" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(159 ): error: #20: identifier "TFTLCD_CS" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(160 ): error: #20: identifier "_TFTLCD_DATAPORT_PDSR_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(164 ): error: #20: identifier "_TFTLCD_DATAPORT_OER_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(268 ): error: #20: identifier "AT91C_PMC_PCER" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(268 ): error: #20: identifier "_TFTLCD_DATAPORT_ID_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(268 ): error: #20: identifier "_TFTLCD_CONTROLPORT_ID_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(269 ): error: #20: identifier "_TFTLCD_DATAPORT_PER_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(269 ): error: #20: identifier "TFTLCD_DATAPORT_OFFSET" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(270 ): error: #20: identifier "_TFTLCD_DATAPORT_OER_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(271 ): error: #20: identifier "_TFTLCD_DATAPORT_PUER_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(272 ): error: #20: identifier "_TFTLCD_CONTROLPORT_PER_" is undefined
C:\Keil\ARM\INC\Atmel\SAM7S\tftlcd_functions.c(272 ): error: #20: identifier "TFTLCD_RST" is undefined
Target not created
من تقریبا میشه گفت در ارم تازه کارم میشه کمکم کنید ممنون میشم!!1 :cry2: :cry: :angry:
دیدگاه