8000 Merge pull request #13464 from hugueskamba/hk_cmsis_restructure · sparkfun/mbed-os-ambiq-apollo3@90ca583 · GitHub
[go: up one dir, main page]

Skip to content

Commit 90ca583

Browse files
authored
Merge pull request ARMmbed#13464 from hugueskamba/hk_cmsis_restructure
adr: Recommend CMSIS component source structure
2 parents 4ef38f9 + 834e530 commit 90ca583

File tree

109 files changed

+109
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+109
-39
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ matrix:
280280
# Check that example compiles without rtos
281281
- sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' ${EVENTS}/README.md > main.cpp
282282
- |
283-
rm -r rtos/source/TARGET_CORTEX drivers/source/usb connectivity/cellular connectivity/drivers/cellular \
283+
rm -r cmsis/CMSIS_5/CMSIS/RTOS2 cmsis/device/rtos drivers/source/usb connectivity/cellular connectivity/drivers/cellular \
284284
connectivity/libraries/ppp connectivity/netsocket connectivity/nanostack connectivity/lwipstack features/frameworks/greentea-client \
285285
features/frameworks/utest features/frameworks/unity components BUILD
286286
- python tools/make.py -t GCC_ARM -m NUCLEO_F103RB --source=. --build=BUILD/NUCLEO_F103RB/GCC_ARM -j0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name": "cmsis-cmsis5-rtos2"
3+
}

cmsis/README.md

Lines changed: 43 additions & 0 deletions
File renamed without changes.
File renamed without changes.
Lines changed: 24 additions & 0 deletions

platform/source/mbed_sdk_boot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/* This startup is for baremetal. There is no RTOS in baremetal,
2525
* therefore we protect this file with MBED_CONF_RTOS_PRESENT.
26-
* Note: The start-up code for mbed OS is in rtos/source/TARGET_CORTEX/mbed_boot code file.
26+
* Note: The start-up code for mbed OS is in cmsis/device/rtos/TOOLCHAIN_<TOOLCHAIN>/mbed_boot_<TOOLCHAIN>.c code file.
2727
*/
2828
#if !defined(MBED_CONF_RTOS_PRESENT)
2929

tools/importer/README.md

Lines changed: 2 additions & 2 deletions

