Changeset 5c337d7e in rtems


Ignore:
Timestamp:
Oct 21, 2015, 3:33:44 PM (5 years ago)
Author:
Sudarshan Rajagopalan <sudarshan.rajagopalan@…>
Branches:
5, master
Children:
7e06bd9
Parents:
6f6e5d7
git-author:
Sudarshan Rajagopalan <sudarshan.rajagopalan@…> (10/21/15 15:33:44)
git-committer:
Ben Gras <ben@…> (10/21/15 15:34:12)
Message:

Fixes GPIO APIs Naming Convention and Comments

Closes #2435.

Location:
c/src/lib/libbsp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/beagle/gpio/bbb-gpio.c

    r6f6e5d7 r5c337d7e  
    300300}
    301301
    302 rtems_status_code rtems_bsp_enable_interrupt(
     302rtems_status_code rtems_gpio_bsp_enable_interrupt(
    303303  uint32_t bank,
    304304  uint32_t pin,
     
    355355}
    356356
    357 rtems_status_code rtems_bsp_disable_interrupt(
     357rtems_status_code rtems_gpio_bsp_disable_interrupt(
    358358  uint32_t bank,
    359359  uint32_t pin,
     
    529529}
    530530
    531 rtems_status_code rtems_bsp_enable_interrupt(
     531rtems_status_code rtems_gpio_bsp_enable_interrupt(
    532532  uint32_t bank,
    533533  uint32_t pin,
     
    537537}
    538538
    539 rtems_status_code rtems_bsp_disable_interrupt(
     539rtems_status_code rtems_gpio_bsp_disable_interrupt(
    540540  uint32_t bank,
    541541  uint32_t pin,
  • c/src/lib/libbsp/arm/raspberrypi/gpio/rpi-gpio.c

    r6f6e5d7 r5c337d7e  
    184184}
    185185
    186 rtems_status_code rtems_bsp_enable_interrupt(
     186rtems_status_code rtems_gpio_bsp_enable_interrupt(
    187187  uint32_t bank,
    188188  uint32_t pin,
     
    228228}
    229229
    230 rtems_status_code rtems_bsp_disable_interrupt(
     230rtems_status_code rtems_gpio_bsp_disable_interrupt(
    231231  uint32_t bank,
    232232  uint32_t pin,
  • c/src/lib/libbsp/shared/gpio.c

    r6f6e5d7 r5c337d7e  
    13421342      }
    13431343
    1344       sc = rtems_bsp_select_specific_io(
     1344      sc = rtems_gpio_bsp_select_specific_io(
    13451345             bank,
    13461346             pin,
     
    18061806  }
    18071807
    1808   sc = rtems_bsp_enable_interrupt(bank, pin, interrupt);
     1808  sc = rtems_gpio_bsp_enable_interrupt(bank, pin, interrupt);
    18091809
    18101810  if ( sc != RTEMS_SUCCESSFUL ) {
     
    19201920  }
    19211921
    1922   sc = rtems_bsp_disable_interrupt(bank, pin, interrupt_state->active_interrupt);
     1922  sc = rtems_gpio_bsp_disable_interrupt(bank, pin, interrupt_state->active_interrupt);
    19231923
    19241924  if ( sc != RTEMS_SUCCESSFUL ) {
  • c/src/lib/libbsp/shared/include/gpio.h

    r6f6e5d7 r5c337d7e  
    737737 *
    738738 * @param[in] bank GPIO bank number.
    739  * @param[in] bitmask Bitmask of GPIO pins to clear in the given bank.
    740  *
    741  * @retval RTEMS_SUCCESSFUL All pins were cleared successfully.
    742  * @retval RTEMS_NOT_DEFINED The BSP does not support BSP specific operations
    743  *                           for groups.
    744  * @retval RTEMS_UNSATISFIED Could not clear at least one of the pins.
     739 * @param[in] pins Array filled with BSP specific pin numbers. All pins belong
     740 *                 to the same select bank.
     741 * @param[in] pin_count Number of pin configurations in the @var pins array.
     742 * @param[in] arg Pointer to a BSP defined structure with BSP-specific
     743 *                data. This field is handled by the BSP.
     744 *
     745 * @retval RTEMS_SUCCESSFUL Operation completed with success.
     746 * @retval RTEMS_NOT_DEFINED Group has no BSP specific pins, or the BSP does not
     747 *                           support BSP specific operations for groups.
     748 * @retval RTEMS_UNSATISFIED Could not operate on at least one of the pins.
    745749 */
    746750extern rtems_status_code rtems_gpio_bsp_specific_group_operation(
     
    860864 * @retval RTEMS_UNSATISFIED Could not assign the function to the pin.
    861865 */
    862 extern rtems_status_code rtems_bsp_select_specific_io(
     866extern rtems_status_code rtems_gpio_bsp_select_specific_io(
    863867  uint32_t bank,
    864868  uint32_t pin,
     
    919923 * @retval RTEMS_UNSATISFIED Could not enable the interrupt on the pin.
    920924 */
    921 extern rtems_status_code rtems_bsp_enable_interrupt(
     925extern rtems_status_code rtems_gpio_bsp_enable_interrupt(
    922926  uint32_t bank,
    923927  uint32_t pin,
     
    936940 * @retval RTEMS_UNSATISFIED Could not disable interrupts on this pin.
    937941 */
    938 extern rtems_status_code rtems_bsp_disable_interrupt(
     942extern rtems_status_code rtems_gpio_bsp_disable_interrupt(
    939943  uint32_t bank,
    940944  uint32_t pin,
Note: See TracChangeset for help on using the changeset viewer.