| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- --
- -- * Copyright (C) 2013 by Uwe Bonnes (bon@elektron.ikp.physik.tu-darmstadt.de)
- --
- -- Redistribution and use in source and binary forms, with or without
- -- modification, are permitted provided that the following conditions
- -- are met:
- --
- -- 1. Redistributions of source code must retain the above copyright
- -- notice, this list of conditions and the following disclaimer.
- -- 2. Redistributions in binary form must reproduce the above copyright
- -- notice, this list of conditions and the following disclaimer in the
- -- documentation and/or other materials provided with the distribution.
- -- 3. Neither the name of the copyright holders nor the names of
- -- contributors may be used to endorse or promote products derived
- -- from this software without specific prior written permission.
- --
- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- -- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- -- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- -- COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- -- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- -- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- -- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- -- AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- -- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
- -- THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- -- SUCH DAMAGE.
- --
- -- For additional information see http://www.ethernut.de/
- --
- -- ARM CortexM3 Architecture
- -- STMicroelectronics STM32L Family Devices
- --
- --
- stm32_memory_f30 = { "128", "256" }
- stm32_memory_f37 = { "64", "128", "256" }
- stm32f3_device_class = { "STM32F302" , "STM32F303", "STM32F313", "STM32F373", "STM32F383" }
- -- *****************************************************************************
- -- STM32F30 Family
- -- *****************************************************************************
- --
- nutarch_cm3_stm32f3 =
- {
- --
- -- MCU Family
- --
- {
- name = "nutarch_cm3_stm32f3_family",
- brief = "MCU F3 Family",
- requires = { "HW_MCU_STM32F3XX" },
- sources = { "cm3/dev/stm/stm32f30_clk.c" },
- options =
- {
- {
- macro = "MCU_STM32F3",
- brief = "STM32F3 family",
- type = "integer",
- default = 1,
- provides =
- {
- "HW_FLASH_STM32F1_3",
- "HW_GPIO_STM32V2",
- "HW_CRC32_STM32V2",
- "DEV_IRQ_STM32",
- "HW_DMA1_STM32F1",
- "HW_DMA2_STM32F1",
- "HW_EXTI04_STM32",
- "HW_EXTI95_STM32",
- "HW_EXTI1510_STM32",
- "HW_I2C1_STM32V2",
- "HW_I2C2_STM32V2",
- "HW_SPI1_STM32",
- "HW_SPI2_STM32",
- "HW_SPI3_STM32",
- "HW_USART1_STM32",
- "HW_USART2_STM32",
- "HW_USART3_STM32",
- "HW_CAN1_STM32",
- "HW_RTC_STM32_V2",
- "HW_TIM2_32BIT_STM32",
- "HW_TIM3_STM32",
- "HW_TIM4_STM32",
- "HW_TIM6_DAC_STM32",
- "HW_DAC1_STM32",
- "HW_GPIO",
- "HW_MCU_FPU",
- },
- file = "include/cfg/arch.h"
- },
- {
- macro = "STM32F30X",
- brief = "STM32F40X",
- brief = "Include needed for STM32F302/303/313",
- type = "integer",
- requires = { "STM32F30X" },
- default = 1,
- provides =
- {
- "HW_UART4_STM32",
- "HW_UART5_STM32",
- "HW_TIM1_TIM15_TIM16_TIM17_STM32",
- "HW_TIM8_STM32",
- "HW_ADC1_2_STM32",
- "HW_COMP1_2_3_STM32",
- "HW_COMP4_5_6_STM32",
- "HW_COMP7_STM32",
- "HW_OP1_2_STM32",
- },
- file = "include/cfg/arch.h"
- },
- {
- macro = "STM32F37X",
- brief = "STM32F37X",
- brief = "Include needed for STM32F373/385",
- type = "integer",
- requires = { "LICENSE_MCD_ST_LIBERTY", "LICENSE_ST_GUIDANCE_ONLY", "STM32F37X" },
- default = 1,
- provides =
- {
- "HW_TIM5_32BIT_STM32",
- "HW_TIM7_STM32",
- "HW_TIM12_STM32",
- "HW_TIM13_STM32",
- "HW_TIM14_STM32",
- "HW_TIM15_STM32",
- "HW_TIM16_STM32",
- "HW_TIM17_STM32",
- "HW_TIM18_DAC2_STM32",
- "HW_TIM19_STM32",
- "HW_CEC_STM32V2",
- "HW_ADC1_STM32",
- "HW_SDADC1_STM32",
- "HW_SDADC2_STM32",
- "HW_SDADC3_STM32",
- "HW_COMP_STM32",
- },
- makedefs = { "MCD_LICENSE=y" },
- file = "include/cfg/arch.h"
- },
- }
- },
- --
- -- STM32F30 Memory
- --
- {
- name = "nutarch_cm3_stm32F3_memory",
- brief = "STM32F30x Device Memory",
- requires = { "HW_MCU_STM32F3XX" },
- options =
- {
- {
- macro = "MCU_STM32F30X",
- brief = "STM32F30x memory",
- description = "Select your devices memory by the marked alphanumeric code on the chip:\n"..
- "STM32F30x>Y<zz where Y is one of the list below.\n\n"..
- "B = 128 kbytes Flash\n"..
- "C = 256 kbytes Flash\n",
- requires = { "HW_MCU_STM32F30X" },
- type = "enumerated",
- choices = stm32_memory_f30,
- file = "include/cfg/arch.h",
- },
- {
- macro = "MCU_STM32F37X",
- brief = "STM32F37x memory",
- description = "Select your devices memory by the marked alphanumeric code on the chip:\n"..
- "STM32F37x>Y<zz where Y is one of the list below.\n\n"..
- "8 = 64 kbytes Flash\n"..
- "B = 128 kbytes Flash\n"..
- "C = 256 kbytes Flash\n",
- requires = { "HW_MCU_STM32F37X" },
- type = "enumerated",
- choices = stm32_memory_f37,
- file = "include/cfg/arch.h",
- },
- }
- },
- }
|