Greetings everyone.
I am looking for two answers that will help me port my code from Arduino developments to Galileo (1 or 2). I have already taken care of most of the port, so these questions come at the end of a lot of digging.
1. What is the structure of the memory? Partially, I need to know when a variable is created on the stack/heap or if it is a global variable ( in .bss ).
In the Arduino AVR tool chain, the interesting system variable is "extern int __heap_start". (Memory is organized as BSS -- HEAP -- STACK)
In the Arduino SAM tool chain, the interesting system variable is "extern int _end". (meaning the end of .bss and Memory is organized as BSS -- HEAP -- STACK)
What is there to look for in this x86 toolchain. What is the structure.
2. I2C bus Speed. In the Arduino AVR, there is a register I modify to change the bus speed. In the Arduino SAM, they have a method in the wire library that I can call to set the speed.
I need to know how to change the speed here. My application depends on this. I have looked at the Arduino abstraction layer and I see "i2c.c" and the file operations required to make changes / setting up the class (IOCTL) But there is no information that I could find on the bus speed. I need more information.
Thanks in advance for your help.