You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/02/10 19:59:45 UTC
[25/25] incubator-mynewt-larva git commit: Moving STM32F3xx support
to a separate repository.
Moving STM32F3xx support to a separate repository.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/38e36345
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/38e36345
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/38e36345
Branch: refs/heads/master
Commit: 38e3634565451f44b7213a0a8395ba70bb5ca60b
Parents: 425a925
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Feb 10 10:57:57 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Feb 10 10:57:57 2016 -0800
----------------------------------------------------------------------
clutch.yml | 338 +-
.../stm32f3discovery/boot-stm32f3discovery.ld | 68 -
hw/bsp/stm32f3discovery/egg.yml | 27 -
hw/bsp/stm32f3discovery/include/bsp/bsp.h | 47 -
.../stm32f3discovery/include/bsp/cmsis_nvic.h | 48 -
.../src/arch/cortex_m4/startup_stm32f303xc.s | 489 -
hw/bsp/stm32f3discovery/src/hal_bsp.c | 60 -
hw/bsp/stm32f3discovery/src/libc_stubs.c | 84 -
hw/bsp/stm32f3discovery/src/os_bsp.c | 71 -
hw/bsp/stm32f3discovery/src/sbrk.c | 46 -
hw/bsp/stm32f3discovery/src/system_stm32f30x.c | 376 -
hw/bsp/stm32f3discovery/stm32f3discovery.ld | 71 -
.../stm32f3discovery/stm32f3discovery_debug.sh | 46 -
.../stm32f3discovery_download.sh | 65 -
hw/mcu/stm/stm32f3xx/egg.yml | 24 -
hw/mcu/stm/stm32f3xx/include/mcu/cortex_m4.h | 25 -
hw/mcu/stm/stm32f3xx/include/mcu/stm32f30x.h | 9086 ------------------
.../stm/stm32f3xx/include/mcu/stm32f30x_adc.h | 820 --
.../stm/stm32f3xx/include/mcu/stm32f30x_can.h | 643 --
.../stm/stm32f3xx/include/mcu/stm32f30x_comp.h | 435 -
.../stm/stm32f3xx/include/mcu/stm32f30x_crc.h | 121 -
.../stm/stm32f3xx/include/mcu/stm32f30x_dac.h | 322 -
.../stm32f3xx/include/mcu/stm32f30x_dbgmcu.h | 110 -
.../stm/stm32f3xx/include/mcu/stm32f30x_dma.h | 436 -
.../stm/stm32f3xx/include/mcu/stm32f30x_exti.h | 234 -
.../stm/stm32f3xx/include/mcu/stm32f30x_flash.h | 334 -
.../stm/stm32f3xx/include/mcu/stm32f30x_fmc.h | 722 --
.../stm/stm32f3xx/include/mcu/stm32f30x_gpio.h | 404 -
.../stm/stm32f3xx/include/mcu/stm32f30x_hrtim.h | 2741 ------
.../stm/stm32f3xx/include/mcu/stm32f30x_i2c.h | 477 -
.../stm/stm32f3xx/include/mcu/stm32f30x_iwdg.h | 153 -
.../stm/stm32f3xx/include/mcu/stm32f30x_misc.h | 204 -
.../stm/stm32f3xx/include/mcu/stm32f30x_opamp.h | 277 -
.../stm/stm32f3xx/include/mcu/stm32f30x_pwr.h | 187 -
.../stm/stm32f3xx/include/mcu/stm32f30x_rcc.h | 731 --
.../stm/stm32f3xx/include/mcu/stm32f30x_rtc.h | 852 --
.../stm/stm32f3xx/include/mcu/stm32f30x_spi.h | 608 --
.../stm32f3xx/include/mcu/stm32f30x_syscfg.h | 427 -
.../stm/stm32f3xx/include/mcu/stm32f30x_tim.h | 1360 ---
.../stm/stm32f3xx/include/mcu/stm32f30x_usart.h | 607 --
.../stm/stm32f3xx/include/mcu/stm32f30x_wwdg.h | 109 -
hw/mcu/stm/stm32f3xx/include/mcu/stm32f3_bsp.h | 48 -
.../stm32f3xx/include/mcu/system_stm32f30x.h | 93 -
hw/mcu/stm/stm32f3xx/src/hal_flash.c | 126 -
hw/mcu/stm/stm32f3xx/src/hal_gpio.c | 693 --
hw/mcu/stm/stm32f3xx/src/hal_system.c | 35 -
hw/mcu/stm/stm32f3xx/src/hal_system_start.c | 48 -
hw/mcu/stm/stm32f3xx/src/hal_uart.c | 327 -
hw/mcu/stm/stm32f3xx/src/stm32f30x_adc.c | 2401 -----
hw/mcu/stm/stm32f3xx/src/stm32f30x_can.c | 1629 ----
hw/mcu/stm/stm32f3xx/src/stm32f30x_comp.c | 507 -
hw/mcu/stm/stm32f3xx/src/stm32f30x_crc.c | 354 -
hw/mcu/stm/stm32f3xx/src/stm32f30x_dac.c | 754 --
hw/mcu/stm/stm32f3xx/src/stm32f30x_dbgmcu.c | 216 -
hw/mcu/stm/stm32f3xx/src/stm32f30x_dma.c | 866 --
hw/mcu/stm/stm32f3xx/src/stm32f30x_exti.c | 349 -
hw/mcu/stm/stm32f3xx/src/stm32f30x_flash.c | 1186 ---
hw/mcu/stm/stm32f3xx/src/stm32f30x_fmc.c | 1001 --
hw/mcu/stm/stm32f3xx/src/stm32f30x_gpio.c | 545 --
hw/mcu/stm/stm32f3xx/src/stm32f30x_hrtim.c | 4104 --------
hw/mcu/stm/stm32f3xx/src/stm32f30x_i2c.c | 1585 ---
hw/mcu/stm/stm32f3xx/src/stm32f30x_iwdg.c | 288 -
hw/mcu/stm/stm32f3xx/src/stm32f30x_misc.c | 230 -
hw/mcu/stm/stm32f3xx/src/stm32f30x_opamp.c | 575 --
hw/mcu/stm/stm32f3xx/src/stm32f30x_pwr.c | 538 --
hw/mcu/stm/stm32f3xx/src/stm32f30x_rcc.c | 2017 ----
hw/mcu/stm/stm32f3xx/src/stm32f30x_rtc.c | 2598 -----
hw/mcu/stm/stm32f3xx/src/stm32f30x_spi.c | 1417 ---
hw/mcu/stm/stm32f3xx/src/stm32f30x_syscfg.c | 569 --
hw/mcu/stm/stm32f3xx/src/stm32f30x_tim.c | 4006 --------
hw/mcu/stm/stm32f3xx/src/stm32f30x_usart.c | 2084 ----
hw/mcu/stm/stm32f3xx/src/stm32f30x_wwdg.c | 304 -
72 files changed, 174 insertions(+), 55604 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/clutch.yml
----------------------------------------------------------------------
diff --git a/clutch.yml b/clutch.yml
index bae7a4a..dc7aeea 100644
--- a/clutch.yml
+++ b/clutch.yml
@@ -20,171 +20,150 @@
name: larva
url: https://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva
eggs:
- sys/config:
+ project/slinky:
vers: 0.1.0
- hash: 8578de6601b3f393c8f4c9cb41e226372cec931a
+ hash: 8a2318901967e44df05e68d6f03eba91d8491e8a
deps:
- - libs/util@none#stable
- - libs/testutil@none#stable
- libs/cmsis-core:
- vers: 0.1.0
- hash: 7cab0f32b7ad6a9c0564734e6effa4fba371fa8d
- fs/nffs:
+ - libs/os@none#stable
+ - libs/console/full@none#stable
+ - libs/shell@none#stable
+ - libs/newtmgr@none#stable
+ - libs/imgmgr@none#stable
+ - sys/config@none#stable
+ - sys/log@none#stable
+ - sys/stats@none#stable
+ sys/log:
vers: 0.1.0
- hash: be26b47bc55e7721f937313685928ad8150118b7
+ hash: 2b358d4461786c92bf492807743ceee463d34fef
deps:
- - fs/fs@none#stable
- libs/os@none#stable
+ - libs/util@none#stable
- libs/testutil@none#stable
- - hw/hal@none#stable
project/bin2img:
vers: 0.1.0
- hash: e650a5a7cd19b23d1fc26f4b3f1bb63787a95741
+ hash: 25a2173d8a47cf031933e19e54bb165b5de3a04c
deps:
- libs/bootutil@none#stable
- libs/console/stub@none#stable
- libs/os:
+ libs/imgmgr:
vers: 0.1.0
- hash: 999a3419d9959d3c39b11dcc67d79c7888b4b765
+ hash: 529d9416d46d4c907a6a7e0e4fde61754aff275e
deps:
- - libs/testutil@none#stable
- req_caps:
- - console@none#stable
- hw/bsp/nrf52pdk:
+ - libs/newtmgr@none#stable
+ - libs/bootutil@none#stable
+ net/nimble/drivers/nrf51:
+ vers: 0.1.0
+ hash: 3f1b843ccf32a16519cf22b04c67fd38ffef86bc
+ deps:
+ - net/nimble@none#stable
+ - net/nimble/controller@none#stable
+ caps:
+ - ble_driver@none#stable
+ hw/mcu/stm/stm32f4xx:
vers: 0.0.0
- hash: 184a9c692cecd96a437dc03f9d8df28cfe2ac68f
+ hash: 3198e51a11fb5dce063d4f2edb07960a2f3e4080
deps:
- - hw/mcu/nordic/nrf52xxx@none#stable
- sys/log:
+ - hw/hal@none#stable
+ - libs/cmsis-core@none#stable
+ - compiler/arm-none-eabi-m4@none#stable
+ net/nimble/drivers/native:
vers: 0.1.0
- hash: 384ceb0738031f20d556a9b47c390c843cc33417
+ hash: 6fca9ed4ea5ddb41058ab84885534b0ad784ad6f
deps:
- - libs/os@none#stable
- - libs/util@none#stable
- - libs/testutil@none#stable
- net/nimble/controller:
+ - net/nimble/controller@none#stable
+ caps:
+ - ble_driver@none#stable
+ hw/mcu/nordic/nrf52xxx:
+ vers: 0.0.0
+ hash: 9c4508f4a14f03ca0103f53693e63956aa527b68
+ deps:
+ - hw/hal@none#stable
+ - libs/cmsis-core@none#stable
+ - compiler/arm-none-eabi-m4@none#stable
+ net/nimble:
vers: 0.1.0
- hash: 1a5102798de55c201734ffbea5274ff7662c43c3
+ hash: 8977b8da604d9779d51baf4aacabef5af2771bf7
deps:
- libs/os@none#stable
- - net/nimble@none#stable
- project/ffs2native:
+ hw/bsp/olimex_stm32-e407_devboard:
vers: 0.0.0
- hash: 6617676c18ef2dd663199423c4f542716dc84fd9
+ hash: c0b075092ddd4a817825ff54d3b75452e83c1ac1
deps:
- - fs/nffs@none#stable
- - libs/os@none#stable
- - libs/console/full@none#stable
- - hw/hal@none#stable
- project/test:
+ - hw/mcu/stm/stm32f4xx@none#stable
+ net/nimble/host:
vers: 0.1.0
- hash: 8de883b9aa460677bb79da3c495fc654186b017e
+ hash: ae4217ae2cace3764218f6f39e6e8bef0b904906
deps:
- - fs/nffs@none#stable
- - libs/testutil@none#stable
+ - sys/log@none#stable
- libs/os@none#stable
- - libs/bootutil@none#stable
- - libs/testreport@none#stable
- fs/fs:
+ - libs/util@none#stable
+ - net/nimble@none#stable
+ req_caps:
+ - console@none#stable
+ hw/bsp/nrf52pdk:
vers: 0.0.0
- hash: 86cac156ad96629dc73d7a6946c2ed84939b092e
- libs/testreport:
- vers: 0.1.0
- hash: 2e0c4717854db44f444eaefdb8c70cab6b73540e
+ hash: e06a3ecff9bd5a794845954fb4a79c0e3d963fac
deps:
- - fs/nffs@none#stable
- - libs/testutil@none#stable
+ - hw/mcu/nordic/nrf52xxx@none#stable
+ fs/fs:
+ vers: 0.0.0
+ hash: 812ea76c6de66c98e3bd73d29f797e330294d02a
hw/hal:
vers: 0.1.0
- hash: fbef821bd064eec1f32262cf4c58786a3021badf
+ hash: 8501995490996dee7171e991b6711e8411415e79
deps:
- libs/os@none#stable
- hw/mcu/stm/stm32f4xx:
+ hw/bsp/nrf51dk:
vers: 0.0.0
- hash: d6e99052607c256b7bdbaf4d4d7759a7797f5c61
+ hash: b9954eb4bc04b7ee99d30af9c13e94144b0061a5
deps:
- - hw/hal@none#stable
- - libs/cmsis-core@none#stable
- - compiler/arm-none-eabi-m4@none#stable
- libs/elua/elua_base:
+ - hw/mcu/nordic/nrf51xxx@none#stable
+ libs/shell:
vers: 0.1.0
- hash: f5b8f98a502569b576b7b607989375109e3632cd
+ hash: 0aee03f15814ac6778da70a9f7759bcc9e4eb284
deps:
- - fs/fs@none#stable
+ - libs/os@none#stable
+ - libs/util@none#stable
+ libs/baselibc:
+ vers: 0.1.0
+ hash: 95bb9ca040a2dc5cd28a6b26438c829fca3ef3e8
req_caps:
- console@none#stable
- net/nimble:
+ fs/nffs:
vers: 0.1.0
- hash: 8977b8da604d9779d51baf4aacabef5af2771bf7
+ hash: 7e65335843074284bbfa68696e1d1f1f67398c18
deps:
+ - fs/fs@none#stable
- libs/os@none#stable
- libs/testutil:
+ - libs/testutil@none#stable
+ - hw/hal@none#stable
+ libs/testreport:
vers: 0.1.0
- hash: add443dad61fe668d87d21018c956ca8a6b44284
+ hash: abeb6678ec4ecaa37b7334e0b9afa3721b2a4a36
deps:
- - hw/hal@none#stable
- - libs/os@none#stable
+ - fs/nffs@none#stable
+ - libs/testutil@none#stable
+ libs/cmsis-core:
+ vers: 0.1.0
+ hash: 0371a4236e4163f4a314250fb91bb17bd1b343f2
libs/newtmgr:
vers: 0.1.0
- hash: 2821a89de5073692c450dc3a65e27c803a0a117f
+ hash: a28559a275b64c3de7998436aa99fb89fa0d0214
deps:
- libs/os@none#stable
- libs/json@none#stable
- libs/util@none#stable
- libs/testutil@none#stable
- libs/json:
- vers: 0.1.0
- hash: 59d0cdb993a7d2119b6b4762f0afd35dbff74192
- net/nimble/drivers/nrf52:
- vers: 0.1.0
- hash: fe5ba0eea64ecd695e6ee8158d33f27088c22a4f
- deps:
- - net/nimble@none#stable
- - net/nimble/controller@none#stable
- caps:
- - ble_driver@none#stable
- hw/mcu/nordic/nrf52xxx:
- vers: 0.0.0
- hash: ecf54263822ad63af448fbebb36b3f995a8eb4a0
- deps:
- - hw/hal@none#stable
- - libs/cmsis-core@none#stable
- - hw/bsp/nrf52pdk@none#stable
- - compiler/arm-none-eabi-m4@none#stable
- libs/baselibc:
- vers: 0.1.0
- hash: eb5303863ff41f7506409f3f7f479c0d9b6e1023
- req_caps:
- - console@none#stable
- hw/bsp/stm32f3discovery:
- vers: 0.0.0
- hash: 349b2dd7ee1bc786bf2977d27b41d2b28cb9a797
- deps:
- - hw/mcu/stm/stm32f3xx@none#stable
- hw/mcu/stm/stm32f3xx:
- vers: 0.0.0
- hash: b6d33266dae611775f932c5a84f97d1c242f24c4
- deps:
- - hw/hal@none#stable
- - libs/cmsis-core@none#stable
- - compiler/arm-none-eabi-m4@none#stable
- compiler/arm-none-eabi-m4:
- vers: 0.1.0
- hash: a599dc72f98dd3657280e12f980f0681d05c7899
- hw/bsp/native:
- vers: 0.0.0
- hash: d82608b67a68988fd1e5676c4ac2d97e2c51234c
- deps:
- - hw/mcu/native@none#stable
+ - libs/shell@none#stable
hw/mcu/native:
vers: 0.0.0
- hash: f2c5dd8c4f353fa93e3186badc0fdcceee89aa9b
+ hash: f25f5a78dd53a65b765a15044ed8c69b93f81f96
deps:
- hw/hal@none#stable
- compiler/sim@none#stable
project/boot:
vers: 0.1.0
- hash: 83dcb48e2aa27d61be605fa62f35f3921f21d527
+ hash: e79a208f48af8243c5255708258f1f906cdce2c8
deps:
- fs/nffs@none#stable
- libs/os@none#stable
@@ -192,99 +171,130 @@ eggs:
- libs/console/stub@none#stable
- libs/util@none#stable
- libs/baselibc@none#stable
+ compiler/arm-none-eabi-m0:
+ vers: 0.1.0
+ hash: 802819c5bb95a23cf1b0b628f03d4e3994dbd1e1
+ libs/testutil:
+ vers: 0.1.0
+ hash: 082140bcbb2649afc546f4835395cd35d54212e5
+ deps:
+ - hw/hal@none#stable
+ - libs/os@none#stable
compiler/sim:
vers: 0.1.0
- hash: 8175962f0b3d1765caca4383d9103ed2315df189
- libs/bootutil:
+ hash: 800fe0a056be68e33acad8cc65a121176aff5b07
+ libs/console/full:
vers: 0.1.0
- hash: cf63c7b6e78fb1b7ff97f491aa7839d87ffa1f10
+ hash: 7f986ef6a34daa205d0b8bc6b7a0227cabcdc502
deps:
- - fs/nffs@none#stable
+ - hw/hal@none#stable
- libs/os@none#stable
+ caps:
+ - console@none#stable
+ sys/config:
+ vers: 0.1.0
+ hash: 99b1f6f8a85c07fdff9e6cca9a90a0e6ffa29ab0
+ deps:
+ - libs/util@none#stable
- libs/testutil@none#stable
- - hw/hal@none#stable
- libs/imgmgr:
+ hw/bsp/native:
+ vers: 0.0.0
+ hash: df5cf1ea47a3f31cb7162af5504ff47ab29a3fb9
+ deps:
+ - hw/mcu/native@none#stable
+ libs/elua/elua_base:
vers: 0.1.0
- hash: 120b521a7868ff1ed939999c1b205f52fc5cd07f
+ hash: feb397aaa8c5c2d7d3612cb1123abb4bb3d2c4ca
deps:
- fs/fs@none#stable
- - libs/newtmgr@none#stable
- - libs/bootutil@none#stable
- project/blinky:
+ req_caps:
+ - console@none#stable
+ net/nimble/controller:
vers: 0.1.0
- hash: 812f11bbdc4dba191c0380f179179b0b58d68bf8
+ hash: aba9d8e3368f5069e3631acd8071c6a938753748
deps:
- libs/os@none#stable
- - libs/console/full@none#stable
- - libs/shell@none#stable
- - libs/newtmgr@none#stable
- - sys/config@none#stable
- - sys/log@none#stable
- - sys/stats@none#stable
+ - net/nimble@none#stable
libs/console/stub:
vers: 0.1.0
- hash: 7c23867d8436e85a64a296385acbf2b46de31fbb
+ hash: e9ba59892859b7034ee524716cb579ebe2472a37
caps:
- console@none#stable
- net/nimble/host:
+ libs/util:
vers: 0.1.0
- hash: 61fc89c142eb21239fb5087604764b96c6e99570
+ hash: 8f2b8877f88cc5a1be96e697db6056c7112f4d4a
deps:
+ - hw/hal@none#stable
- libs/os@none#stable
- - libs/util@none#stable
- - net/nimble@none#stable
- req_caps:
- - console@none#stable
- sys/stats:
- vers: 0.1.0
- hash: 117bc9979150e487a8ad1233b2d9dfd03541ba70
+ - libs/testutil@none#stable
+ project/ffs2native:
+ vers: 0.0.0
+ hash: 4e9ae167613bdbfb5da33024ad4fc809e56b7c4b
deps:
+ - fs/nffs@none#stable
- libs/os@none#stable
- - libs/util@none#stable
- - libs/testutil@none#stable
- project/slinky:
+ - libs/console/full@none#stable
+ - hw/hal@none#stable
+ project/test:
vers: 0.1.0
- hash: 02799a429901ce3ecb45aa5111936fa0f002086b
+ hash: 84e713d1c5a7600a9520c87f56be9b44c05dffb8
deps:
+ - fs/nffs@none#stable
+ - libs/testutil@none#stable
- libs/os@none#stable
- - libs/console/full@none#stable
- - libs/shell@none#stable
- - libs/newtmgr@none#stable
- - libs/imgmgr@none#stable
- - sys/config@none#stable
- - sys/log@none#stable
- - sys/stats@none#stable
- hw/bsp/olimex_stm32-e407_devboard:
+ - libs/bootutil@none#stable
+ - libs/testreport@none#stable
+ hw/mcu/nordic/nrf51xxx:
vers: 0.0.0
- hash: 47966e81eb3209e82fe32bd4f9d08b28de8b4034
- deps:
- - hw/mcu/stm/stm32f4xx@none#stable
- libs/console/full:
- vers: 0.1.0
- hash: ffaf06db6323dd580fa2ed882a22b82ebfe5068c
+ hash: 91a32b70837bc8013523e7588e9a40d3d5b6f593
deps:
- hw/hal@none#stable
- - libs/os@none#stable
- caps:
- - console@none#stable
- net/nimble/drivers/native:
+ - libs/cmsis-core@none#stable
+ - compiler/arm-none-eabi-m0@none#stable
+ libs/json:
+ vers: 0.1.0
+ hash: 6d506e742a62a62d033551dc3da0367908dfc36f
+ net/nimble/drivers/nrf52:
vers: 0.1.0
- hash: 13de7968a1adaaf85e542048c6edd409972056c6
+ hash: 54e483b13337054744f8cba57626ca66efc1e645
deps:
+ - net/nimble@none#stable
- net/nimble/controller@none#stable
caps:
- ble_driver@none#stable
- libs/shell:
+ compiler/arm-none-eabi-m4:
+ vers: 0.1.0
+ hash: 9885e21dadb7ad184079125f56d0523a4a2093f9
+ libs/os:
vers: 0.1.0
- hash: 1fa9c8fb9f71e29deb0d3f00725ce07eb1762a89
+ hash: 999a3419d9959d3c39b11dcc67d79c7888b4b765
+ deps:
+ - libs/testutil@none#stable
+ req_caps:
+ - console@none#stable
+ project/blinky:
+ vers: 0.1.0
+ hash: 9d94fa4ea2ad3bc8c9afd583968c202e24bfee53
deps:
+ - libs/os@none#stable
- libs/console/full@none#stable
+ - libs/shell@none#stable
+ - libs/newtmgr@none#stable
+ - sys/config@none#stable
+ - sys/log@none#stable
+ - sys/stats@none#stable
+ sys/stats:
+ vers: 0.1.0
+ hash: 91bc1ffe61f2f88127fd5a9af2df5a83cc6e47a0
+ deps:
- libs/os@none#stable
- libs/util@none#stable
- libs/util:
+ - libs/testutil@none#stable
+ libs/bootutil:
vers: 0.1.0
- hash: a4de3126f673ba134cd6492ef6486e64d08becb3
+ hash: cf63c7b6e78fb1b7ff97f491aa7839d87ffa1f10
deps:
- - hw/hal@none#stable
+ - fs/nffs@none#stable
- libs/os@none#stable
- libs/testutil@none#stable
+ - hw/hal@none#stable
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/boot-stm32f3discovery.ld
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/boot-stm32f3discovery.ld b/hw/bsp/stm32f3discovery/boot-stm32f3discovery.ld
deleted file mode 100755
index 7d135a0..0000000
--- a/hw/bsp/stm32f3discovery/boot-stm32f3discovery.ld
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-ENTRY(Reset_Handler)
-
-/*
- * Memory map
- */
-MEMORY {
- FLASH (rx): ORIGIN = 0x08000000, LENGTH = 32K
- CCRAM (rw): ORIGIN = 0x10000000, LENGTH = 8K
- SRAM (rw): ORIGIN = 0x20000000, LENGTH = 40K
-}
-
-/*
- * Define output sections
- */
-SECTIONS {
- .text : {
- _text = .;
- __isr_vector = .;
- KEEP(*(.isr_vector*))
- __eisr_vector = .;
- *(.text* .gnu.linkonce.t.*)
- _etext = .;
- . = ALIGN(4);
- *(.rodata*)
- } > FLASH
- .sram_isrs : {
- __vector_tbl_reloc__ = .;
- . = . + (__eisr_vector - __isr_vector);
- } > SRAM
- .data : {
- _sdata = .;
- _sidata = LOADADDR(.data);
- *(.data*)
- _edata = .;
- } > SRAM AT > FLASH
- .bss : {
- _sbss = .;
- __bss_start__ = .;
- *(.bss*)
- *(COMMON)
- __bss_end__ = .;
- _ebss = .;
- . = ALIGN(4);
- } > SRAM
- .heap : {
- _heap = .;
- } > SRAM
- _eheap = ORIGIN(SRAM) + LENGTH(SRAM);
- _estack = ORIGIN(CCRAM) + LENGTH(CCRAM);
-}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/egg.yml
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/egg.yml b/hw/bsp/stm32f3discovery/egg.yml
deleted file mode 100644
index 33e45f1..0000000
--- a/hw/bsp/stm32f3discovery/egg.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-egg.name: "hw/bsp/stm32f3discovery"
-egg.linkerscript: "stm32f3discovery.ld"
-egg.linkerscript.bootloader.OVERWRITE: "boot-stm32f3discovery.ld"
-egg.downloadscript: "stm32f3discovery_download.sh"
-egg.debugscript: "stm32f3discovery_debug.sh"
-egg.cflags: -DSTM32F303xC
-egg.deps:
- - hw/mcu/stm/stm32f3xx
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/include/bsp/bsp.h
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/include/bsp/bsp.h b/hw/bsp/stm32f3discovery/include/bsp/bsp.h
deleted file mode 100644
index d654c3f..0000000
--- a/hw/bsp/stm32f3discovery/include/bsp/bsp.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-#ifndef H_BSP_H
-#define H_BSP_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Define special stackos sections */
-#define sec_data_core __attribute__((section(".data.core")))
-#define sec_bss_core __attribute__((section(".bss.core")))
-#define sec_bss_nz_core __attribute__((section(".bss.core.nz")))
-
-/* More convenient section placement macros. */
-#define bssnz_t sec_bss_nz_core
-
-/* LED pins */
-#define LED_BLINK_PIN (72)
-
-/* UART ports */
-#define UART_CNT 1
-#define CONSOLE_UART 0
-
-int bsp_imgr_current_slot(void);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* H_BSP_H */
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/include/bsp/cmsis_nvic.h
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/include/bsp/cmsis_nvic.h b/hw/bsp/stm32f3discovery/include/bsp/cmsis_nvic.h
deleted file mode 100644
index a354b37..0000000
--- a/hw/bsp/stm32f3discovery/include/bsp/cmsis_nvic.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/* mbed Microcontroller Library - cmsis_nvic
- * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- *
- * CMSIS-style functionality to support dynamic vectors
- */
-
-#ifndef CMSIS_NVIC_H
-#define CMSIS_NVIC_H
-
-#include <stdint.h>
-
-#define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals
-#define NVIC_USER_IRQ_OFFSET 16
-
-#include "mcu/stm32f30x.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void NVIC_Relocate(void);
-void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
-uint32_t NVIC_GetVector(IRQn_Type IRQn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/src/arch/cortex_m4/startup_stm32f303xc.s
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/src/arch/cortex_m4/startup_stm32f303xc.s b/hw/bsp/stm32f3discovery/src/arch/cortex_m4/startup_stm32f303xc.s
deleted file mode 100644
index ccc7b1c..0000000
--- a/hw/bsp/stm32f3discovery/src/arch/cortex_m4/startup_stm32f303xc.s
+++ /dev/null
@@ -1,489 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/******************************************************************************
- * @file startup_stm32f303xc.s
- * @author MCD Application Team
- * @version V1.2.0
- * @date 19-June-2015
- * @brief STM32F303xB/STM32F303xC devices vector table for Atollic
- * TrueSTUDIO toolchain.
- * This module performs:
- * - Set the initial SP
- * - Set the initial PC == Reset_Handler,
- * - Set the vector table entries with the exceptions ISR address,
- * - Configure the clock system
- * - Branches to main in the C library (which eventually
- * calls main()).
- * After Reset the Cortex-M4 processor is in Thread mode,
- * priority is Privileged, and the Stack is set to Main.
- ******************************************************************************
- * @attention
- *
- * <h2><center>© COPYRIGHT 2015 STMicroelectronics</center></h2>
- *
- * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
- * You may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.st.com/software_license_agreement_liberty_v2
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- ******************************************************************************
- */
-
- .syntax unified
- .cpu cortex-m4
- .fpu softvfp
- .thumb
-
-.global g_pfnVectors
-.global Default_Handler
-
-/* start address for the initialization values of the .data section.
-defined in linker script */
-.word _sidata
-/* start address for the .data section. defined in linker script */
-.word _sdata
-/* end address for the .data section. defined in linker script */
-.word _edata
-/* start address for the .bss section. defined in linker script */
-.word _sbss
-/* end address for the .bss section. defined in linker script */
-.word _ebss
-
-.equ BootRAM, 0xF1E0F85F
-/**
- * @brief This is the code that gets called when the processor first
- * starts execution following a reset event. Only the absolutely
- * necessary set is performed, after which the application
- * supplied main() routine is called.
- * @param None
- * @retval : None
-*/
-
- .section .text.Reset_Handler
- .weak Reset_Handler
- .type Reset_Handler, %function
-Reset_Handler:
- ldr sp, =_estack /* Atollic update: set stack pointer */
-
-/* Copy the data segment initializers from flash to SRAM */
- movs r1, #0
- b LoopCopyDataInit
-
-CopyDataInit:
- ldr r3, =_sidata
- ldr r3, [r3, r1]
- str r3, [r0, r1]
- adds r1, r1, #4
-
-LoopCopyDataInit:
- ldr r0, =_sdata
- ldr r3, =_edata
- adds r2, r0, r1
- cmp r2, r3
- bcc CopyDataInit
- ldr r2, =_sbss
- b LoopFillZerobss
-/* Zero fill the bss segment. */
-FillZerobss:
- movs r3, #0
- str r3, [r2], #4
-
-LoopFillZerobss:
- ldr r3, = _ebss
- cmp r2, r3
- bcc FillZerobss
-
-/* Call the clock system intitialization function.*/
- bl SystemInit
-/* Call static constructors */
- bl __libc_init_array
-/* Call the application's entry point.*/
- bl main
-
-LoopForever:
- b LoopForever
-
-.size Reset_Handler, .-Reset_Handler
-
-/**
- * @brief This is the code that gets called when the processor receives an
- * unexpected interrupt. This simply enters an infinite loop, preserving
- * the system state for examination by a debugger.
- *
- * @param None
- * @retval : None
-*/
- .section .text.Default_Handler,"ax",%progbits
-Default_Handler:
-Infinite_Loop:
- b Infinite_Loop
- .size Default_Handler, .-Default_Handler
-/******************************************************************************
-*
-* The minimal vector table for a Cortex-M4. Note that the proper constructs
-* must be placed on this to ensure that it ends up at physical address
-* 0x0000.0000.
-*
-******************************************************************************/
- .section .isr_vector,"a",%progbits
- .type g_pfnVectors, %object
- .size g_pfnVectors, .-g_pfnVectors
-
-
-g_pfnVectors:
- .word _estack
- .word Reset_Handler
- .word NMI_Handler
- .word HardFault_Handler
- .word MemManage_Handler
- .word BusFault_Handler
- .word UsageFault_Handler
- .word 0
- .word 0
- .word 0
- .word 0
- .word SVC_Handler
- .word DebugMon_Handler
- .word 0
- .word PendSV_Handler
- .word SysTick_Handler
- .word WWDG_IRQHandler
- .word PVD_IRQHandler
- .word TAMP_STAMP_IRQHandler
- .word RTC_WKUP_IRQHandler
- .word FLASH_IRQHandler
- .word RCC_IRQHandler
- .word EXTI0_IRQHandler
- .word EXTI1_IRQHandler
- .word EXTI2_TSC_IRQHandler
- .word EXTI3_IRQHandler
- .word EXTI4_IRQHandler
- .word DMA1_Channel1_IRQHandler
- .word DMA1_Channel2_IRQHandler
- .word DMA1_Channel3_IRQHandler
- .word DMA1_Channel4_IRQHandler
- .word DMA1_Channel5_IRQHandler
- .word DMA1_Channel6_IRQHandler
- .word DMA1_Channel7_IRQHandler
- .word ADC1_2_IRQHandler
- .word USB_HP_CAN_TX_IRQHandler
- .word USB_LP_CAN_RX0_IRQHandler
- .word CAN_RX1_IRQHandler
- .word CAN_SCE_IRQHandler
- .word EXTI9_5_IRQHandler
- .word TIM1_BRK_TIM15_IRQHandler
- .word TIM1_UP_TIM16_IRQHandler
- .word TIM1_TRG_COM_TIM17_IRQHandler
- .word TIM1_CC_IRQHandler
- .word TIM2_IRQHandler
- .word TIM3_IRQHandler
- .word TIM4_IRQHandler
- .word I2C1_EV_IRQHandler
- .word I2C1_ER_IRQHandler
- .word I2C2_EV_IRQHandler
- .word I2C2_ER_IRQHandler
- .word SPI1_IRQHandler
- .word SPI2_IRQHandler
- .word USART1_IRQHandler
- .word USART2_IRQHandler
- .word USART3_IRQHandler
- .word EXTI15_10_IRQHandler
- .word RTC_Alarm_IRQHandler
- .word USBWakeUp_IRQHandler
- .word TIM8_BRK_IRQHandler
- .word TIM8_UP_IRQHandler
- .word TIM8_TRG_COM_IRQHandler
- .word TIM8_CC_IRQHandler
- .word ADC3_IRQHandler
- .word 0
- .word 0
- .word 0
- .word SPI3_IRQHandler
- .word UART4_IRQHandler
- .word UART5_IRQHandler
- .word TIM6_DAC_IRQHandler
- .word TIM7_IRQHandler
- .word DMA2_Channel1_IRQHandler
- .word DMA2_Channel2_IRQHandler
- .word DMA2_Channel3_IRQHandler
- .word DMA2_Channel4_IRQHandler
- .word DMA2_Channel5_IRQHandler
- .word ADC4_IRQHandler
- .word 0
- .word 0
- .word COMP1_2_3_IRQHandler
- .word COMP4_5_6_IRQHandler
- .word COMP7_IRQHandler
- .word 0
- .word 0
- .word 0
- .word 0
- .word 0
- .word 0
- .word 0
- .word USB_HP_IRQHandler
- .word USB_LP_IRQHandler
- .word USBWakeUp_RMP_IRQHandler
- .word 0
- .word 0
- .word 0
- .word 0
- .word FPU_IRQHandler
-
-/*******************************************************************************
-*
-* Provide weak aliases for each Exception handler to the Default_Handler.
-* As they are weak aliases, any function with the same name will override
-* this definition.
-*
-*******************************************************************************/
-
- .weak NMI_Handler
- .thumb_set NMI_Handler,Default_Handler
-
- .weak HardFault_Handler
- .thumb_set HardFault_Handler,Default_Handler
-
- .weak MemManage_Handler
- .thumb_set MemManage_Handler,Default_Handler
-
- .weak BusFault_Handler
- .thumb_set BusFault_Handler,Default_Handler
-
- .weak UsageFault_Handler
- .thumb_set UsageFault_Handler,Default_Handler
-
- .weak SVC_Handler
- .thumb_set SVC_Handler,Default_Handler
-
- .weak DebugMon_Handler
- .thumb_set DebugMon_Handler,Default_Handler
-
- .weak PendSV_Handler
- .thumb_set PendSV_Handler,Default_Handler
-
- .weak SysTick_Handler
- .thumb_set SysTick_Handler,Default_Handler
-
- .weak WWDG_IRQHandler
- .thumb_set WWDG_IRQHandler,Default_Handler
-
- .weak PVD_IRQHandler
- .thumb_set PVD_IRQHandler,Default_Handler
-
- .weak TAMP_STAMP_IRQHandler
- .thumb_set TAMP_STAMP_IRQHandler,Default_Handler
-
- .weak RTC_WKUP_IRQHandler
- .thumb_set RTC_WKUP_IRQHandler,Default_Handler
-
- .weak FLASH_IRQHandler
- .thumb_set FLASH_IRQHandler,Default_Handler
-
- .weak RCC_IRQHandler
- .thumb_set RCC_IRQHandler,Default_Handler
-
- .weak EXTI0_IRQHandler
- .thumb_set EXTI0_IRQHandler,Default_Handler
-
- .weak EXTI1_IRQHandler
- .thumb_set EXTI1_IRQHandler,Default_Handler
-
- .weak EXTI2_TSC_IRQHandler
- .thumb_set EXTI2_TSC_IRQHandler,Default_Handler
-
- .weak EXTI3_IRQHandler
- .thumb_set EXTI3_IRQHandler,Default_Handler
-
- .weak EXTI4_IRQHandler
- .thumb_set EXTI4_IRQHandler,Default_Handler
-
- .weak DMA1_Channel1_IRQHandler
- .thumb_set DMA1_Channel1_IRQHandler,Default_Handler
-
- .weak DMA1_Channel2_IRQHandler
- .thumb_set DMA1_Channel2_IRQHandler,Default_Handler
-
- .weak DMA1_Channel3_IRQHandler
- .thumb_set DMA1_Channel3_IRQHandler,Default_Handler
-
- .weak DMA1_Channel4_IRQHandler
- .thumb_set DMA1_Channel4_IRQHandler,Default_Handler
-
- .weak DMA1_Channel5_IRQHandler
- .thumb_set DMA1_Channel5_IRQHandler,Default_Handler
-
- .weak DMA1_Channel6_IRQHandler
- .thumb_set DMA1_Channel6_IRQHandler,Default_Handler
-
- .weak DMA1_Channel7_IRQHandler
- .thumb_set DMA1_Channel7_IRQHandler,Default_Handler
-
- .weak ADC1_2_IRQHandler
- .thumb_set ADC1_2_IRQHandler,Default_Handler
-
- .weak USB_HP_CAN_TX_IRQHandler
- .thumb_set USB_HP_CAN_TX_IRQHandler,Default_Handler
-
- .weak USB_LP_CAN_RX0_IRQHandler
- .thumb_set USB_LP_CAN_RX0_IRQHandler,Default_Handler
-
- .weak CAN_RX1_IRQHandler
- .thumb_set CAN_RX1_IRQHandler,Default_Handler
-
- .weak CAN_SCE_IRQHandler
- .thumb_set CAN_SCE_IRQHandler,Default_Handler
-
- .weak EXTI9_5_IRQHandler
- .thumb_set EXTI9_5_IRQHandler,Default_Handler
-
- .weak TIM1_BRK_TIM15_IRQHandler
- .thumb_set TIM1_BRK_TIM15_IRQHandler,Default_Handler
-
- .weak TIM1_UP_TIM16_IRQHandler
- .thumb_set TIM1_UP_TIM16_IRQHandler,Default_Handler
-
- .weak TIM1_TRG_COM_TIM17_IRQHandler
- .thumb_set TIM1_TRG_COM_TIM17_IRQHandler,Default_Handler
-
- .weak TIM1_CC_IRQHandler
- .thumb_set TIM1_CC_IRQHandler,Default_Handler
-
- .weak TIM2_IRQHandler
- .thumb_set TIM2_IRQHandler,Default_Handler
-
- .weak TIM3_IRQHandler
- .thumb_set TIM3_IRQHandler,Default_Handler
-
- .weak TIM4_IRQHandler
- .thumb_set TIM4_IRQHandler,Default_Handler
-
- .weak I2C1_EV_IRQHandler
- .thumb_set I2C1_EV_IRQHandler,Default_Handler
-
- .weak I2C1_ER_IRQHandler
- .thumb_set I2C1_ER_IRQHandler,Default_Handler
-
- .weak I2C2_EV_IRQHandler
- .thumb_set I2C2_EV_IRQHandler,Default_Handler
-
- .weak I2C2_ER_IRQHandler
- .thumb_set I2C2_ER_IRQHandler,Default_Handler
-
- .weak SPI1_IRQHandler
- .thumb_set SPI1_IRQHandler,Default_Handler
-
- .weak SPI2_IRQHandler
- .thumb_set SPI2_IRQHandler,Default_Handler
-
- .weak USART1_IRQHandler
- .thumb_set USART1_IRQHandler,Default_Handler
-
- .weak USART2_IRQHandler
- .thumb_set USART2_IRQHandler,Default_Handler
-
- .weak USART3_IRQHandler
- .thumb_set USART3_IRQHandler,Default_Handler
-
- .weak EXTI15_10_IRQHandler
- .thumb_set EXTI15_10_IRQHandler,Default_Handler
-
- .weak RTC_Alarm_IRQHandler
- .thumb_set RTC_Alarm_IRQHandler,Default_Handler
-
- .weak USBWakeUp_IRQHandler
- .thumb_set USBWakeUp_IRQHandler,Default_Handler
-
- .weak TIM8_BRK_IRQHandler
- .thumb_set TIM8_BRK_IRQHandler,Default_Handler
-
- .weak TIM8_UP_IRQHandler
- .thumb_set TIM8_UP_IRQHandler,Default_Handler
-
- .weak TIM8_TRG_COM_IRQHandler
- .thumb_set TIM8_TRG_COM_IRQHandler,Default_Handler
-
- .weak TIM8_CC_IRQHandler
- .thumb_set TIM8_CC_IRQHandler,Default_Handler
-
- .weak ADC3_IRQHandler
- .thumb_set ADC3_IRQHandler,Default_Handler
-
- .weak SPI3_IRQHandler
- .thumb_set SPI3_IRQHandler,Default_Handler
-
- .weak UART4_IRQHandler
- .thumb_set UART4_IRQHandler,Default_Handler
-
- .weak UART5_IRQHandler
- .thumb_set UART5_IRQHandler,Default_Handler
-
- .weak TIM6_DAC_IRQHandler
- .thumb_set TIM6_DAC_IRQHandler,Default_Handler
-
- .weak TIM7_IRQHandler
- .thumb_set TIM7_IRQHandler,Default_Handler
-
- .weak DMA2_Channel1_IRQHandler
- .thumb_set DMA2_Channel1_IRQHandler,Default_Handler
-
- .weak DMA2_Channel2_IRQHandler
- .thumb_set DMA2_Channel2_IRQHandler,Default_Handler
-
- .weak DMA2_Channel3_IRQHandler
- .thumb_set DMA2_Channel3_IRQHandler,Default_Handler
-
- .weak DMA2_Channel4_IRQHandler
- .thumb_set DMA2_Channel4_IRQHandler,Default_Handler
-
- .weak DMA2_Channel5_IRQHandler
- .thumb_set DMA2_Channel5_IRQHandler,Default_Handler
-
- .weak ADC4_IRQHandler
- .thumb_set ADC4_IRQHandler,Default_Handler
-
- .weak COMP1_2_3_IRQHandler
- .thumb_set COMP1_2_3_IRQHandler,Default_Handler
-
- .weak COMP4_5_6_IRQHandler
- .thumb_set COMP4_5_6_IRQHandler,Default_Handler
-
- .weak COMP7_IRQHandler
- .thumb_set COMP7_IRQHandler,Default_Handler
-
- .weak USB_HP_IRQHandler
- .thumb_set USB_HP_IRQHandler,Default_Handler
-
- .weak USB_LP_IRQHandler
- .thumb_set USB_LP_IRQHandler,Default_Handler
-
- .weak USBWakeUp_RMP_IRQHandler
- .thumb_set USBWakeUp_RMP_IRQHandler,Default_Handler
-
- .weak FPU_IRQHandler
- .thumb_set FPU_IRQHandler,Default_Handler
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/src/hal_bsp.c
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/src/hal_bsp.c b/hw/bsp/stm32f3discovery/src/hal_bsp.c
deleted file mode 100644
index ed39872..0000000
--- a/hw/bsp/stm32f3discovery/src/hal_bsp.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-#include <stddef.h>
-
-#include "hal/hal_gpio.h"
-#include "hal/hal_flash_int.h"
-#include "mcu/stm32f30x.h"
-#include "mcu/stm32f30x_rcc.h"
-#include "mcu/stm32f30x_gpio.h"
-#include "mcu/stm32f3_bsp.h"
-#include "bsp/bsp.h"
-
-static const struct stm32f3_uart_cfg uart_cfg[UART_CNT] = {
- [0] = {
- .suc_uart = USART1,
- .suc_rcc_cmd = RCC_APB2PeriphClockCmd,
- .suc_rcc_dev = RCC_APB2Periph_USART1,
- .suc_pin_tx = 9,
- .suc_pin_rx = 10,
- .suc_pin_rts = 12,
- .suc_pin_cts = 11,
- .suc_pin_af = GPIO_AF_7,
- .suc_irqn = USART1_IRQn
- }
-};
-
-const struct stm32f3_uart_cfg *
-bsp_uart_config(int port)
-{
- assert(port < UART_CNT);
- return &uart_cfg[port];
-}
-
-const struct hal_flash *
-bsp_flash_dev(uint8_t id)
-{
- /*
- * Internal flash mapped to id 0.
- */
- if (id != 0) {
- return NULL;
- }
- return &stm32f3_flash_dev;
-}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/src/libc_stubs.c
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/src/libc_stubs.c b/hw/bsp/stm32f3discovery/src/libc_stubs.c
deleted file mode 100644
index 84f855e..0000000
--- a/hw/bsp/stm32f3discovery/src/libc_stubs.c
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-#include <hal/hal_system.h>
-
-void * _sbrk(int c);
-int _close(int fd);
-int _fstat(int fd, void *s);
-void _exit(int s);
-int _kill(int pid, int sig);
-int _write(int fd, void *b, int nb);
-int _isatty(int c);
-int _lseek(int fd, int off, int w);
-int _read(int fd, void *b, int nb);
-int _getpid(void);
-
-int
-_close(int fd)
-{
- return -1;
-}
-
-int
-_fstat(int fd, void *s)
-{
- return -1;
-}
-
-
-void
-_exit(int s)
-{
- system_reset();
-}
-
-int
-_kill(int pid, int sig)
-{
- return -1;
-}
-
-int
-_write(int fd, void *b, int nb)
-{
- return -1;
-}
-
-int
-_isatty(int c)
-{
- return -1;
-}
-
-int
-_lseek(int fd, int off, int w)
-{
- return -1;
-}
-
-int
-_read(int fd, void *b, int nb)
-{
- return -1;
-}
-
-int
-_getpid(void) {
- return -1;
-}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/src/os_bsp.c
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/src/os_bsp.c b/hw/bsp/stm32f3discovery/src/os_bsp.c
deleted file mode 100644
index 8d6e959..0000000
--- a/hw/bsp/stm32f3discovery/src/os_bsp.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-void *_sbrk(int incr);
-void _close(int fd);
-
-/*
- * XXXX for now have it here.
- */
-#include <hal/flash_map.h>
-
-static struct flash_area bsp_flash_areas[] = {
- [FLASH_AREA_BOOTLOADER] = {
- .fa_flash_id = 0, /* internal flash */
- .fa_off = 0x08000000, /* beginning */
- .fa_size = (32 * 1024)
- },
- [FLASH_AREA_IMAGE_0] = {
- .fa_flash_id = 0,
- .fa_off = 0x08008000,
- .fa_size = (104 * 1024)
- },
- [FLASH_AREA_IMAGE_1] = {
- .fa_flash_id = 0,
- .fa_off = 0x08022000,
- .fa_size = (104 * 1024)
- },
- [FLASH_AREA_IMAGE_SCRATCH] = {
- .fa_flash_id = 0,
- .fa_off = 0x0803c000,
- .fa_size = (8 * 1024)
- },
- [FLASH_AREA_NFFS] = {
- .fa_flash_id = 0,
- .fa_off = 0x0803e000,
- .fa_size = (8 * 1024)
- }
-};
-
-int
-bsp_imgr_current_slot(void)
-{
- return FLASH_AREA_IMAGE_0;
-}
-
-void
-os_bsp_init(void)
-{
- /*
- * XXX these references are here to keep the functions in for libc to find.
- */
- _sbrk(0);
- _close(0);
- flash_area_init(bsp_flash_areas,
- sizeof(bsp_flash_areas) / sizeof(bsp_flash_areas[0]));
-}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/src/sbrk.c
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/src/sbrk.c b/hw/bsp/stm32f3discovery/src/sbrk.c
deleted file mode 100644
index ff0f537..0000000
--- a/hw/bsp/stm32f3discovery/src/sbrk.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include <errno.h>
-
-extern char _heap;
-extern char _eheap;
-static char *_brk = &_heap;
-
-void *
-_sbrk(int incr)
-{
- void *prev_brk;
-
- if (incr < 0) {
- /* Returning memory to the heap. */
- prev_brk = (void *)-1;
- } else {
- /* Allocating memory from the heap. */
- if (&_eheap - _brk >= incr) {
- prev_brk = _brk;
- _brk += incr;
- } else {
- prev_brk = (void *)-1;
- errno = ENOMEM;
- }
- }
-
- return prev_brk;
-}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/src/system_stm32f30x.c
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/src/system_stm32f30x.c b/hw/bsp/stm32f3discovery/src/system_stm32f30x.c
deleted file mode 100644
index ead0e20..0000000
--- a/hw/bsp/stm32f3discovery/src/system_stm32f30x.c
+++ /dev/null
@@ -1,376 +0,0 @@
-/**
- ******************************************************************************
- * @file system_stm32f30x.c
- * @author MCD Application Team
- * @version V1.2.2
- * @date 14-August-2015
- * @brief CMSIS Cortex-M4 Device Peripheral Access Layer System Source File.
- * This file contains the system clock configuration for STM32F30x devices,
- * and is generated by the clock configuration tool
- * stm32f30x_Clock_Configuration_V1.0.0.xls
- *
- * 1. This file provides two functions and one global variable to be called from
- * user application:
- * - SystemInit(): Setups the system clock (System clock source, PLL Multiplier
- * and Divider factors, AHB/APBx prescalers and Flash settings),
- * depending on the configuration made in the clock xls tool.
- * This function is called at startup just after reset and
- * before branch to main program. This call is made inside
- * the "startup_stm32f30x.s" file.
- *
- * - SystemCoreClock variable: Contains the core clock (HCLK), it can be used
- * by the user application to setup the SysTick
- * timer or configure other parameters.
- *
- * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
- * be called whenever the core clock is changed
- * during program execution.
- *
- * 2. After each device reset the HSI (8 MHz) is used as system clock source.
- * Then SystemInit() function is called, in "startup_stm32f30x.s" file, to
- * configure the system clock before to branch to main program.
- *
- * 3. If the system clock source selected by user fails to startup, the SystemInit()
- * function will do nothing and HSI still used as system clock source. User can
- * add some code to deal with this issue inside the SetSysClock() function.
- *
- * 4. The default value of HSE crystal is set to 8MHz, refer to "HSE_VALUE" define
- * in "stm32f30x.h" file. When HSE is used as system clock source, directly or
- * through PLL, and you are using different crystal you have to adapt the HSE
- * value to your own configuration.
- *
- * 5. This file configures the system clock as follows:
- *=============================================================================
- *-----------------------------------------------------------------------------
- * System Clock source | PLL (HSE)
- *-----------------------------------------------------------------------------
- * SYSCLK(Hz) | 72000000
- *-----------------------------------------------------------------------------
- * HCLK(Hz) | 72000000
- *-----------------------------------------------------------------------------
- * AHB Prescaler | 1
- *-----------------------------------------------------------------------------
- * APB2 Prescaler | 1
- *-----------------------------------------------------------------------------
- * APB1 Prescaler | 2
- *-----------------------------------------------------------------------------
- * HSE Frequency(Hz) | 8000000
- *----------------------------------------------------------------------------
- * PLLMUL | 9
- *-----------------------------------------------------------------------------
- * PREDIV | 1
- *-----------------------------------------------------------------------------
- * USB Clock | DISABLE
- *-----------------------------------------------------------------------------
- * Flash Latency(WS) | 2
- *-----------------------------------------------------------------------------
- * Prefetch Buffer | ON
- *-----------------------------------------------------------------------------
- *=============================================================================
- ******************************************************************************
- * @attention
- *
- * <h2><center>© COPYRIGHT 2015 STMicroelectronics</center></h2>
- *
- * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
- * You may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.st.com/software_license_agreement_liberty_v2
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- ******************************************************************************
- */
-
-/** @addtogroup CMSIS
- * @{
- */
-
-/** @addtogroup stm32f30x_system
- * @{
- */
-
-/** @addtogroup STM32F30x_System_Private_Includes
- * @{
- */
-
-#include "mcu/stm32f30x.h"
-#include "bsp/cmsis_nvic.h"
-
-/**
- * @}
- */
-
-/** @addtogroup STM32F30x_System_Private_TypesDefinitions
- * @{
- */
-
-/**
- * @}
- */
-
-/** @addtogroup STM32F30x_System_Private_Defines
- * @{
- */
-/*!< Uncomment the following line if you need to relocate your vector Table in
- Internal SRAM. */
-/* #define VECT_TAB_SRAM */
-#define VECT_TAB_OFFSET 0x0 /*!< Vector Table base offset field.
- This value must be a multiple of 0x200. */
-/**
- * @}
- */
-
-/** @addtogroup STM32F30x_System_Private_Macros
- * @{
- */
-
-/**
- * @}
- */
-
-/** @addtogroup STM32F30x_System_Private_Variables
- * @{
- */
-
- uint32_t SystemCoreClock = 72000000;
-
- __I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
-
-/**
- * @}
- */
-
-/** @addtogroup STM32F30x_System_Private_FunctionPrototypes
- * @{
- */
-
-static void SetSysClock(void);
-
-/**
- * @}
- */
-
-/** @addtogroup STM32F30x_System_Private_Functions
- * @{
- */
-
-/**
- * @brief Setup the microcontroller system
- * Initialize the Embedded Flash Interface, the PLL and update the
- * SystemFrequency variable.
- * @param None
- * @retval None
- */
-void SystemInit(void)
-{
- /* FPU settings ------------------------------------------------------------*/
- #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
- SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */
- #endif
-
- /* Reset the RCC clock configuration to the default reset state ------------*/
- /* Set HSION bit */
- RCC->CR |= (uint32_t)0x00000001;
-
- /* Reset CFGR register */
- RCC->CFGR &= 0xF87FC00C;
-
- /* Reset HSEON, CSSON and PLLON bits */
- RCC->CR &= (uint32_t)0xFEF6FFFF;
-
- /* Reset HSEBYP bit */
- RCC->CR &= (uint32_t)0xFFFBFFFF;
-
- /* Reset PLLSRC, PLLXTPRE, PLLMUL and USBPRE bits */
- RCC->CFGR &= (uint32_t)0xFF80FFFF;
-
- /* Reset PREDIV1[3:0] bits */
- RCC->CFGR2 &= (uint32_t)0xFFFFFFF0;
-
- /* Reset USARTSW[1:0], I2CSW and TIMs bits */
- RCC->CFGR3 &= (uint32_t)0xFF00FCCC;
-
- /* Disable all interrupts */
- RCC->CIR = 0x00000000;
-
- /* Configure the System clock source, PLL Multiplier and Divider factors,
- AHB/APBx prescalers and Flash settings ----------------------------------*/
- SetSysClock();
-
- /* Relocate the vector table */
- NVIC_Relocate();
-}
-
-/**
- * @brief Update SystemCoreClock variable according to Clock Register Values.
- * The SystemCoreClock variable contains the core clock (HCLK), it can
- * be used by the user application to setup the SysTick timer or configure
- * other parameters.
- *
- * @note Each time the core clock (HCLK) changes, this function must be called
- * to update SystemCoreClock variable value. Otherwise, any configuration
- * based on this variable will be incorrect.
- *
- * @note - The system frequency computed by this function is not the real
- * frequency in the chip. It is calculated based on the predefined
- * constant and the selected clock source:
- *
- * - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(*)
- *
- * - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(**)
- *
- * - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**)
- * or HSI_VALUE(*) multiplied/divided by the PLL factors.
- *
- * (*) HSI_VALUE is a constant defined in stm32f30x.h file (default value
- * 8 MHz) but the real value may vary depending on the variations
- * in voltage and temperature.
- *
- * (**) HSE_VALUE is a constant defined in stm32f30x.h file (default value
- * 8 MHz), user has to ensure that HSE_VALUE is same as the real
- * frequency of the crystal used. Otherwise, this function may
- * have wrong result.
- *
- * - The result of this function could be not correct when using fractional
- * value for HSE crystal.
- *
- * @param None
- * @retval None
- */
-void SystemCoreClockUpdate (void)
-{
- uint32_t tmp = 0, pllmull = 0, pllsource = 0, prediv1factor = 0;
-
- /* Get SYSCLK source -------------------------------------------------------*/
- tmp = RCC->CFGR & RCC_CFGR_SWS;
-
- switch (tmp)
- {
- case 0x00: /* HSI used as system clock */
- SystemCoreClock = HSI_VALUE;
- break;
- case 0x04: /* HSE used as system clock */
- SystemCoreClock = HSE_VALUE;
- break;
- case 0x08: /* PLL used as system clock */
- /* Get PLL clock source and multiplication factor ----------------------*/
- pllmull = RCC->CFGR & RCC_CFGR_PLLMULL;
- pllsource = RCC->CFGR & RCC_CFGR_PLLSRC;
- pllmull = ( pllmull >> 18) + 2;
-
- if (pllsource == 0x00)
- {
- /* HSI oscillator clock divided by 2 selected as PLL clock entry */
- SystemCoreClock = (HSI_VALUE >> 1) * pllmull;
- }
- else
- {
- prediv1factor = (RCC->CFGR2 & RCC_CFGR2_PREDIV1) + 1;
- /* HSE oscillator clock selected as PREDIV1 clock entry */
- SystemCoreClock = (HSE_VALUE / prediv1factor) * pllmull;
- }
- break;
- default: /* HSI used as system clock */
- SystemCoreClock = HSI_VALUE;
- break;
- }
- /* Compute HCLK clock frequency ----------------*/
- /* Get HCLK prescaler */
- tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4)];
- /* HCLK clock frequency */
- SystemCoreClock >>= tmp;
-}
-
-/**
- * @brief Configures the System clock source, PLL Multiplier and Divider factors,
- * AHB/APBx prescalers and Flash settings
- * @note This function should be called only once the RCC clock configuration
- * is reset to the default reset state (done in SystemInit() function).
- * @param None
- * @retval None
- */
-static void SetSysClock(void)
-{
- __IO uint32_t StartUpCounter = 0, HSEStatus = 0;
-
- /* SYSCLK, HCLK, PCLK2 and PCLK1 configuration ---------------------------*/
- /* Enable HSE */
- RCC->CR |= ((uint32_t)RCC_CR_HSEON);
-
- /* Wait till HSE is ready and if Time out is reached exit */
- do
- {
- HSEStatus = RCC->CR & RCC_CR_HSERDY;
- StartUpCounter++;
- } while((HSEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT));
-
- if ((RCC->CR & RCC_CR_HSERDY) != RESET)
- {
- HSEStatus = (uint32_t)0x01;
- }
- else
- {
- HSEStatus = (uint32_t)0x00;
- }
-
- if (HSEStatus == (uint32_t)0x01)
- {
- /* Enable Prefetch Buffer and set Flash Latency */
- FLASH->ACR = FLASH_ACR_PRFTBE | FLASH_ACR_LATENCY_1;
- /* HCLK = SYSCLK */
- RCC->CFGR |= (uint32_t)RCC_CFGR_HPRE_DIV1;
-
- /* PCLK2 = HCLK */
- RCC->CFGR |= (uint32_t)RCC_CFGR_PPRE2_DIV1;
-
- /* PCLK1 = HCLK */
- RCC->CFGR |= (uint32_t)RCC_CFGR_PPRE1_DIV2;
-
-
- /* PLL configuration: PLLCLK = HSE * 9 = 72 MHz */
- RCC->CFGR &= (uint32_t)((uint32_t)~(RCC_CFGR_PLLSRC | RCC_CFGR_PLLXTPRE |
- RCC_CFGR_PLLMULL));
- RCC->CFGR |= (uint32_t)(RCC_CFGR_PLLSRC_PREDIV1 | RCC_CFGR_PLLMULL9);
-
- /* Enable PLL */
- RCC->CR |= RCC_CR_PLLON;
-
- /* Wait till PLL is ready */
- while((RCC->CR & RCC_CR_PLLRDY) == 0)
- {
- }
-
- /* Select PLL as system clock source */
- RCC->CFGR &= (uint32_t)((uint32_t)~(RCC_CFGR_SW));
- RCC->CFGR |= (uint32_t)RCC_CFGR_SW_PLL;
-
- /* Wait till PLL is used as system clock source */
- while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS) != (uint32_t)RCC_CFGR_SWS_PLL)
- {
- }
- }
- else
- { /* If HSE fails to start-up, the application will have wrong clock
- configuration. User can add here some code to deal with this error */
- }
-}
-
-/**
- * @}
- */
-
-/**
- * @}
- */
-
-/**
- * @}
- */
-
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/stm32f3discovery.ld
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/stm32f3discovery.ld b/hw/bsp/stm32f3discovery/stm32f3discovery.ld
deleted file mode 100755
index ea89328..0000000
--- a/hw/bsp/stm32f3discovery/stm32f3discovery.ld
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-ENTRY(Reset_Handler)
-
-/*
- * Memory map
- */
-MEMORY {
- FLASH (rx): ORIGIN = 0x08008000, LENGTH = 104K
- CCRAM (rw): ORIGIN = 0x10000000, LENGTH = 8K
- SRAM (rw): ORIGIN = 0x20000000, LENGTH = 40K
-}
-
-/*
- * Define output sections
- */
-SECTIONS {
- imghdr (NOLOAD) : {
- . = . + 0x20;
- } > FLASH
- .text : {
- _text = .;
- __isr_vector = .;
- KEEP(*(.isr_vector*))
- __eisr_vector = .;
- *(.text* .gnu.linkonce.t.*)
- _etext = .;
- . = ALIGN(4);
- *(.rodata*)
- } > FLASH
- .sram_isrs : {
- __vector_tbl_reloc__ = .;
- . = . + (__eisr_vector - __isr_vector);
- } > SRAM
- .data : {
- _sdata = .;
- _sidata = LOADADDR(.data);
- *(.data*)
- _edata = .;
- } > SRAM AT > FLASH
- .bss : {
- _sbss = .;
- __bss_start__ = .;
- *(.bss*)
- *(COMMON)
- __bss_end__ = .;
- _ebss = .;
- . = ALIGN(4);
- } > SRAM
- .heap : {
- _heap = .;
- } > SRAM
- _eheap = ORIGIN(SRAM) + LENGTH(SRAM);
- _estack = ORIGIN(CCRAM) + LENGTH(CCRAM);
-}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/stm32f3discovery_debug.sh
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/stm32f3discovery_debug.sh b/hw/bsp/stm32f3discovery/stm32f3discovery_debug.sh
deleted file mode 100755
index d40a8a1..0000000
--- a/hw/bsp/stm32f3discovery/stm32f3discovery_debug.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-# Called: $0 <binary> [identities...]
-# - binary is the path to prefix to target binary, .elf appended to name is
-# the ELF file
-# - identities is the project identities string.
-#
-#
-if [ $# -lt 1 ]; then
- echo "Need binary to debug"
- exit 1
-fi
-
-FILE_NAME=$1.elf
-GDB_CMD_FILE=.gdb_cmds
-
-echo "Debugging" $FILE_NAME
-
-#
-# Block Ctrl-C from getting passed to openocd.
-# Exit openocd when gdb detaches.
-#
-set -m
-openocd -f board/stm32f3discovery.cfg -c "gdb_port 3333; telnet_port 4444; stm32f3x.cpu configure -event gdb-detach {shutdown}" -c init -c "reset halt" &
-set +m
-
-echo "target remote localhost:3333" > $GDB_CMD_FILE
-arm-none-eabi-gdb -x $GDB_CMD_FILE $FILE_NAME
-rm $GDB_CMD_FILE
-
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/bsp/stm32f3discovery/stm32f3discovery_download.sh
----------------------------------------------------------------------
diff --git a/hw/bsp/stm32f3discovery/stm32f3discovery_download.sh b/hw/bsp/stm32f3discovery/stm32f3discovery_download.sh
deleted file mode 100755
index 5e516b6..0000000
--- a/hw/bsp/stm32f3discovery/stm32f3discovery_download.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-# Called: $0 <binary> [identities...]
-# - binary is the path to prefix to target binary, .elf.bin appended to this
-# name is the raw binary format of the binary.
-# - identities is the project identities string. So you can have e.g. different
-# flash offset for bootloader identity
-#
-#
-if [ $# -lt 1 ]; then
- echo "Need binary to download"
- exit 1
-fi
-
-BASENAME=$1
-IS_BOOTLOADER=0
-BIN2IMG=project/bin2img/bin/bin2img/bin2img.elf
-VER=11.22.3333.0
-VER_FILE=version.txt # or somewhere else
-
-# Look for 'bootloader' from 2nd arg onwards
-shift
-while [ $# -gt 0 ]; do
- if [ $1 = "bootloader" ]; then
- IS_BOOTLOADER=1
- fi
- shift
-done
-
-if [ $IS_BOOTLOADER -eq 1 ]; then
- FLASH_OFFSET=0x08000000
- FILE_NAME=$BASENAME.elf.bin
-else
- FLASH_OFFSET=0x08008000
- FILE_NAME=$BASENAME.elf.img
- if [ -f $VER_FILE ]; then
- VER=`echo $VER_FILE`
- fi
- echo "Version is >" $VER "<"
- $BIN2IMG $BASENAME.elf.bin $FILE_NAME $VER
- if [ "$?" -ne 0 ]; then
- exit 1
- fi
-fi
-
-echo "Downloading" $FILE_NAME "to" $FLASH_OFFSET
-
-openocd -f board/stm32f3discovery.cfg -c init -c "reset halt" -c "flash write_image erase $FILE_NAME $FLASH_OFFSET" -c "reset run" -c shutdown
-
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/mcu/stm/stm32f3xx/egg.yml
----------------------------------------------------------------------
diff --git a/hw/mcu/stm/stm32f3xx/egg.yml b/hw/mcu/stm/stm32f3xx/egg.yml
deleted file mode 100644
index 688f1a4..0000000
--- a/hw/mcu/stm/stm32f3xx/egg.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-egg.name: "hw/mcu/stm/stm32f3xx"
-egg.deps:
- - hw/hal
- - libs/cmsis-core
- - compiler/arm-none-eabi-m4
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/38e36345/hw/mcu/stm/stm32f3xx/include/mcu/cortex_m4.h
----------------------------------------------------------------------
diff --git a/hw/mcu/stm/stm32f3xx/include/mcu/cortex_m4.h b/hw/mcu/stm/stm32f3xx/include/mcu/cortex_m4.h
deleted file mode 100644
index 1bc34d2..0000000
--- a/hw/mcu/stm/stm32f3xx/include/mcu/cortex_m4.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef __MCU_CORTEX_M4_H__
-#define __MCU_CORTEX_M4_H__
-
-#include "mcu/stm32f30x.h"
-
-#endif /* __MCU_CORTEX_M4_H__ */