mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-08 00:40:21 +08:00
bsp/lpc24xx: Add lpc24xx_pin_get_first_index()
This commit is contained in:
1 parent
0bf59cf0ae
commit
986ddf50c2
1 file changed
+10
@@ -294,6 +294,16 @@ rtems_status_code lpc24xx_pin_config(
|
||||
lpc24xx_pin_action action
|
||||
);
|
||||
|
||||
/**
|
||||
* @brief Returns the first pin index of a pin range.
|
||||
*/
|
||||
static inline unsigned lpc24xx_pin_get_first_index(
|
||||
const lpc24xx_pin_range *range
|
||||
)
|
||||
{
|
||||
return LPC24XX_IO_INDEX_BY_PORT(range->fields.port, range->fields.port_bit);
|
||||
}
|
||||
|
||||
/**
|
||||
* @name ADC Pins
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user