Search found 355 matches

by utzig
Fri Feb 03, 2012 6:57 pm
Forum: Development and Feedback
Topic: Support for float (%f) in chprintf
Replies: 25
Views: 9419

Support for float (%f) in chprintf

Hi, I think this could be useful to somebody else! I have some sensors which supply floating point data in a normalized integer form but it's kind of impossible to understand by printing them so I added some very basic support for printing out floats in chprintf. It's kind of "hacky" but i...
by utzig
Tue Jan 24, 2012 11:34 am
Forum: General Support
Topic: ICU and timer channel?
Replies: 53
Views: 18110

Re: ICU and timer channel?

I'm on a quite tight schedule right now but I'll give it a look by the end of the week. My idea would be to add a new field on the ICUConfig where the user passes the channel number (a #define). What do you think? Also, looking at the SMCR description there are only option of triggering on TI1FP1 an...
by utzig
Mon Jan 23, 2012 7:14 pm
Forum: General Support
Topic: ICU and timer channel?
Replies: 53
Views: 18110

Re: ICU and timer channel?

Guys, Just want to leave a follow-up here with things that might be useful to somebody else. Last Tuesday I upgraded to the latest unstable version. After that I found out the original problem for me which was getting widths and periods with the same value. It was a quite stupid thing actually! I wa...
by utzig
Mon Jan 09, 2012 4:46 pm
Forum: General Support
Topic: ICU and timer channel?
Replies: 53
Views: 18110

Re: ICU and timer channel?

Hi, Just tried your suggestion and it worked correctly! At least now I know that the ICU driver backport I did is correct. I will rebuild the original project and try to discover why it gave that strange results. It took me sometime to "backport" the test code since some things had changed...
by utzig
Sun Jan 08, 2012 11:06 am
Forum: General Support
Topic: ICU and timer channel?
Replies: 53
Views: 18110

Re: ICU and timer channel?

I'm also trying to use the ICU driver and have a strange problem. The width is always the same as the period! I backported the ICU driver to the 2.3.7 version which I'm using and I guess everything was done correctly. I checked that width is read from CCR1 and period from CCR2. I'm using TIM4_CH1 as...

Go to advanced search