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
Search found 8 matches
- Mon Feb 04, 2013 9:56 am
- Forum: General Support
- Topic: send data between 2 threads
- Replies: 13
- Views: 13158
- 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
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
- 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
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
- 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
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
- 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 ...
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 ...
- 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.
- 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
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
- 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
Does everybody have examples chibios base on IAR of stm8?
Thanks and best regards
Thinh