coldfire.nut 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. nutarch_m68k_coldfire =
  2. {
  3. --
  4. -- MCU Family
  5. --
  6. {
  7. name = "nutarch_m68k_coldfire_family",
  8. brief = "Family",
  9. options =
  10. {
  11. {
  12. macro = "MCU_COLDFIRE",
  13. brief = "COLDFIRE",
  14. type = "integer",
  15. default = 1,
  16. file = "include/cfg/arch.h"
  17. }
  18. }
  19. },
  20. --
  21. -- Interrupt Handler
  22. --
  23. {
  24. name = "nutarch_m68k_coldfire_ihndlr",
  25. brief = "Interrupt Handler",
  26. description = "CPU Interrupt handlers common for all Coldfire families.\n\n"..
  27. "In addition, this package contains the default interrupt handler, which may be used by application to handle spurious interrupts.",
  28. sources = { "m68k/coldfire/dev/common/ih_mcf5_default.c" }
  29. },
  30. --
  31. -- Context Switching
  32. --
  33. {
  34. name = "nutarch_m68k_coldfire_context",
  35. brief = "Context Switching",
  36. description = "Context Switching (GCC)",
  37. provides = { "NUT_CONTEXT_SWITCH" },
  38. requires = { "TOOL_GCC" },
  39. sources = { "m68k/coldfire/os/context.c" },
  40. options =
  41. {
  42. {
  43. macro = "NUTMEM_STACKHEAP",
  44. brief = "Separate heap for stack",
  45. description = "This option enables use of a separate heap for stack.\n\n"..
  46. "When a thread is created with this option enabled, "..
  47. "it's stack is allocated on a special 'thread stack heap' "..
  48. "which is kept in faster internal memory \ninstead of using the 'standard heap' "..
  49. "which is typically located in slower external memory.",
  50. flavor = "booldata",
  51. file = "include/cfg/memory.h"
  52. },
  53. }
  54. },
  55. --
  56. -- Coldfire MCU Directory
  57. --
  58. {
  59. name = "nutarch_m68k_coldfire_mcf5225x",
  60. brief = "MCF5225X Family",
  61. requires = { "HW_MCU_MCF5225X" },
  62. description = "MCF5225X family",
  63. script = "arch/coldfire/mcf5225x.nut"
  64. },
  65. {
  66. name = "nutarch_m68k_coldfire_mcf51cn",
  67. brief = "MCF51CN Family",
  68. requires = { "HW_MCU_MCF51CN" },
  69. description = "MCF51CN family",
  70. script = "arch/coldfire/mcf51cn.nut"
  71. },
  72. --
  73. -- Coldfire Common Devices
  74. --
  75. {
  76. name = "nutarch_m68k_coldfire_devices",
  77. brief = "Common devices",
  78. description = "Common devices to the Cipfire families",
  79. script = "arch/coldfire/coldfire_dev.nut",
  80. },
  81. }