Tuesday, September 7th 2010, 6:52pm UTC+2

You are not logged in.

  • Login
  • Register

Raffa

Beginner

Date of registration: Mar 9th 2009

Posts: 9

1

Thursday, February 4th 2010, 4:12pm

emWin with KeilOS

Hi,

I am running the emWin in a Multitasking system and it is working well. But there is one Problem. In the User Manual is a discription of GUI_X_WAIT_EVENT and GUI_X_SIGNAL_EVENT. I defined the Macros with the folloing code:

static OS_TID os_evt_id;

void GUI_X_WaitEvent(void)
{
os_evt_id = os_tsk_self();
os_evt_wait_or(1,0xFFF0);
}
void GUI_X_SignalEvent(void)
{
if (os_evt_id)
{
os_evt_set(1, os_evt_id);
}
}


While the SignalEven funktion ist called automatic within the emWin, the wait funktion isn't.
Should I call the wait funktion by my self? I don't realy understand the use of the Macros.

SEGGER - Til

Super Moderator

Date of registration: Nov 14th 2007

Posts: 81

2

Friday, February 5th 2010, 9:44am

Hi Raffa,

no, you just have to implement these functions and nothing more.
emWin itsself will call these functions. Pleae be aware that you have to configure emWin
for multitasking (but I guess you did it already).

Regards,
Til

Raffa

Beginner

Date of registration: Mar 9th 2009

Posts: 9

3

Friday, February 5th 2010, 10:42am

Hi, thanks for your quick answer.
The Problem is, I set a breakpoint in the wait funktion, but the System never enters it. why is that? I use a Touch for input.

FBerkel

Beginner

Date of registration: Feb 13th 2008

Posts: 2

4

Monday, February 22nd 2010, 10:30am

Hi,

per default these functions are not used. As you can see in the documentation in chapter '13.5 GUI configuration macros for multitasking support' the default behaviour is using the function GUI_X_ExecIdle(). You have to add the following lines to GUIConf.h:

#define GUI_X_WAIT_EVENT() GUI_X_WaitEvent()
#define GUI_X_SIGNAL_EVENT() GUI_X_SignalEvent()

After this the functions should be used.

Regards,

F.Berkel

Raffa

Beginner

Date of registration: Mar 9th 2009

Posts: 9

5

Thursday, February 25th 2010, 3:44pm

I know this, but my Debugger is telling me sth. different....