stm32fam.nut 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. --
  2. -- Copyright (C) 2004-2007 by egnite Software GmbH. All rights reserved.
  3. -- Copyright (C) 2011-2013 Uwe Bonnes (bon@elektron.ikp.physik.tu-darmstadt.de)
  4. --
  5. -- Redistribution and use in source and binary forms, with or without
  6. -- modification, are permitted provided that the following conditions
  7. -- are met:
  8. --
  9. -- 1. Redistributions of source code must retain the above copyright
  10. -- notice, this list of conditions and the following disclaimer.
  11. -- 2. Redistributions in binary form must reproduce the above copyright
  12. -- notice, this list of conditions and the following disclaimer in the
  13. -- documentation and/or other materials provided with the distribution.
  14. -- 3. Neither the name of the copyright holders nor the names of
  15. -- contributors may be used to endorse or promote products derived
  16. -- from this software without specific prior written permission.
  17. --
  18. -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19. -- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20. -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  21. -- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  22. -- COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  23. -- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  24. -- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  25. -- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  26. -- AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  27. -- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  28. -- THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  29. -- SUCH DAMAGE.
  30. --
  31. -- For additional information see http://www.ethernut.de/
  32. --
  33. -- STM Family selection
  34. --
  35. nutarch_cm3_stm32_family =
  36. {
  37. --
  38. -- STM32 Based Cpu Directory
  39. --
  40. {
  41. name = "nutarch_stm32_fam",
  42. brief = "MCU Family",
  43. sources = { "cm3/dev/stm/system_stm32.c" },
  44. options =
  45. {
  46. {
  47. macro = "MCU_STM32",
  48. brief = "STM32",
  49. type = "integer",
  50. default = 1,
  51. requires = { "HW_MCU_STM32" },
  52. provides = { "HW_UART_OWIMODE" },
  53. file = "include/cfg/arch.h",
  54. }
  55. }
  56. },
  57. {
  58. name = "nutarch_cm3_stm32f0",
  59. brief = "STM32F0",
  60. requires = { "HW_MCU_STM32", "HW_MCU_STM32F0XX" },
  61. description = "ST Microelectronics STM32 F0 Series",
  62. script = "arch/cm3/stm32f0.nut"
  63. },
  64. {
  65. name = "nutarch_cm3_stm32f1",
  66. brief = "STM32F1",
  67. requires = { "HW_MCU_STM32", "HW_MCU_STM32F10X" },
  68. description = "ST Microelectronics STM32 F1 Series",
  69. script = "arch/cm3/stm32f1.nut"
  70. },
  71. {
  72. name = "nutarch_cm3_stm32l1",
  73. brief = "STM32L1",
  74. requires = { "HW_MCU_STM32", "HW_MCU_STM32L1XX" },
  75. description = "ST Microelectronics STM32 F1 Series",
  76. script = "arch/cm3/stm32l1.nut"
  77. },
  78. {
  79. name = "nutarch_cm3_stm32f2",
  80. brief = "STM32F2",
  81. requires = { "HW_MCU_STM32", "HW_MCU_STM32F2XX" },
  82. description = "ST Microelectronics STM32 F2 Series",
  83. script = "arch/cm3/stm32f2.nut"
  84. },
  85. {
  86. name = "nutarch_cm3_stm32f3",
  87. brief = "STM32F3",
  88. requires = { "HW_MCU_STM32", "HW_MCU_STM32F3XX" },
  89. provides = { "STM32F3XX" },
  90. description = "ST Microelectronics STM32 F3 Series",
  91. script = "arch/cm3/stm32f3.nut"
  92. },
  93. {
  94. name = "nutarch_cm3_stm32f4",
  95. brief = "STM32F4",
  96. requires = { "HW_MCU_STM32", "HW_MCU_STM32F4XX" },
  97. description = "ST Microelectronics STM32 F4 Series",
  98. script = "arch/cm3/stm32f4.nut"
  99. },
  100. {
  101. name = "nutarch_cm3_stm32_pll",
  102. brief = "Common PLL settings",
  103. description = "Common PLL settings",
  104. requires = { "HW_MCU_STM32" },
  105. script = "arch/cm3/stm32pll.nut"
  106. },
  107. {
  108. name = "nutarch_cm3_stm32_devices",
  109. brief = "Common devices",
  110. description = "Common devices to the STM32 families",
  111. requires = { "HW_MCU_STM32" },
  112. script = "arch/cm3/stm32dev.nut"
  113. },
  114. }