forked from Imagelibrary/rtems
committed by
Ben Gras
parent
6f6e5d758f
commit
5c337d7e37
@@ -299,7 +299,7 @@ uint32_t rtems_gpio_bsp_interrupt_line(rtems_vector_number vector)
|
||||
return event_status;
|
||||
}
|
||||
|
||||
rtems_status_code rtems_bsp_enable_interrupt(
|
||||
rtems_status_code rtems_gpio_bsp_enable_interrupt(
|
||||
uint32_t bank,
|
||||
uint32_t pin,
|
||||
rtems_gpio_interrupt interrupt
|
||||
@@ -354,7 +354,7 @@ rtems_status_code rtems_bsp_enable_interrupt(
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
rtems_status_code rtems_bsp_disable_interrupt(
|
||||
rtems_status_code rtems_gpio_bsp_disable_interrupt(
|
||||
uint32_t bank,
|
||||
uint32_t pin,
|
||||
rtems_gpio_interrupt interrupt
|
||||
@@ -528,7 +528,7 @@ uint32_t rtems_gpio_bsp_interrupt_line(rtems_vector_number vector)
|
||||
return -1;
|
||||
}
|
||||
|
||||
rtems_status_code rtems_bsp_enable_interrupt(
|
||||
rtems_status_code rtems_gpio_bsp_enable_interrupt(
|
||||
uint32_t bank,
|
||||
uint32_t pin,
|
||||
rtems_gpio_interrupt interrupt
|
||||
@@ -536,7 +536,7 @@ rtems_status_code rtems_bsp_enable_interrupt(
|
||||
return RTEMS_NOT_DEFINED;
|
||||
}
|
||||
|
||||
rtems_status_code rtems_bsp_disable_interrupt(
|
||||
rtems_status_code rtems_gpio_bsp_disable_interrupt(
|
||||
uint32_t bank,
|
||||
uint32_t pin,
|
||||
rtems_gpio_interrupt interrupt
|
||||
|
||||
@@ -183,7 +183,7 @@ uint32_t rtems_gpio_bsp_interrupt_line(rtems_vector_number vector)
|
||||
return event_status;
|
||||
}
|
||||
|
||||
rtems_status_code rtems_bsp_enable_interrupt(
|
||||
rtems_status_code rtems_gpio_bsp_enable_interrupt(
|
||||
uint32_t bank,
|
||||
uint32_t pin,
|
||||
rtems_gpio_interrupt interrupt
|
||||
@@ -227,7 +227,7 @@ rtems_status_code rtems_bsp_enable_interrupt(
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
rtems_status_code rtems_bsp_disable_interrupt(
|
||||
rtems_status_code rtems_gpio_bsp_disable_interrupt(
|
||||
uint32_t bank,
|
||||
uint32_t pin,
|
||||
rtems_gpio_interrupt interrupt
|
||||
|
||||
@@ -1341,7 +1341,7 @@ rtems_status_code rtems_gpio_request_pin(
|
||||
return RTEMS_UNSATISFIED;
|
||||
}
|
||||
|
||||
sc = rtems_bsp_select_specific_io(
|
||||
sc = rtems_gpio_bsp_select_specific_io(
|
||||
bank,
|
||||
pin,
|
||||
bsp_data->io_function,
|
||||
@@ -1805,7 +1805,7 @@ rtems_status_code rtems_gpio_enable_interrupt(
|
||||
}
|
||||
}
|
||||
|
||||
sc = rtems_bsp_enable_interrupt(bank, pin, interrupt);
|
||||
sc = rtems_gpio_bsp_enable_interrupt(bank, pin, interrupt);
|
||||
|
||||
if ( sc != RTEMS_SUCCESSFUL ) {
|
||||
RELEASE_LOCK(gpio_bank_state[bank].lock);
|
||||
@@ -1919,7 +1919,7 @@ rtems_status_code rtems_gpio_disable_interrupt(uint32_t pin_number)
|
||||
return RTEMS_NOT_CONFIGURED;
|
||||
}
|
||||
|
||||
sc = rtems_bsp_disable_interrupt(bank, pin, interrupt_state->active_interrupt);
|
||||
sc = rtems_gpio_bsp_disable_interrupt(bank, pin, interrupt_state->active_interrupt);
|
||||
|
||||
if ( sc != RTEMS_SUCCESSFUL ) {
|
||||
RELEASE_LOCK(gpio_bank_state[bank].lock);
|
||||
|
||||
@@ -736,12 +736,16 @@ extern uint32_t rtems_gpio_bsp_multi_read(uint32_t bank, uint32_t bitmask);
|
||||
* does not support the feature, by returning RTEMS_NOT_DEFINED.
|
||||
*
|
||||
* @param[in] bank GPIO bank number.
|
||||
* @param[in] bitmask Bitmask of GPIO pins to clear in the given bank.
|
||||
* @param[in] pins Array filled with BSP specific pin numbers. All pins belong
|
||||
* to the same select bank.
|
||||
* @param[in] pin_count Number of pin configurations in the @var pins array.
|
||||
* @param[in] arg Pointer to a BSP defined structure with BSP-specific
|
||||
* data. This field is handled by the BSP.
|
||||
*
|
||||
* @retval RTEMS_SUCCESSFUL All pins were cleared successfully.
|
||||
* @retval RTEMS_NOT_DEFINED The BSP does not support BSP specific operations
|
||||
* for groups.
|
||||
* @retval RTEMS_UNSATISFIED Could not clear at least one of the pins.
|
||||
* @retval RTEMS_SUCCESSFUL Operation completed with success.
|
||||
* @retval RTEMS_NOT_DEFINED Group has no BSP specific pins, or the BSP does not
|
||||
* support BSP specific operations for groups.
|
||||
* @retval RTEMS_UNSATISFIED Could not operate on at least one of the pins.
|
||||
*/
|
||||
extern rtems_status_code rtems_gpio_bsp_specific_group_operation(
|
||||
uint32_t bank,
|
||||
@@ -859,7 +863,7 @@ extern rtems_status_code rtems_gpio_bsp_select_output(
|
||||
* @retval RTEMS_SUCCESSFUL Function was assigned successfully.
|
||||
* @retval RTEMS_UNSATISFIED Could not assign the function to the pin.
|
||||
*/
|
||||
extern rtems_status_code rtems_bsp_select_specific_io(
|
||||
extern rtems_status_code rtems_gpio_bsp_select_specific_io(
|
||||
uint32_t bank,
|
||||
uint32_t pin,
|
||||
uint32_t function,
|
||||
@@ -918,7 +922,7 @@ extern rtems_vector_number rtems_gpio_bsp_get_vector(uint32_t bank);
|
||||
* @retval RTEMS_SUCCESSFUL Interrupt successfully enabled for this pin.
|
||||
* @retval RTEMS_UNSATISFIED Could not enable the interrupt on the pin.
|
||||
*/
|
||||
extern rtems_status_code rtems_bsp_enable_interrupt(
|
||||
extern rtems_status_code rtems_gpio_bsp_enable_interrupt(
|
||||
uint32_t bank,
|
||||
uint32_t pin,
|
||||
rtems_gpio_interrupt interrupt
|
||||
@@ -935,7 +939,7 @@ extern rtems_status_code rtems_bsp_enable_interrupt(
|
||||
* @retval RTEMS_SUCCESSFUL Interrupt successfully disabled for this pin.
|
||||
* @retval RTEMS_UNSATISFIED Could not disable interrupts on this pin.
|
||||
*/
|
||||
extern rtems_status_code rtems_bsp_disable_interrupt(
|
||||
extern rtems_status_code rtems_gpio_bsp_disable_interrupt(
|
||||
uint32_t bank,
|
||||
uint32_t pin,
|
||||
rtems_gpio_interrupt interrupt
|
||||
|
||||
Reference in New Issue
Block a user