Ignore:
Timestamp:
Nov 18, 2015, 5:45:32 PM (4 years ago)
Author:
Premysl Houdek <kom541000@…>
Branches:
master
Children:
9394aa5e
Parents:
74172b7d
git-author:
Premysl Houdek <kom541000@…> (11/18/15 17:45:32)
git-committer:
Gedare Bloom <gedare@…> (11/18/15 18:12:44)
Message:

bsp/tms570: unite code duplication in pinmux and clean SCI close per review remarks.

Signed-off-by: Premysl Houdek <kom541000@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/tms570/include/tms570-pinmux.h

    r74172b7d r3e1196d  
    112112void tms570_bsp_pin_clear_function(int pin_num, int pin_fnc);
    113113
     114static inline void
     115tms570_bsp_pin_to_pinmmrx(volatile uint32_t **pinmmrx, unsigned int *pin_shift,
     116                          int pin_num)
     117{
     118  pin_num = (pin_num & TMS570_PIN_NUM_MASK) >> TMS570_PIN_NUM_SHIFT;
     119  *pinmmrx = &TMS570_IOMM.PINMUX.PINMMR0 + (pin_num >> 2);
     120  *pin_shift = (pin_num & 0x3)*8;
     121}
     122
    114123#endif
    115124
Note: See TracChangeset for help on using the changeset viewer.