[PATCH 2/2] Raspberry Pi implementation for the RTEMS GPIO API.

2015-06-22 Thread Andre Marques
raspberrypi_gpio + * + * @brief Raspberry PI GPIO interface definitions. + */ + +/* + * Copyright (c) 2015 Andre Marques + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE

[PATCH 1/2] RTEMS GPIO API definition and implementation.

2015-06-22 Thread Andre Marques
/c/src/lib/libbsp/shared/gpio.c @@ -0,0 +1,1083 @@ +/** + * @file gpio.c + * + * @ingroup rtems_gpio + * + * @brief RTEMS GPIO API implementation. + */ + +/* + * Copyright (c) 2014-2015 Andre Marques + * + * The license and distribution terms for this file may be + * found in the file LICENSE i

[PATCH V2 2/2] Raspberry Pi implementation for the RTEMS GPIO API.

2015-07-27 Thread Andre Marques
@@ +/** + * @file gpio-interfaces-pi1-rev2.c + * + * @ingroup raspberrypi_gpio + * + * @brief Raspberry PI 1 rev2 GPIO interface definitions. + */ + +/* + * Copyright (c) 2015 Andre Marques + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this

[PATCH V2 1/2] RTEMS GPIO API definition and implementation.

2015-07-27 Thread Andre Marques
000..a87b39f --- /dev/null +++ b/c/src/lib/libbsp/shared/gpio.c @@ -0,0 +1,1977 @@ +/** + * @file gpio.c + * + * @ingroup rtems_gpio + * + * @brief RTEMS GPIO API implementation. + */ + +/* + * Copyright (c) 2014-2015 Andre Marques + * + * The license and distribution terms for this file may be +

[PATCH 1/2] Removed GPIO API from the libbsp/shared Makefile.

2015-08-15 Thread Andre Marques
--- c/src/lib/libbsp/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/Makefile.am b/c/src/lib/libbsp/Makefile.am index a039a98..3cab4d7 100644 --- a/c/src/lib/libbsp/Makefile.am +++ b/c/src/lib/libbsp/Makefile.am @@ -9,7 +9,7 @@ EXTRA_DIST = MERGE.

[PATCH 2/2] Added GPIO API sources to rpi Makefile

2015-08-15 Thread Andre Marques
--- c/src/lib/libbsp/arm/raspberrypi/Makefile.am | 3 ++- c/src/lib/libbsp/arm/raspberrypi/preinstall.am | 4 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/c/src/lib/libbsp/arm/raspberrypi/Makefile.am b/c/src/lib/libbsp/arm/raspberrypi/Makefile.am index 03be711..abb55a6 100

[PATCH] RaspberryPi: Added I2C and SPI bus support.

2015-09-05 Thread Andre Marques
n model B+. + */ + +/* + * Copyright (c) 2014-2015 Andre Marques + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +/* + * STATUS: + * - 10-bit slave addressing unteste

Re: [GSOC] Project update

2014-06-18 Thread Andre Marques
easier to implement, and it would not matter which GPIO peripherals each BSP supported. Alan On Tue, Jun 17, 2014 at 10:52 AM, Andre Marques mailto:andre.lousa.marq...@gmail.com>> wrote: On 06/17/14 15:39, Alan Cudmore wrote: Hi Andre, I checked out the your GPIO_API

[GSOC] GPIO API

2014-06-22 Thread Andre Marques
Hello, The GPIO API has been updated with doxygen documentation and code comments, along with a blog post that explains the current API work flow [1], and another blog post explaining how the API can be tested using the Raspberry Pi [2], both containing links to the actual code. Currently thi

Function pointer within isr

2014-06-30 Thread Andre Marques
Hello, I am trying to call a function through a function pointer from an interrupt handler, but I am not sure if this is even possible as the system hangs at that point. If not, is there any way in RTEMS to have that function executed outside the isr? Thanks, André Marques. ___

Re: Function pointer within isr

2014-06-30 Thread Andre Marques
at happens. What kind of error have you got? BSP? No error, just hanged. I am using the Raspberry Pi BSP. --Wendell. 2014-06-30 13:47 GMT-03:00 Andre Marques : Hello, I am trying to call a function through a function pointer from an interrupt handler, but I am not sure if this is even pos

[GSOC] GPIO status and I2C start

2014-07-05 Thread Andre Marques
Hello, The Raspberry Pi GPIO interrupts are already working, and a test case is available to test that [1]. A function is also provided to debounce a switch if needed. The test case requires two switches and two LEDS using the same setup described at [2] by only changing the pin numbers. The

Re: [GSOC] GPIO status and I2C start

2014-07-18 Thread Andre Marques
becomes important to have that info. For instance, the I2C interface on the P1 GPIO header uses different pin numbers for model A and model B/B+. Alan On Sat, Jul 5, 2014 at 6:58 PM, Andre Marques mailto:andre.lousa.marq...@gmail.com>> wrote: Hello, The Raspberry P

Raspberry Pi BSP SPI bus

2014-07-29 Thread Andre Marques
Hello, The Raspberry Pi SPI bus on the P1 GPIO header is already working, both through polling and interrupts on the bus FIFOS, and has been tested with a microchip 23k256 SRAM device. The bus code can be found in: https://github.com/asuol/rtems/blob/GPIO_API/c/src/lib/libbsp/arm/raspberrypi

Re: Rtems_fsmount dosfs hanging

2014-08-26 Thread Andre Marques
e too is trying to understand/develop SD card support for Raspberry pi. Thanks for the help!! Ritesh On Wed, May 14, 2014 at 12:30 AM, Andre Marques mailto:andre.lousa.marq...@gmail.com>> wrote: On 05/13/14 12:15, Andrey Mozzhuhin wrote: Do you not for

[PATCH] Add GPIO, I2C and SPI support for the RPi BSP

2014-10-31 Thread Andre Marques
c/src/lib/libbsp/arm/raspberrypi/gpio/gpio.c @@ -0,0 +1,745 @@ +/** + * @file gpio.c + * + * @ingroup raspberrypi_gpio + * + * @brief Support for the Raspberry PI GPIO. + * + */ + +/* + * Copyright (c) 2014 Andre Marques + * + * The license and distribution terms for this file may be + * found in

Re: [PATCH] Add GPIO, I2C and SPI support for the RPi BSP

2014-11-04 Thread Andre Marques
Hello Pavel, On 10/31/14 15:41, Pavel Pisa wrote: Hello Andre, On Friday 31 of October 2014 12:56:40 Andre Marques wrote: +/** + * @brief Generic ISR that clears the event register on the Raspberry Pi and calls + *an user defined ISR. + * + * @param[in] arg Void pointer to a

[PATCH] Add GPIO, I2C and SPI support for the RPi BSP

2014-12-10 Thread Andre Marques
1,727 @@ +/** + * @file gpio.c + * + * @ingroup raspberrypi_gpio + * + * @brief Support for the Raspberry PI GPIO. + */ + +/* + * Copyright (c) 2014 Andre Marques + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http:/

Re: [PATCH] Add GPIO, I2C and SPI support for the RPi BSP

2014-12-10 Thread Andre Marques
On 12/10/14 22:36, Chris Johns wrote: On 11/12/2014 5:27 am, Alan Cudmore wrote: Andre, Thanks for submitting this. I think we need one minor change: Could you remove the include and the call to init the mcp23008 driver? After your code is in the tree, I will propose a patch to allow execution