spibus_lpc17xx_ssp.h 716 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _DEV_SPIBUS_LPC17XX_SSP_H_
  2. #define _DEV_SPIBUS_LPC17XX_SSP_H_
  3. /*
  4. * Copyright (C) 2013 Simon Budig <simon@budig.de>
  5. *
  6. * placed in the public domain
  7. */
  8. #include <cfg/arch.h>
  9. #if defined(MCU_LPC176x)
  10. #include <arch/cm3/nxp/lpc176x.h>
  11. #elif defined(MCU_LPC177x_8x)
  12. #include <arch/cm3/nxp/lpc177x_8x.h>
  13. #elif defined(MCU_LPC407x_8x)
  14. #include <arch/cm3/nxp/lpc407x_8x.h>
  15. #else
  16. #warning "Unknown LPC familiy"
  17. #endif
  18. /*!
  19. * \file dev/spibus_lpc17xx_ssp.h
  20. * \brief LPC17xx specific SSP bus
  21. *
  22. * \verbatim
  23. * $Id:
  24. * \endverbatim
  25. */
  26. #include <dev/spibus.h>
  27. extern NUTSPIBUS spiBus0Lpc17xxSsp;
  28. extern NUTSPIBUS spiBus1Lpc17xxSsp;
  29. #if defined(LPC_SSP2_BASE)
  30. extern NUTSPIBUS spiBus2Lpc17xxSsp;
  31. #endif
  32. #endif