Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* am33xx specific mux bit defines */
- #define AM33XX_SLEWCTRL_FAST (0 << 6)
- #define AM33XX_SLEWCTRL_SLOW (1 << 6)
- #define AM33XX_INPUT_EN (1 << 5)
- #define AM33XX_PULL_UP (1 << 4)
- /* bit 3: 0 - enable, 1 - disable for pull enable */
- #define AM33XX_PULL_DISA (1 << 3)
- #define AM33XX_PULL_ENBL (0 << 3)
- /* Definition of output pin could have pull disabled, but
- * this has not been done due to two reasons
- * 1. AM33XX_MUX will take care of it
- * 2. If pull was disabled for out macro, combining out & in pull on macros
- * would disable pull resistor and AM33XX_MUX cannot take care of the
- * correct pull setting and unintentionally pull would get disabled
- */
- #define AM33XX_PIN_OUTPUT (0)
- #define AM33XX_PIN_OUTPUT_PULLUP (AM33XX_PULL_UP)
- #define AM33XX_PIN_INPUT (AM33XX_INPUT_EN | AM33XX_PULL_DISA)
- #define AM33XX_PIN_INPUT_PULLUP (AM33XX_INPUT_EN | AM33XX_PULL_UP)
- #define AM33XX_PIN_INPUT_PULLDOWN (AM33XX_INPUT_EN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement