defBF561_extn.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * defBF561_extn.h
  3. *
  4. * This file is subject to the terms and conditions of the GNU Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Non-GPL License also available as part of VisualDSP++
  9. *
  10. * http://www.analog.com/processors/resources/crosscore/visualDspDevSoftware.html
  11. *
  12. * (c) Copyright 2001-2005 Analog Devices, Inc. All rights reserved
  13. *
  14. * This file under source code control, please send bugs or changes to:
  15. * dsptools.support@analog.com
  16. *
  17. */
  18. #ifndef _DEF_BF561_EXTN_H
  19. #define _DEF_BF561_EXTN_H
  20. #define OFFSET_( x ) ((x) & 0x0000FFFF) /* define macro for offset */
  21. /* Delay inserted for PLL transition */
  22. #define PLL_DELAY 0x1000
  23. #define L1_ISRAM 0xFFA00000
  24. #define L1_ISRAM_END 0xFFA10000
  25. #define DATA_BANKA_SRAM 0xFF800000
  26. #define DATA_BANKA_SRAM_END 0xFF808000
  27. #define DATA_BANKB_SRAM 0xFF900000
  28. #define DATA_BANKB_SRAM_END 0xFF908000
  29. #define SYSMMR_BASE 0xFFC00000
  30. #define WDSIZE16 0x00000004
  31. /* Event Vector Table Address */
  32. #define EVT_EMULATION_ADDR 0xffe02000
  33. #define EVT_RESET_ADDR 0xffe02004
  34. #define EVT_NMI_ADDR 0xffe02008
  35. #define EVT_EXCEPTION_ADDR 0xffe0200c
  36. #define EVT_GLOBAL_INT_ENB_ADDR 0xffe02010
  37. #define EVT_HARDWARE_ERROR_ADDR 0xffe02014
  38. #define EVT_TIMER_ADDR 0xffe02018
  39. #define EVT_IVG7_ADDR 0xffe0201c
  40. #define EVT_IVG8_ADDR 0xffe02020
  41. #define EVT_IVG9_ADDR 0xffe02024
  42. #define EVT_IVG10_ADDR 0xffe02028
  43. #define EVT_IVG11_ADDR 0xffe0202c
  44. #define EVT_IVG12_ADDR 0xffe02030
  45. #define EVT_IVG13_ADDR 0xffe02034
  46. #define EVT_IVG14_ADDR 0xffe02038
  47. #define EVT_IVG15_ADDR 0xffe0203c
  48. #define EVT_OVERRIDE_ADDR 0xffe02100
  49. /* IMASK Bit values */
  50. #define IVG15_POS 0x00008000
  51. #define IVG14_POS 0x00004000
  52. #define IVG13_POS 0x00002000
  53. #define IVG12_POS 0x00001000
  54. #define IVG11_POS 0x00000800
  55. #define IVG10_POS 0x00000400
  56. #define IVG9_POS 0x00000200
  57. #define IVG8_POS 0x00000100
  58. #define IVG7_POS 0x00000080
  59. #define IVGTMR_POS 0x00000040
  60. #define IVGHW_POS 0x00000020
  61. #define WDOG_TMR_DISABLE (0xAD << 4)
  62. #define ICTL_RST 0x00000000
  63. #define ICTL_NMI 0x00000002
  64. #define ICTL_GP 0x00000004
  65. #define ICTL_DISABLE 0x00000003
  66. /* Watch Dog timer values setup */
  67. #define WATCHDOG_DISABLE WDOG_TMR_DISABLE | ICTL_DISABLE
  68. #endif /* _DEF_BF561_EXTN_H */