Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main.c:
- =============================================================================
- palSetPadMode(IOPORTA, 27, PAL_MODE_OUTPUT_PUSHPULL);
- pal.h:
- =============================================================================
- #if !defined(pal_lld_setpadmode) || defined(__DOXYGEN__)
- #define palSetPadMode(port, pad, mode) \
- palSetGroupMode(port, PAL_PORT_BIT(pad), 0, mode)
- #else
- #define palSetPadMode(port, pad, mode) pal_lld_setpadmode(port, pad, mode)
- #endif
- #if !defined(pal_lld_setgroupmode) || defined(__DOXYGEN__)
- #define palSetGroupMode(port, mask, offset, mode)
- #else
- #define palSetGroupMode(port, mask, offset, mode) \
- pal_lld_setgroupmode(port, mask, offset, mode)
- #endif
- pal_lld.h:
- =============================================================================
- /*
- #define pal_lld_setgroupmode(port, mask, offset, mode) \
- _pal_lld_setgroupmode(port, mask << offset, mode)
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement