diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/bsp.cpp b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/bsp.cpp index f84549b2113582d88bc2c4ca0983ba6492cb0107..3adec26d353ab655aa575c3d61fc194b385d93ff 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/bsp.cpp +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/bsp.cpp @@ -191,7 +191,18 @@ void IRQbspInit() RCC_SYNC(); #endif //__ENABLE_XRAM - _led::mode(Mode::OUTPUT); + leds::led0::mode(Mode::OUTPUT); + leds::led1::mode(Mode::OUTPUT); + leds::led2::mode(Mode::OUTPUT); + leds::led3::mode(Mode::OUTPUT); + leds::led4::mode(Mode::OUTPUT); + leds::led5::mode(Mode::OUTPUT); + leds::led6::mode(Mode::OUTPUT); + leds::led7::mode(Mode::OUTPUT); + leds::led8::mode(Mode::OUTPUT); + leds::led9::mode(Mode::OUTPUT); + + ledOn(); delayMs(100); ledOff(); diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/bsp_impl.h b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/bsp_impl.h index 4f180aa222b42edd1930729da22a44f9c512308f..11a6e354c5bfcbe46d7666e4a72de83ffbc495f2 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/bsp_impl.h +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/bsp_impl.h @@ -36,6 +36,7 @@ #include "config/miosix_settings.h" #include "interfaces/gpio.h" #include "drivers/stm32_hardware_rng.h" +#include "hwmapping.h" namespace miosix { @@ -51,20 +52,14 @@ namespace miosix { */ void configureSdram(); -/** - * \internal - * used by the ledOn() and ledOff() implementation - */ -typedef Gpio<GPIOB_BASE,0> _led; - inline void ledOn() { - _led::high(); + leds::led0::high(); } inline void ledOff() { - _led::low(); + leds::led0::low(); } /** diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h new file mode 100644 index 0000000000000000000000000000000000000000..2f3111f69b669c395fd2d729c8110113e8ead9e4 --- /dev/null +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h @@ -0,0 +1,154 @@ +/*************************************************************************** + * Copyright (C) 2016 by Terraneo Federico * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * As a special exception, if other files instantiate templates or use * + * macros or inline functions from this file, or you compile this file * + * and link it with other works to produce a work based on this file, * + * this file does not by itself cause the resulting work to be covered * + * by the GNU General Public License. However the source code for this * + * file must still be made available in accordance with the GNU General * + * Public License. This exception does not invalidate any other reasons * + * why a work based on this file might be covered by the GNU General * + * Public License. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, see <http://www.gnu.org/licenses/> * + ***************************************************************************/ + +#ifndef HWMAPPING_H +#define HWMAPPING_H + +#include "interfaces/gpio.h" + +namespace miosix { + +namespace leds { +using led0 = Gpio<GPIOB_BASE, 0>; //Green, mapped to ledOn()/ledOff() +using led1 = Gpio<GPIOA_BASE,15>; //Green +using led2 = Gpio<GPIOB_BASE, 4>; //Red +using led3 = Gpio<GPIOC_BASE, 4>; //Red +using led4 = Gpio<GPIOC_BASE, 5>; //Red +using led5 = Gpio<GPIOF_BASE, 6>; //Red +using led6 = Gpio<GPIOD_BASE, 3>; //Red +using led7 = Gpio<GPIOD_BASE, 4>; //Red +using led8 = Gpio<GPIOG_BASE, 2>; //Red +using led9 = Gpio<GPIOG_BASE, 3>; //Red +} //namespace leds + +namespace sensors { + +//Shared SPI bus among sensors +using sck = Gpio<GPIOA_BASE, 5>; +using miso = Gpio<GPIOA_BASE, 6>; +using mosi = Gpio<GPIOA_BASE, 7>; + +//Shared I2C bus among sensors +using sda = Gpio<GPIOB_BASE, 7>; +using scl = Gpio<GPIOB_BASE, 8>; + +//Gyro, SPI, 2MHz SCK max +namespace fxas21002 { +using cs = Gpio<GPIOG_BASE,10>; +using int1 = Gpio<GPIOD_BASE, 7>; +using int2 = Gpio<GPIOA_BASE, 8>; +} //namespace fxas21002 + +//Barometer, SPI, <FIXME>MHz SCK max +namespace lps331 { +using cs = Gpio<GPIOE_BASE, 4>; +using int1 = Gpio<GPIOA_BASE, 2>; +using int2 = Gpio<GPIOA_BASE, 3>; +} //namespace lps331 + +//IMU, SPI, 10MHz SCK max +namespace lsm9ds { +using csg = Gpio<GPIOG_BASE, 9>; +using csm = Gpio<GPIOG_BASE,11>; +using drdyg = Gpio<GPIOB_BASE,14>; +using int1g = Gpio<GPIOD_BASE,11>; +using int1m = Gpio<GPIOD_BASE,12>; +using int2m = Gpio<GPIOC_BASE,13>; +} //namespace lsm9ds + +//IMU, SPI, 10MHz SCK max +namespace max21105 { +using cs = Gpio<GPIOE_BASE, 2>; +using int1 = Gpio<GPIOE_BASE, 5>; +using int2 = Gpio<GPIOE_BASE, 6>; +} //namespace max21105 + +//Thermocouple, SPI, 5MHz SCK max +namespace max31856 { +using cs = Gpio<GPIOB_BASE,11>; +using drdy = Gpio<GPIOB_BASE, 9>; +using fault = Gpio<GPIOF_BASE,10>; +} //namespace max31856 + +//Barometer, I2C, 400KHz SCL max +namespace mpl3115 { +using int1 = Gpio<GPIOA_BASE, 1>; +using int2 = Gpio<GPIOA_BASE, 4>; +} //namespace mpl5115 + +//IMU, SPI, 1MHz SCK max +namespace mpu9250 { +using cs = Gpio<GPIOD_BASE,13>; +using int1 = Gpio<GPIOB_BASE,15>; +} //namespace mpu9250 + +//Barometer, SPI, 20MHz SCK max +namespace ms5803 { +using cs = Gpio<GPIOB_BASE,10>; +} //namespace ms5803 + +} //namespace sensors + +namespace can { +using tx1 = Gpio<GPIOA_BASE,12>; +using rx1 = Gpio<GPIOA_BASE,11>; +using tx2 = Gpio<GPIOB_BASE,13>; +using rx2 = Gpio<GPIOB_BASE,12>; +} //namespace can + +namespace eth { +using miso = Gpio<GPIOF_BASE, 8>; +using mosi = Gpio<GPIOF_BASE, 9>; +using sck = Gpio<GPIOF_BASE, 7>; +using cs = Gpio<GPIOE_BASE, 3>; +using int1 = Gpio<GPIOC_BASE, 1>; +} //namespace eth + +namespace wireless { +//FIXME cs is missing +using miso = Gpio<GPIOG_BASE,12>; +using mosi = Gpio<GPIOG_BASE,14>; +using sck = Gpio<GPIOG_BASE,13>; +} //namespace wireless + +namespace batteryManager { +using currentSense = Gpio<GPIOB_BASE, 1>; //analog +using voltageSense = Gpio<GPIOC_BASE, 3>; //analog +} //namespace batteryManager + +namespace misc { +using wkup = Gpio<GPIOA_BASE, 0>; +using adc1 = Gpio<GPIOC_BASE, 2>; //analog +using usart6tx = Gpio<GPIOC_BASE, 6>; +using usart6rx = Gpio<GPIOC_BASE, 7>; +using bootsel0 = Gpio<GPIOG_BASE, 6>; +using bootsel1 = Gpio<GPIOG_BASE, 7>; +} //namespace misc + +} //namespace miosix + +#endif //HWMAPPING_H diff --git a/miosix_np_2/nbproject/configurations.xml b/miosix_np_2/nbproject/configurations.xml index a6b99ae5cfefcbc05aae6e714cd2912a8ec0955a..a4b2aa4dbb11dc18ec9c3ac4cac3da5f6d4727cd 100644 --- a/miosix_np_2/nbproject/configurations.xml +++ b/miosix_np_2/nbproject/configurations.xml @@ -271,9 +271,7 @@ <df name="cortexM4_stm32f4"> <df name="common"> <df name="interfaces-impl"> - <in>atomic_ops_impl.h</in> <in>delays.cpp</in> - <in>endianness_impl.h</in> <in>gpio_impl.cpp</in> <in>gpio_impl.h</in> <in>portability.cpp</in> @@ -318,6 +316,15 @@ <in>hwmapping.h</in> </df> </df> + <df name="stm32f429zi_skyward_anakin"> + <df name="core"> + <in>stage_1_boot.cpp</in> + </df> + <df name="interfaces-impl"> + <in>bsp.cpp</in> + <in>hwmapping.h</in> + </df> + </df> <df name="stm32f429zi_stm32f4discovery"> <df name="core"> <in>stage_1_boot.cpp</in> @@ -406,12 +413,16 @@ <in>scheduler.h</in> <in>tick_interrupt.h</in> </df> + <in>SystemMap.cpp</in> + <in>elf_program.cpp</in> <in>error.cpp</in> <in>error.h</in> <in>intrusive.h</in> <in>kernel.cpp</in> <in>kernel.h</in> <in>logging.h</in> + <in>process.cpp</in> + <in>process_pool.cpp</in> <in>pthread.cpp</in> <in>pthread_private.h</in> <in>queue.h</in> @@ -419,6 +430,7 @@ <in>stage_2_boot.h</in> <in>sync.cpp</in> <in>sync.h</in> + <in>timeconversion.cpp</in> </df> <df name="stdlib_integration"> <in>libc_integration.cpp</in> @@ -916,21 +928,11 @@ tool="3" flavor2="0"> </item> - <item path="../miosix/arch/cortexM4_stm32f4/common/interfaces-impl/atomic_ops_impl.h" - ex="false" - tool="3" - flavor2="0"> - </item> <item path="../miosix/arch/cortexM4_stm32f4/common/interfaces-impl/delays.cpp" ex="false" tool="1" flavor2="0"> </item> - <item path="../miosix/arch/cortexM4_stm32f4/common/interfaces-impl/endianness_impl.h" - ex="false" - tool="3" - flavor2="0"> - </item> <item path="../miosix/arch/cortexM4_stm32f4/common/interfaces-impl/gpio_impl.cpp" ex="false" tool="1" @@ -981,6 +983,11 @@ tool="3" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/config/miosix_settings.h" ex="false" tool="3" flavor2="0"> </item> <item path="../miosix/e20/callback.h" ex="false" tool="3" flavor2="0"> @@ -1348,6 +1355,11 @@ </incDir> </ccTool> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -1898,6 +1910,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -2513,6 +2530,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -3078,6 +3100,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -3591,6 +3618,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -4206,6 +4238,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -4842,6 +4879,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -5489,6 +5531,11 @@ </incDir> </ccTool> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -6114,6 +6161,11 @@ </incDir> </ccTool> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -6658,6 +6710,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -7133,6 +7190,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -7661,6 +7723,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -8259,6 +8326,11 @@ </incDir> </ccTool> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -8762,6 +8834,11 @@ </incDir> </ccTool> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/core/stage_1_boot.cpp" ex="false" tool="1" @@ -9391,6 +9468,11 @@ tool="3" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -9870,6 +9952,11 @@ tool="1" flavor2="9"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -10421,6 +10508,11 @@ tool="3" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/core/stage_1_boot.cpp" ex="false" tool="1" @@ -10933,9 +11025,6 @@ <dependencyChecking>false</dependencyChecking> <rebuildPropChanged>false</rebuildPropChanged> </toolsSet> - <flagsDictionary> - <element flagsID="0" commonFlags="-std=c89"/> - </flagsDictionary> <codeAssistance> </codeAssistance> <makefileType> @@ -11053,6 +11142,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -11552,9 +11646,6 @@ <dependencyChecking>false</dependencyChecking> <rebuildPropChanged>false</rebuildPropChanged> </toolsSet> - <flagsDictionary> - <element flagsID="0" commonFlags="-std=c89"/> - </flagsDictionary> <codeAssistance> </codeAssistance> <makefileType> @@ -11740,6 +11831,11 @@ tool="1" flavor2="0"> </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/hwmapping.h" + ex="false" + tool="3" + flavor2="0"> + </item> <item path="../miosix/filesystem/console/console_device.cpp" ex="false" tool="1" @@ -12358,5 +12454,461 @@ </ccTool> </folder> </conf> + <conf name="stm32f429zi_skyward_anakin" type="0"> + <toolsSet> + <compilerSet>ARM_MIOSIX_EABI|GNU</compilerSet> + <dependencyChecking>false</dependencyChecking> + <rebuildPropChanged>false</rebuildPropChanged> + </toolsSet> + <flagsDictionary> + <element flagsID="0" commonFlags="-O2 -g"/> + <element flagsID="1" commonFlags="-std=gnu++11 -O2"/> + </flagsDictionary> + <codeAssistance> + </codeAssistance> + <makefileType> + <makeTool> + <buildCommandWorkingDir>..</buildCommandWorkingDir> + <buildCommand>${MAKE} -f Makefile</buildCommand> + <cleanCommand>${MAKE} -f Makefile clean</cleanCommand> + <executablePath>../main.elf</executablePath> + <cTool> + <incDir> + <pElem>../miosix</pElem> + <pElem>../miosix/config/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + <pElem>../miosix/arch/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + </incDir> + <preprocessorList> + <Elem>COMPILING_MIOSIX</Elem> + <Elem>HSE_VALUE=25000000</Elem> + <Elem>SYSCLK_FREQ_180MHz=180000000</Elem> + <Elem>_ARCH_CORTEXM4_STM32F4</Elem> + <Elem>_BOARD_STM32F429ZI_SKYWARD_ANAKIN</Elem> + <Elem>_MIOSIX_BOARDNAME="stm32f429zi_skyward_anakin"</Elem> + </preprocessorList> + <undefinedList> + <Elem>__SOFTFP__</Elem> + </undefinedList> + </cTool> + <ccTool> + <standard>8</standard> + <preprocessorList> + <Elem>_ARCH_CORTEXM4_STM32F4</Elem> + <Elem>_BOARD_STM32F429ZI_SKYWARD_ANAKIN</Elem> + </preprocessorList> + <undefinedList> + <Elem>__SOFTFP__</Elem> + </undefinedList> + </ccTool> + </makeTool> + </makefileType> + <item path="../main.cpp" ex="false" tool="1" flavor2="8"> + <ccTool flags="1"> + <incDir> + <pElem>../miosix</pElem> + <pElem>../miosix/config/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + <pElem>..</pElem> + <pElem>../miosix/arch/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + </incDir> + <preprocessorList> + <Elem>HSE_VALUE=25000000</Elem> + <Elem>SYSCLK_FREQ_180MHz=180000000</Elem> + <Elem>_MIOSIX_BOARDNAME="stm32f429zi_skyward_anakin"</Elem> + </preprocessorList> + </ccTool> + </item> + <item path="../miosix/arch/common/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c" + ex="false" + tool="0" + flavor2="2"> + </item> + <item path="../miosix/arch/common/core/interrupts_cortexMx.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/common/drivers/dcc.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/common/drivers/sd_stm32f2_f4.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/common/drivers/serial_stm32.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/common/drivers/stm32_hardware_rng.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/cortexM4_stm32f4/common/interfaces-impl/delays.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/cortexM4_stm32f4/common/interfaces-impl/gpio_impl.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/cortexM4_stm32f4/common/interfaces-impl/portability.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/core/stage_1_boot.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/interfaces-impl/bsp.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/core/stage_1_boot.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/interfaces-impl/bsp.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/e20/e20.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/filesystem/console/console_device.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/filesystem/devfs/devfs.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/filesystem/fat32/ccsbcs.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/filesystem/fat32/diskio.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/filesystem/fat32/fat32.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/filesystem/fat32/ff.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/filesystem/fat32/wtoupper.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/filesystem/file.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/filesystem/file_access.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/filesystem/mountpointfs/mountpointfs.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/filesystem/stringpart.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/kernel/SystemMap.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/kernel/elf_program.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/kernel/error.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/kernel/kernel.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/kernel/process.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/kernel/process_pool.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/kernel/pthread.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/kernel/scheduler/control/control_scheduler.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/kernel/scheduler/edf/edf_scheduler.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/kernel/scheduler/priority/priority_scheduler.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/kernel/stage_2_boot.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/kernel/sync.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/kernel/timeconversion.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/stdlib_integration/libc_integration.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/stdlib_integration/libstdcpp_integration.cpp" + ex="false" + tool="1" + flavor2="8"> + </item> + <item path="../miosix/util/crc16.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/util/lcd44780.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/util/unicode.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/util/util.cpp" ex="false" tool="1" flavor2="8"> + </item> + <item path="../miosix/util/version.cpp" ex="false" tool="1" flavor2="8"> + </item> + <folder path="0/miosix"> + <ccTool> + <preprocessorList> + <Elem>COMPILING_MIOSIX</Elem> + </preprocessorList> + </ccTool> + </folder> + <folder path="0/miosix/arch/common"> + <ccTool> + <incDir> + <pElem>../miosix</pElem> + <pElem>../miosix/config/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + <pElem>../miosix/arch/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + </incDir> + <preprocessorList> + <Elem>HSE_VALUE=25000000</Elem> + <Elem>SYSCLK_FREQ_180MHz=180000000</Elem> + <Elem>_MIOSIX_BOARDNAME="stm32f429zi_skyward_anakin"</Elem> + </preprocessorList> + </ccTool> + </folder> + <folder path="0/miosix/arch/cortexM4_stm32f4/common"> + <ccTool> + <incDir> + <pElem>../miosix</pElem> + <pElem>../miosix/config/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + <pElem>../miosix/arch/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + </incDir> + <preprocessorList> + <Elem>HSE_VALUE=25000000</Elem> + <Elem>SYSCLK_FREQ_180MHz=180000000</Elem> + <Elem>_MIOSIX_BOARDNAME="stm32f429zi_skyward_anakin"</Elem> + </preprocessorList> + </ccTool> + </folder> + <folder path="0/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/core"> + <ccTool> + <incDir> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/core</pElem> + <pElem>../miosix/arch/common/CMSIS/Include</pElem> + <pElem>../miosix/arch/common/CMSIS/Device/ST/STM32F4xx/Include</pElem> + <pElem>../miosix/arch/common/core</pElem> + <pElem>../miosix</pElem> + </incDir> + </ccTool> + </folder> + <folder path="0/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/interfaces-impl"> + <ccTool> + <incDir> + <pElem>../miosix/kernel</pElem> + <pElem>../miosix/arch/common/CMSIS/Include</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common/interfaces-impl</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/interfaces-impl</pElem> + <pElem>../miosix/filesystem</pElem> + <pElem>/opt/arm-miosix-eabi/arm-miosix-eabi/include/c++/4.7.3/arm-miosix-eabi/thumb/cm4/hardfp/fpv4/bits</pElem> + <pElem>../miosix/arch/common/CMSIS/Device/ST/STM32F4xx/Include</pElem> + <pElem>../miosix/filesystem/console</pElem> + <pElem>../miosix/arch/common/drivers</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery</pElem> + <pElem>../miosix/config</pElem> + <pElem>../miosix/kernel/scheduler/control</pElem> + <pElem>../miosix/interfaces</pElem> + <pElem>../miosix</pElem> + <pElem>../miosix/arch/common</pElem> + </incDir> + </ccTool> + </folder> + <folder path="0/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin"> + <ccTool> + <incDir> + <pElem>../miosix</pElem> + <pElem>../miosix/config/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + <pElem>../miosix/arch/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + </incDir> + <preprocessorList> + <Elem>HSE_VALUE=25000000</Elem> + <Elem>SYSCLK_FREQ_180MHz=180000000</Elem> + <Elem>_MIOSIX_BOARDNAME="stm32f429zi_skyward_anakin"</Elem> + </preprocessorList> + </ccTool> + </folder> + <folder path="0/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery"> + <ccTool> + <preprocessorList> + <Elem>PARSING_FROM_IDE</Elem> + <Elem>SYSCLK_FREQ_168MHz</Elem> + <Elem>__ENABLE_XRAM</Elem> + <Elem>__VFP_FP__</Elem> + </preprocessorList> + <undefinedList> + <Elem>__SOFTFP__</Elem> + </undefinedList> + </ccTool> + </folder> + <folder path="0/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/core"> + <ccTool> + <incDir> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/core</pElem> + <pElem>../miosix/arch/common/CMSIS/Include</pElem> + <pElem>../miosix/arch/common/CMSIS/Device/ST/STM32F4xx/Include</pElem> + <pElem>../miosix/arch/common/core</pElem> + <pElem>../miosix</pElem> + </incDir> + </ccTool> + </folder> + <folder path="0/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/interfaces-impl"> + <ccTool> + <incDir> + <pElem>../miosix/kernel</pElem> + <pElem>../miosix/arch/common/CMSIS/Include</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common/interfaces-impl</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/interfaces-impl</pElem> + <pElem>../miosix/filesystem</pElem> + <pElem>/opt/arm-miosix-eabi/arm-miosix-eabi/include/c++/4.7.3/arm-miosix-eabi/thumb/cm4/hardfp/fpv4/bits</pElem> + <pElem>../miosix/arch/common/CMSIS/Device/ST/STM32F4xx/Include</pElem> + <pElem>../miosix/filesystem/console</pElem> + <pElem>../miosix/arch/common/drivers</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery</pElem> + <pElem>../miosix/config</pElem> + <pElem>../miosix/kernel/scheduler/control</pElem> + <pElem>../miosix/interfaces</pElem> + <pElem>../miosix</pElem> + <pElem>../miosix/arch/common</pElem> + </incDir> + </ccTool> + </folder> + <folder path="0/miosix/e20"> + <ccTool> + <incDir> + <pElem>../miosix</pElem> + <pElem>../miosix/config/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + <pElem>../miosix/arch/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + </incDir> + <preprocessorList> + <Elem>HSE_VALUE=25000000</Elem> + <Elem>SYSCLK_FREQ_180MHz=180000000</Elem> + <Elem>_MIOSIX_BOARDNAME="stm32f429zi_skyward_anakin"</Elem> + </preprocessorList> + </ccTool> + </folder> + <folder path="0/miosix/filesystem"> + <ccTool> + <incDir> + <pElem>../miosix</pElem> + <pElem>../miosix/config/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + <pElem>../miosix/arch/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + </incDir> + <preprocessorList> + <Elem>HSE_VALUE=25000000</Elem> + <Elem>SYSCLK_FREQ_180MHz=180000000</Elem> + <Elem>_MIOSIX_BOARDNAME="stm32f429zi_skyward_anakin"</Elem> + </preprocessorList> + </ccTool> + </folder> + <folder path="0/miosix/kernel"> + <ccTool> + <incDir> + <pElem>../miosix</pElem> + <pElem>../miosix/config/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + <pElem>../miosix/arch/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + </incDir> + <preprocessorList> + <Elem>HSE_VALUE=25000000</Elem> + <Elem>SYSCLK_FREQ_180MHz=180000000</Elem> + <Elem>_MIOSIX_BOARDNAME="stm32f429zi_skyward_anakin"</Elem> + </preprocessorList> + </ccTool> + </folder> + <folder path="0/miosix/stdlib_integration"> + <ccTool> + <incDir> + <pElem>../miosix</pElem> + <pElem>../miosix/config/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + <pElem>../miosix/arch/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + </incDir> + <preprocessorList> + <Elem>HSE_VALUE=25000000</Elem> + <Elem>SYSCLK_FREQ_180MHz=180000000</Elem> + <Elem>_MIOSIX_BOARDNAME="stm32f429zi_skyward_anakin"</Elem> + </preprocessorList> + </ccTool> + </folder> + <folder path="0/miosix/util"> + <ccTool> + <incDir> + <pElem>../miosix</pElem> + <pElem>../miosix/config/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + <pElem>../miosix/arch/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/common</pElem> + <pElem>../miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin</pElem> + </incDir> + <preprocessorList> + <Elem>HSE_VALUE=25000000</Elem> + <Elem>SYSCLK_FREQ_180MHz=180000000</Elem> + <Elem>_MIOSIX_BOARDNAME="stm32f429zi_skyward_anakin"</Elem> + </preprocessorList> + </ccTool> + </folder> + </conf> </confs> </configurationDescriptor> diff --git a/miosix_np_2/nbproject/private/configurations.xml b/miosix_np_2/nbproject/private/configurations.xml index d9a975f1721be4c2882959aae5e30235443e8e97..f63d12e98889bdce40c13597e4a35bd128a54599 100644 --- a/miosix_np_2/nbproject/private/configurations.xml +++ b/miosix_np_2/nbproject/private/configurations.xml @@ -413,9 +413,7 @@ <df name="cortexM4_stm32f4"> <df name="common"> <df name="interfaces-impl"> - <in>atomic_ops_impl.h</in> <in>delays.cpp</in> - <in>endianness_impl.h</in> <in>gpio_impl.cpp</in> <in>gpio_impl.h</in> <in>portability.cpp</in> @@ -464,6 +462,17 @@ <in>hwmapping.h</in> </df> </df> + <df name="stm32f429zi_skyward_anakin"> + <df name="core"> + <in>stage_1_boot.cpp</in> + </df> + <df name="interfaces-impl"> + <in>arch_registers_impl.h</in> + <in>bsp.cpp</in> + <in>bsp_impl.h</in> + <in>hwmapping.h</in> + </df> + </df> <df name="stm32f429zi_stm32f4discovery"> <df name="core"> <in>stage_1_boot.cpp</in> @@ -543,6 +552,9 @@ <df name="stm32f429zi_oledboard2"> <in>board_settings.h</in> </df> + <df name="stm32f429zi_skyward_anakin"> + <in>board_settings.h</in> + </df> <df name="stm32f429zi_stm32f4discovery"> <in>board_settings.h</in> </df> @@ -1573,5 +1585,50 @@ </environment> </runprofile> </conf> + <conf name="stm32f429zi_skyward_anakin" type="0"> + <toolsSet> + <developmentServer>localhost</developmentServer> + <platform>2</platform> + </toolsSet> + <compile> + <compiledirpicklist> + <compiledirpicklistitem>.</compiledirpicklistitem> + <compiledirpicklistitem>${AUTO_FOLDER}</compiledirpicklistitem> + </compiledirpicklist> + <compiledir>${AUTO_FOLDER}</compiledir> + <compilecommandpicklist> + <compilecommandpicklistitem>${MAKE} ${ITEM_NAME}.o</compilecommandpicklistitem> + <compilecommandpicklistitem>${AUTO_COMPILE}</compilecommandpicklistitem> + </compilecommandpicklist> + <compilecommand>${AUTO_COMPILE}</compilecommand> + </compile> + <dbx_gdbdebugger version="1"> + <gdb_pathmaps> + </gdb_pathmaps> + <gdb_interceptlist> + <gdbinterceptoptions gdb_all="false" gdb_unhandled="true" gdb_unexpected="true"/> + </gdb_interceptlist> + <gdb_options> + <DebugOptions> + </DebugOptions> + </gdb_options> + <gdb_buildfirst gdb_buildfirst_overriden="false" gdb_buildfirst_old="false"/> + </dbx_gdbdebugger> + <nativedebugger version="1"> + <engine>gdb</engine> + </nativedebugger> + <runprofile version="9"> + <runcommandpicklist> + <runcommandpicklistitem>"${OUTPUT_PATH}"</runcommandpicklistitem> + </runcommandpicklist> + <runcommand>"${OUTPUT_PATH}"</runcommand> + <rundir></rundir> + <buildfirst>true</buildfirst> + <terminal-type>0</terminal-type> + <remove-instrumentation>0</remove-instrumentation> + <environment> + </environment> + </runprofile> + </conf> </confs> </configurationDescriptor> diff --git a/miosix_np_2/nbproject/private/stm32f429zi_skyward_anakin.properties b/miosix_np_2/nbproject/private/stm32f429zi_skyward_anakin.properties new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/miosix_np_2/nbproject/project.xml b/miosix_np_2/nbproject/project.xml index e5f9db4bc6770c519a59e378fd9699a163478055..bb8e934ca8fde84c0e41fdc4f76545763eb14814 100644 --- a/miosix_np_2/nbproject/project.xml +++ b/miosix_np_2/nbproject/project.xml @@ -94,6 +94,10 @@ <name>stm32f411re_nucleo</name> <type>0</type> </confElem> + <confElem> + <name>stm32f429zi_skyward_anakin</name> + <type>0</type> + </confElem> </confList> <formatting> <project-formatting-style>false</project-formatting-style>