porellan63 wrote:Hello Roger
I am an electronic and I am learning to program the STM32F103RBT6 board from ebay. Olimexino from Maple have the stm32f103rbt6 also
Could you give us some tips or hints about how to port the arduino´s libraries to STM32F1 or STM32F4?
or Could you explain which the changes are in the header files.
I am using Arduino 1.6.4 and Arduino_STM32 hardware files
In this moment I would like to port the RGB16x32 libraries but i don't know how
Any help it would be very appreciated
Your question is not easily answered. However, most of the issues that I have seen are hardware-centric such as the SPI and the I2C which have already been handled (are are being handled) in the core. For user libraries, the issue is that the old AVR are 8-bit devices and the STM32 is a 32-bit ARM, so the simple answer is "variable typing" and casts in functions and obviously return values.
Here are the libraries already ported: http://stm32duino.com/viewtopic.php?f=13&t=274
I would recommend pulling one or two and comparing (with some OS tool you like) and then making a few notes between the original and the ported ones. Most of the libraries that have been converted, have comments that will help. It is not always the headers, but sometimes the cpp files, too. Just depends on structures. Fortunately, we have a few graphic libs already ported, so that code would be what I would recommend as a started to the learning experience.
WE all appreciate your enthusiasm and willingness to jump in and help! Roger will likely add some insight as well, but he is in Australia and has strange hours (for us in the Northern Hemisphere!)