board.h 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /****************************************************************************
  2. * boards/x86/qemu/qemu-i486/include/board.h
  3. * include/arch/board/board.h
  4. *
  5. * Copyright (C) 2011 Gregory Nutt. All rights reserved.
  6. * Author: Gregory Nutt <gnutt@nuttx.org>
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions
  10. * are met:
  11. *
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in
  16. * the documentation and/or other materials provided with the
  17. * distribution.
  18. * 3. Neither the name NuttX nor the names of its contributors may be
  19. * used to endorse or promote products derived from this software
  20. * without specific prior written permission.
  21. *
  22. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  23. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  24. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  25. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  26. * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  27. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  28. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  29. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  30. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  31. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  32. * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  33. * POSSIBILITY OF SUCH DAMAGE.
  34. *
  35. ****************************************************************************/
  36. #ifndef __BOARDS_X86_QEMU_QEMU_I486_INCLUDE_BOARD_H
  37. #define __BOARDS_X86_QEMU_QEMU_QEMU_I486_INCLUDE_BOARD_H
  38. /****************************************************************************
  39. * Included Files
  40. ****************************************************************************/
  41. #include <nuttx/config.h>
  42. /****************************************************************************
  43. * Pre-processor Definitions
  44. ****************************************************************************/
  45. /* Clocking *****************************************************************/
  46. /* Programmable interval timer (PIT) */
  47. #define PIT_CLOCK 1041816 /* PIT input clock */
  48. /* LED definitions **********************************************************/
  49. /* Button definitions *******************************************************/
  50. /* Alternate pin selections *************************************************/
  51. /****************************************************************************
  52. * Public Types
  53. ****************************************************************************/
  54. #ifndef __ASSEMBLY__
  55. /****************************************************************************
  56. * Public Data
  57. ****************************************************************************/
  58. #undef EXTERN
  59. #if defined(__cplusplus)
  60. #define EXTERN extern "C"
  61. extern "C"
  62. {
  63. #else
  64. #define EXTERN extern
  65. #endif
  66. /****************************************************************************
  67. * Public Function Prototypes
  68. ****************************************************************************/
  69. #undef EXTERN
  70. #if defined(__cplusplus)
  71. }
  72. #endif
  73. #endif /* __ASSEMBLY__ */
  74. #endif /* __BOARDS_X86_QEMU_QEMU_QEMU_I486_INCLUDE_BOARD_H */