Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Intel Galileo Gen2 IO

Posted by jordiblasi on October 25, 2016

Hi,

I have FreeRTOS running over an Intel Galileo Gen2 Board. I am quite new to FreeRTOS so maybe this is an basic question. I have successfully run different tasks, but now I want to work with Input and Output pins. Following the blinking demo code I have found a function called vGalileoSetGPIOBitLevel, that seems to write a bit to a determined output. I have this two questions: -I have not been able to understand, neither in the manuals nor in the code, is how to map the function entry parameter (GPIONumber) with the actual pins. Does it refer to 1 to 12 numbered Digital(PWM)? - How can I get a reading from an Input? Are the A0 to A5 Analog In the ones to use? Which function is supposed to give me the value?

I have not found any reading on this issue, so any reference would be very helpful.

Thanks.


Intel Galileo Gen2 IO

Posted by rtel on October 25, 2016

Accessing the IO on the Galileo is not always straight forward, and requires configuration that is more complex than expected for people who are used to working on small micros rather than larger processors. I would suggest looking on the Intel developer web site, where you may find the documentation you need, and will find further source code you can use as a reference.


Intel Galileo Gen2 IO

Posted by jordiblasi on October 28, 2016

I have been looking on the Intel Dev site and I have found they have the MRAA driver for IO management, but I have not been able to make it work. In the forum I was even told that it is not supposed to be working with Yocto, not FreeRTOS.

I have been trying to follow the code and modify the blinking demo so I could light a led connected to a pin (number 7 in the digital PWM group).

~~~ vGalileoInitializeGpioController(); vGalileoLegacyGPIOInitializationForLED(); vGalileoSetGPIOBitLevel(7, 1); ~~~

This did not work, but I am not sure if this methods are prepared for this or I am just htting the wrong path.

Thanks,


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS