Hello!
I also tried to draw a simple line with the eGUI, but I got into lots of expression syntax error and messages about identifier 'D4D_MoveToXY(unsigned short, unsigned short) was originally declared as '__regabi void (unsigned short, unsigned short)'.
This is part of my screen_hello_world.c :
#include "main.h"
#include "pictures.h"
#include "d4d.h"
D4D_COOR ax = 150, ay = 200;
D4D_COOR bx = 300, by = 400;
D4D_COLOR clr = D4D_COLOR_RED;
// Declaration of example Label
D4D_DECLARE_STD_LABEL_AUTOSIZE(lbl_HelloWorld, "Hello World", 70, 50, FONT_8x14_BIG)
// mutam logical cursor
D4D_MoveToXY( ax, ay );
// desenam linia - de la logical cursor la ppt (pointer to point)
D4D_LineToXY( bx, by, D4D_LINE_THICK, clr);
// Standard screen declaration with 3 objects
//D4D_DECLARE_STD_SCREEN_BEGIN(screen_HelloWorld, ScreenHelloWorld_)
D4D_DECLARE_SCREEN_BEGIN(screen_HelloWorld, ScreenHelloWorld_, 0, 0, 319, 239, "MyHelloWorld", FONT_8x14_BIG, NULL, D4D_SCR_F_BCKG | D4D_SCR_F_TITLEBAR, NULL)
D4D_DECLARE_SCREEN_OBJECT(lbl_HelloWorld)
D4D_DECLARE_SCREEN_END()
and these are the first errors appeared in Console ( I didn't paste the hole output as there are many "syntax error"s after these ones
C:/Freescale/CW_MCU_v10.2/MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(D:\CWWorkspace\JM128EGUI\App\screen_hello_world.c|29|22|1|684|1)
=D4D_MoveToXY( ax, ay );
>identifier 'D4D_MoveToXY(unsigned short, unsigned short)' redeclared as
>'__regabi int (...)'
(D:\CWWorkspace\JM128EGUI\Freescale_Embedded_Gui\common_files\d4d.h|152|41|1|5638|1)
=void D4D_MoveToXY(D4D_COOR x, D4D_COOR y);
>identifier 'D4D_MoveToXY(unsigned short, unsigned short)' was originally
>declared as '__regabi void (unsigned short, unsigned short)'
(D:\CWWorkspace\JM128EGUI\App\screen_hello_world.c|36|1|6|920|24)
= extern const D4D_OBJECT * const screen_HelloWorld_objects[]; static vo
>expression syntax error
C:/Freescale/CW_MCU_v10.2/MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error
(D:\CWWorkspace\JM128EGUI\App\screen_hello_world.c|36|32|6|920|24)
=st screen_HelloWorld_objects[]; static void ScreenHelloWorld_OnInit(); static void ScreenHelloWorld_On
>expression syntax error
If you could help me understand, it would be great!
Thanks,
Simona