boot.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. /**
  14. * @file boot.h
  15. * @brief Boot parameters for the SPC560Bxx.
  16. * @{
  17. */
  18. #ifndef BOOT_H
  19. #define BOOT_H
  20. /*===========================================================================*/
  21. /* Module constants. */
  22. /*===========================================================================*/
  23. /**
  24. * @name BUCSR registers definitions
  25. * @{
  26. */
  27. #define BUCSR_BPEN 0x00000001
  28. #define BUCSR_BALLOC_BFI 0x00000200
  29. /** @} */
  30. /**
  31. * @name MSR register definitions
  32. * @{
  33. */
  34. #define MSR_WE 0x00040000
  35. #define MSR_CE 0x00020000
  36. #define MSR_EE 0x00008000
  37. #define MSR_PR 0x00004000
  38. #define MSR_ME 0x00001000
  39. #define MSR_DE 0x00000200
  40. #define MSR_IS 0x00000020
  41. #define MSR_DS 0x00000010
  42. #define MSR_RI 0x00000002
  43. /** @} */
  44. /*===========================================================================*/
  45. /* Module pre-compile time settings. */
  46. /*===========================================================================*/
  47. /*
  48. * BUCSR default settings.
  49. */
  50. #if !defined(BOOT_BUCSR_DEFAULT) || defined(__DOXYGEN__)
  51. #define BOOT_BUCSR_DEFAULT (BUCSR_BPEN | BUCSR_BALLOC_BFI)
  52. #endif
  53. /*
  54. * MSR default settings.
  55. */
  56. #if !defined(BOOT_MSR_DEFAULT) || defined(__DOXYGEN__)
  57. #define BOOT_MSR_DEFAULT (MSR_WE | MSR_CE | MSR_ME)
  58. #endif
  59. /*
  60. * Boot default settings.
  61. */
  62. #if !defined(BOOT_PERFORM_CORE_INIT) || defined(__DOXYGEN__)
  63. #define BOOT_PERFORM_CORE_INIT 1
  64. #endif
  65. /*
  66. * VLE mode default settings.
  67. */
  68. #if !defined(BOOT_USE_VLE) || defined(__DOXYGEN__)
  69. #define BOOT_USE_VLE 1
  70. #endif
  71. /*
  72. * RAM relocation flag.
  73. */
  74. #if !defined(BOOT_RELOCATE_IN_RAM) || defined(__DOXYGEN__)
  75. #define BOOT_RELOCATE_IN_RAM 0
  76. #endif
  77. /*===========================================================================*/
  78. /* Derived constants and error checks. */
  79. /*===========================================================================*/
  80. /*===========================================================================*/
  81. /* Module data structures and types. */
  82. /*===========================================================================*/
  83. /*===========================================================================*/
  84. /* Module macros. */
  85. /*===========================================================================*/
  86. /*===========================================================================*/
  87. /* External declarations. */
  88. /*===========================================================================*/
  89. /*===========================================================================*/
  90. /* Module inline functions. */
  91. /*===========================================================================*/
  92. #endif /* BOOT_H */
  93. /** @} */