Search found 417 matches

by mabl
Mon Feb 04, 2013 9:16 am
Forum: General Support
Topic: send data between 2 threads
Replies: 13
Views: 4901

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 Hi nupagachi85, msg_t is guaranteed to be large enough to contain a pointer. So what you typically do for mailboxes, is to ...
by mabl
Sun Feb 03, 2013 2:32 pm
Forum: Development and Feedback
Topic: The new C++ wrapper thread
Replies: 9
Views: 3099

Re: The new C++ wrapper thread

Ok, I'm beginning to use the wrapper for a new project and will make changes to it as I go. I'll post the patches here. One other thing. I think the foo(void) stuff should be changed to foo() only. This code is not going to be used as C code and both are the same in C++. See also http://stackoverflo...
by mabl
Sun Feb 03, 2013 1:10 pm
Forum: Development and Feedback
Topic: The new C++ wrapper thread
Replies: 9
Views: 3099

Re: The new C++ wrapper thread

Hi Giovanni, I was thinking about such an extension: /*------------------------------------------------------------------------* * chibios_rt::ObjectsPool * *------------------------------------------------------------------------*/ /** * @brief Template class encapsulating a memory pool and its ele...
by mabl
Wed Jan 30, 2013 4:51 pm
Forum: Development and Feedback
Topic: The new C++ wrapper thread
Replies: 9
Views: 3099

Re: The new C++ wrapper thread

Hi Giovanni, /*------------------------------------------------------------------------* * chibios_rt::ObjectsPool * *------------------------------------------------------------------------*/ /** * @brief Template class encapsulating a memory pool and its elements. */ template<class T, size_t N> cl...
by mabl
Fri Jan 18, 2013 12:11 pm
Forum: Development and Feedback
Topic: STM32 MAC driver optimization
Replies: 57
Views: 18709

Re: STM32 MAC driver optimization

Hi iggarpe, As soon as I reduced the amount of buffers to a more reasonable number, TCP and ICMP stopped working. From what I have read some code reuses the incoming pbufs to send a reply (at least ICMP does for sure, I suppose TCP does too). So my UDP services work fine but TCP and ICMP are broken....
by mabl
Fri Jan 18, 2013 8:02 am
Forum: Development and Feedback
Topic: [RFC] Future of HAL and platforms
Replies: 14
Views: 3734

Re: [RFC] Future of HAL and platforms

Giovanni, I'm too busy with exams these last weeks, but one comment: With all your talk of splitting up ChibiOS and using Modules in this new eclipse interface - how are you going to structure the repository? I guess you will not plan on maintaining different copies of the code - this would be a mai...
by mabl
Thu Jan 10, 2013 7:11 pm
Forum: Development and Feedback
Topic: can't get PWM going with TIM1 on the F4DISCOVERY
Replies: 7
Views: 2570

Re: can't get PWM going with TIM1 on the F4DISCOVERY

Giovanni wrote:Fixed width precision :) from 0.00 to 100.00. I know it can be confusing but I could not think a better term at that time.

I think in this case it is called a "Basis point" or "permyriad" it even has an own unicode sign: U+2031 ‱ :mrgreen: :ugeek:
by mabl
Thu Jan 10, 2013 6:45 pm
Forum: Development and Feedback
Topic: can't get PWM going with TIM1 on the F4DISCOVERY
Replies: 7
Views: 2570

Re: can't get PWM going with TIM1 on the F4DISCOVERY

http://chibios.sourceforge.net/docs/hal_stm32f1xx_rm/group___p_w_m.html#ga4e74ac1c2befb11ff66d218ca8d49531 Be careful with rounding errors, this is integer math not magic. You can specify tenths of thousandth but make sure you have the proper hardware resolution by carefully choosing the clock sourc...
by mabl
Thu Jan 10, 2013 1:34 pm
Forum: Development and Feedback
Topic: STM32 Ethernet Demo
Replies: 259
Views: 99757

Re: STM32 Ethernet Demo

So I remembered Mabl's hint and I'm thinking of switching to the netconn API. After reading the lwip wiki I'm still not sure if the way I use the raw API is forbidden in an OS environment. However, I think it's worth a try to use the recommended netconn API. That's a wonderful idea :-D I'd bet your...
by mabl
Thu Jan 03, 2013 10:51 am
Forum: Development and Feedback
Topic: STM32 Ethernet Demo
Replies: 259
Views: 99757

Re: STM32 Ethernet Demo

Hello rubenswerk, I assume that my udp_recv callback is running in the context of the lwip_thread, because all packet processing is done there[..] This is not correct. In ChibiOS, the interface is defined in "os/various/lwip_bindings/lwipthread.c" as netif_add(&thisif, &ip, &ne...

Go to advanced search