tools/importer/cmsis_importer.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,145 +2,145 @@
22
"files" : [
33
{
44
"src_file" : "CMSIS/Core/Template/ARMv8-M/tz_context.c",
5-
"dest_file" : "cmsis/TARGET_CORTEX_M/mbed_tz_context.c"
5+
"dest_file" : "cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_M/Source/mbed_tz_context.c"
66
},
77
{
88
"src_file" : "CMSIS/RTOS2/RTX/Config/handlers.c",
9-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Config/TARGET_CORTEX_A/handlers.c"
9+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Config/TARGET_CORTEX_A/handlers.c"
1010
},
1111
{
1212
"src_file" : "CMSIS/RTOS2/RTX/Config/RTX_Config.h",
13-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Config/RTX_Config.h"
13+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Config/RTX_Config.h"
1414
},
1515
{
1616
"src_file" : "CMSIS/RTOS2/RTX/Config/RTX_Config.c",
17-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Config/RTX_Config.c"
17+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Config/RTX_Config.c"
1818
},
1919
{
2020
"src_file" : "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s",
21-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_ARM/TARGET_M0/irq_cm0.S"
21+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_M0/irq_cm0.S"
2222
},
2323
{
2424
"src_file" : "CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s",
25-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_ARM/TARGET_M0P/irq_cm0.S"
25+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_M0P/irq_cm0.S"
2626
},
2727
{
2828
"src_file" : "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mbl.s",
29-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_ARM/TARGET_M23/irq_armv8mbl.S"
29+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_M23/irq_armv8mbl.S"
3030
},
3131
{
3232
"src_file" : "CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s",
33-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_ARM/TARGET_M3/irq_cm3.S"
33+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_M3/irq_cm3.S"
3434
},
3535
{
3636
"src_file" : "CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s",
37-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_ARM/TARGET_M33/irq_armv8mml.S"
37+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_M33/irq_armv8mml.S"
3838
},
3939
{
4040
"src_file" : "CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s",
41-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/irq_cm4f.S"
41+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/irq_cm4f.S"
4242
},
4343
{
4444
"src_file" : "CMSIS/RTOS2/RTX/Source/ARM/irq_ca.s",
45-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_ARM/TARGET_CORTEX_A/irq_ca.S"
45+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_CORTEX_A/irq_ca.S"
4646
},
4747
{
4848
"src_file" : "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S",
49-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC/TARGET_M0/irq_cm0.S"
49+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_GCC/TARGET_M0/irq_cm0.S"
5050
},
5151
{
5252
"src_file" : "CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.S",
53-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC/TARGET_M0P/irq_cm0.S"
53+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_GCC/TARGET_M0P/irq_cm0.S"
5454
},
5555
{
5656
"src_file" : "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mbl.S",
57-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC/TARGET_M23/irq_armv8mbl.S"
57+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_GCC/TARGET_M23/irq_armv8mbl.S"
5858
},
5959
{
6060
"src_file" : "CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.S",
61-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC/TARGET_M3/irq_cm3.S"
61+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_GCC/TARGET_M3/irq_cm3.S"
6262
},
6363
{
6464
"src_file" : "CMSIS/RTOS2/RTX/Source/GCC/irq_armv8mml.S",
65-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC/TARGET_M33/irq_armv8mml.S"
65+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_GCC/TARGET_M33/irq_armv8mml.S"
6666
},
6767
{
6868
"src_file" : "CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.S",
69-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/irq_cm4f.S"
69+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/irq_cm4f.S"
7070
},
7171
{
7272
"src_file" : "CMSIS/RTOS2/RTX/Source/GCC/irq_ca.S",
73-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC/TARGET_CORTEX_A/irq_ca.S"
73+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_GCC/TARGET_CORTEX_A/irq_ca.S"
7474
},
7575
{
7676
"src_file" : "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s",
77-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_IAR/TARGET_M0/irq_cm0.S"
77+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_M0/irq_cm0.S"
7878
},
7979
{
8080
"src_file" : "CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s",
81-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_IAR/TARGET_M0P/irq_cm0.S"
81+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_M0P/irq_cm0.S"
8282
},
8383
{
8484
"src_file" : "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mbl_common.s",
85-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_IAR/TARGET_M23/irq_armv8mbl_common.S"
85+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_M23/irq_armv8mbl_common.S"
8686
},
8787
{
8888
"src_file" : "CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s",
89-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_IAR/TARGET_M3/irq_cm3.S"
89+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_M3/irq_cm3.S"
9090
},
9191
{
9292
"src_file" : "CMSIS/RTOS2/RTX/Source/IAR/irq_armv8mml_common.s",
93-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_IAR/TARGET_M33/irq_armv8mml_common.S"
93+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_M33/irq_armv8mml_common.S"
9494
},
9595
{
9696
"src_file" : "CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s",
97-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/irq_cm4f.S"
97+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/irq_cm4f.S"
9898
},
9999
{
100100
"src_file" : "CMSIS/RTOS2/Source/os_systick.c",
101-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/Source/os_systick.c"
101+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/Source/os_systick.c"
102102
},
103103
{
104104
"src_file" : "CMSIS/RTOS2/RTX/Source/IAR/irq_ca.s",
105-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_IAR/TARGET_CORTEX_A/irq_ca.S"
105+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_IAR/TARGET_CORTEX_A/irq_ca.S"
106106
},
107107
{
108108
"src_file" : "CMSIS/RTOS2/RTX/Library/cmsis_os1.c",
109-
"dest_file" : "rtos/source/TARGET_CORTEX/rtx4/cmsis_os1.c"
109+
"dest_file" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Library/cmsis_os1.c"
110110
}
111111
],
112112
"folders" : [
113113
{
114114
"src_folder" : "CMSIS/Core/Include/",
115-
"dest_folder" : "cmsis/TARGET_CORTEX_M/"
115+
"dest_folder" : "cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_M/Include"
116116
},
117117
{
118118
"src_folder" : "CMSIS/RTOS2/Include/",
119-
"dest_folder" : "rtos/source/TARGET_CORTEX/rtx5/Include/"
119+
"dest_folder" : "cmsis/CMSIS_5/CMSIS/RTOS2/Include/"
120120
},
121121
{
122122
"src_folder" : "CMSIS/RTOS2/RTX/Include1/",
123-
"dest_folder" : "rtos/source/TARGET_CORTEX/rtx4/"
123+
"dest_folder" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Include1/"
124124
},
125125
{
126126
"src_folder" : "CMSIS/RTOS2/RTX/Include/",
127-
"dest_folder" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Include/"
127+
"dest_folder" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Include/"
128128
},
129129
{
130130
"src_folder" : "CMSIS/RTOS2/RTX/Source/",
131-
"dest_folder" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/"
131+
"dest_folder" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/"
132132
},
133133
{
134134
"src_folder" : "CMSIS/RTOS2/RTX/Source/",
135-
"dest_folder" : "rtos/source/TARGET_CORTEX/rtx5/RTX/Source/"
135+
"dest_folder" : "cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/"
136136
},
137137
{
138138
"src_folder" : "CMSIS/Core_A/Include/",
139-
"dest_folder" : "cmsis/TARGET_CORTEX_A/"
139+
"dest_folder" : "cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_A/Include/"
140140
},
141141
{
142142
"src_folder" : "CMSIS/Core_A/Source/",
143-
"dest_folder" : "cmsis/TARGET_CORTEX_A/"
143+
"dest_folder" : "cmsis/CMSIS_5/CMSIS/TARGET_CORTEX_A/Source/"
144144
}
145145
],
146146
"commit_sha" : [

0 commit comments

Comments
 (0)
0