Search found 8 matches

by nupagachi85
Mon Feb 04, 2013 9:56 am
Forum: General Support
Topic: send data between 2 threads
Replies: 13
Views: 13158

Re: send data between 2 threads

thanks for reply.
My app have a data like that. It is a struct. I don't find any example show me do that. I just a Newbie with chibios.
Do you help me a short code how to send and recieve it?

Thanks and best regards
by nupagachi85
Mon Feb 04, 2013 9:10 am
Forum: General Support
Topic: send data between 2 threads
Replies: 13
Views: 13158

Re: send data between 2 threads

Hi,

But when I using maibox : msg_t chMBPost(Mailbox *mbp, msg_t msg, systime_t time);
It just support send msg_t = int32_t, but I want send struct, how can I do?

Best regards
by nupagachi85
Mon Feb 04, 2013 8:52 am
Forum: General Support
Topic: send data between 2 threads
Replies: 13
Views: 13158

send data between 2 threads

Dear all,

Now I have 1 data like that:


typedef struct _MESSAGE
{
BYTE Type;
BYTE MsgId;
BYTE MsgIndex;
BYTE MsgSize;
} MESSAGE;

MESSAGE data;

How I send and recieve between 2 threads?

Thanks and best regards
by nupagachi85
Thu Dec 27, 2012 9:44 am
Forum: General Support
Topic: ext interrupt for stm8l
Replies: 3
Views: 4203

Re: ext interrupt for stm8l

Hi Giovanni,

Have you got any example for stm8? I can not find ext setting template.
1)How to active it?
2)My purpose is prevent noise from key.

I just want to setting a simple ext interrupt, but maybe I have 1 mistake in my code

regards
Thinh
by nupagachi85
Thu Dec 27, 2012 8:42 am
Forum: General Support
Topic: ext interrupt for stm8l
Replies: 3
Views: 4203

ext interrupt for stm8l

Dear,

I make interrupt for Pin PE0, but when I press key and keep it low, the interrupt alway happens.
Here is my code:
/*main.c*/
static msg_t Thread1(void *arg) {
(void)arg;
chRegSetThreadName("blinker");
while (TRUE) {
palSetPad(GPIOA, 5);
chThdSleepMilliseconds(500);
palClearPad ...
by nupagachi85
Tue Sep 25, 2012 8:42 am
Forum: General Support
Topic: iar for stm8
Replies: 4
Views: 3892

Re: iar for stm8

Thanks Giovanni, wait good news from you.
by nupagachi85
Tue Sep 25, 2012 7:15 am
Forum: General Support
Topic: iar for stm8
Replies: 4
Views: 3892

Re: iar for stm8

Hi Giovanni,

I am using iar V1.3. Before, I used cosmic compiler, but now cosmit unlimited to 8k, so I want to change to iar.

Thanks
Thinh
by nupagachi85
Tue Sep 25, 2012 5:02 am
Forum: General Support
Topic: iar for stm8
Replies: 4
Views: 3892

iar for stm8

Hi all,

Does everybody have examples chibios base on IAR of stm8?

Thanks and best regards
Thinh