Thank you! I will do so.tufty wrote:Nobody's been replying, but please carry on. This is excellent work.
Awesome! I have replaced the C++ implementation with that one and looks it is working well. I don't get the same MAC address I was getting with the C++ version but I suppose I'm not using the property tag correctly in that case.rst wrote:There is also a C port of the Circle USB library on GitHub:
https://github.com/rsta2/uspi
This library can be used in a C bare metal environment. It has currently the same features as in Circle Step7.
I think so because USPi only takes the MAC address you hand it over in GetMACAddress().macca wrote:I don't get the same MAC address I was getting with the C++ version but I suppose I'm not using the property tag correctly in that case.
I'm sorry there is not a tool. I'm also astonished how quick it can be converted that way by hand.macca wrote:May I ask you what have you used to convert from C++, I guess it is an automated tool ?
Can you tell me which parts you would like to exclude? At the moment I only see the functions in util.h (e.g. memcpy) which have a common interface. I have already commited a change to GitHub with which you can use your own implementation of these functions. This has to be enabled in uspios.h (top section).macca wrote:One suggestion: try to implement as much as possible to keep the library independent. Maybe use defines to include or exclude parts that others may have already implemented.
Brilliant, I never thought it was that easy.rst wrote:I'm sorry there is not a tool. I'm also astonished how quick it can be converted that way by hand.
Actually it is the opposite. I see that it requires a number of external implementations, some of which are common and should not cause any conflict with existing code like Enter/ExitCritical, the delay functions, etc., others seems to require a bit of knowledge of how the library works, specifically ConnectInterrupt and the timer functions. I had a bit of difficult implementing these and ended up converting the C++ classes that already works the way you expect them.rst wrote:Can you tell me which parts you would like to exclude? At the moment I only see the functions in util.h (e.g. memcpy) which have a common interface. I have already commited a change to GitHub with which you can use your own implementation of these functions. This has to be enabled in uspios.h (top section).
I thought about where to put the keyboard mapping stuff. I think it is tightly bound to the USB keyboard driver because it works with USB physical key codes. I don't wanted to create another library to keep it small. So I had to decide to put it in the base lib or in in the USB lib. But without USB it is currently not useable.tufty wrote:Is there a reason you haven't separated the "USB" stuff from the "keyboard" stuff?
Thank you!jspeccy wrote:I'm really astonished by your great work. Circle is a wonderful framework to create bare metal applications.
That's nice. Please send it to the Email address noted in the header of most source code files of Circle. Thanks!I'm a spaniard user, so I've created a keymap for spanish keyboards (without dead keys, of course). How can I send my keymap_es.h to you?
I can have a look at the configuration descriptor of the keyboard. I can give you further info how to get it when you write to me. But unfortunately I cannot make you much hope. I think this is a proprietary device which needs special software and special information to create it.Another question is that I have a HP USB keyboard with a SmartCard reader, so the sample 08 don't watch any keypress. What can I do about this?
Sorry, I want to focus on the ARM side. But if it is possible and it makes sense: There is a C port of main Circle functions (including a new USPi environment library). See the USPi topic! Perhaps somebody wants to move it on the VideoCore?mimi123 wrote:Can you make a without interrupts in C without any ASM not using mailboxes?
(for bare-metal VideoCore)
A C compiler works fully on the VideoCore but interrupts are not managed.rst wrote:Sorry, I want to focus on the ARM side. But if it is possible and it makes sense: There is a C port of main Circle functions (including a new USPi environment library). See the USPi topic! Perhaps somebody wants to move it on the VideoCore?mimi123 wrote:Can you make a without interrupts in C without any ASM not using mailboxes?
(for bare-metal VideoCore)
Users browsing this forum: No registered users and 2 guests