Changeset 986ddf5 in rtems


Ignore:
Timestamp:
Feb 21, 2014, 1:03:50 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
810815c
Parents:
0bf59cf
git-author:
Sebastian Huber <sebastian.huber@…> (02/21/14 13:03:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/14/14 07:56:33)
Message:

bsp/lpc24xx: Add lpc24xx_pin_get_first_index()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc24xx/include/io.h

    r0bf59cf r986ddf5  
    294294  lpc24xx_pin_action action
    295295);
     296
     297/**
     298 * @brief Returns the first pin index of a pin range.
     299 */
     300static inline unsigned lpc24xx_pin_get_first_index(
     301  const lpc24xx_pin_range *range
     302)
     303{
     304  return LPC24XX_IO_INDEX_BY_PORT(range->fields.port, range->fields.port_bit);
     305}
    296306
    297307/**
Note: See TracChangeset for help on using the changeset viewer.