summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/raspberrypi/gpio (follow)
Commit message (Collapse)AuthorAgeFilesLines
* arm/raspberrypi: ensure that correct RPI_PERIPHERAL_BASE is provided by ↵Pavel Pisa2016-05-311-0/+1
| | | | | | | | | | | raspberrypi.h If the raspberrypi.h has been included without preceding inclussion of bsp.h then BSP_IS_RPI2 has not been set for Raspberry Pi 2 BSP variant and bad things happen later. The patch includes bspopts.h by raspberrypi.h and even includes bsp.h in critical peripherals support.
* arm/raspberrypi: add locking around GPIO pin function selection.Pavel Pisa2016-05-191-0/+5
| | | | | | | | | | This is required if function or direction is changed by some driver after start of thread multitasking or in interrupts drivers. There can be problem with calling GPIO function selection before data section is initialized. But actual ticket lock implementation seems to be compatible even with memory initialized to zero oven on SMP.
* arm/raspberrypi: correct GPIO pin function selection.Pavel Pisa2016-05-191-9/+9
| | | | | | Original implementation does only bitwise-or with previous register value for all functions except IN. Switch from one to other function would lead to incorrect value.
* Leftover gpio function renameBen Gras2015-11-031-1/+1
| | | | | | Rename rtems_bsp_select_specific_io to rtems_gpio_bsp_select_specific_io. Should've gone with 5c337d7. Fixes #2456.
* Fixes GPIO APIs Naming Convention and CommentsSudarshan Rajagopalan2015-10-211-2/+2
| | | | Closes #2435.
* Closes ticket #2390, and also updates the RPI implementation.Andre Marques2015-08-181-1/+1
| | | | | makes rtems_gpio_bsp_get_value return uint32_t. Motivation: simplify beagle gpio implementation for common gpio apio.
* Raspberry Pi implementation for the RTEMS GPIO API.Andre Marques2015-08-062-0/+465
Added support for the new RTEMS GPIO API functions. Test cases can be found in https://github.com/asuol/RTEMS_rpi_testing/tree/master/GPIO