Advertisement
Guest User

Untitled

a guest
Feb 9th, 2012
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. /* am33xx specific mux bit defines */
  2. #define AM33XX_SLEWCTRL_FAST (0 << 6)
  3. #define AM33XX_SLEWCTRL_SLOW (1 << 6)
  4. #define AM33XX_INPUT_EN (1 << 5)
  5. #define AM33XX_PULL_UP (1 << 4)
  6. /* bit 3: 0 - enable, 1 - disable for pull enable */
  7. #define AM33XX_PULL_DISA (1 << 3)
  8. #define AM33XX_PULL_ENBL (0 << 3)
  9.  
  10. /* Definition of output pin could have pull disabled, but
  11. * this has not been done due to two reasons
  12. * 1. AM33XX_MUX will take care of it
  13. * 2. If pull was disabled for out macro, combining out & in pull on macros
  14. * would disable pull resistor and AM33XX_MUX cannot take care of the
  15. * correct pull setting and unintentionally pull would get disabled
  16. */
  17. #define AM33XX_PIN_OUTPUT (0)
  18. #define AM33XX_PIN_OUTPUT_PULLUP (AM33XX_PULL_UP)
  19. #define AM33XX_PIN_INPUT (AM33XX_INPUT_EN | AM33XX_PULL_DISA)
  20. #define AM33XX_PIN_INPUT_PULLUP (AM33XX_INPUT_EN | AM33XX_PULL_UP)
  21. #define AM33XX_PIN_INPUT_PULLDOWN (AM33XX_INPUT_EN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement