forked from Open-CMSIS-Pack/cmsis-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
1,538 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
AREA DATA | ||
|
||
IF HEXADECIMAL_TEST != 11259375 ; 0xABCDEF | ||
INFO 1, "HEXADECIMAL_TEST failed!" | ||
ENDIF | ||
|
||
IF DECIMAL_TEST != 1234567890 | ||
INFO 1, "DECIMAL_TEST failed!" | ||
ENDIF | ||
|
||
IF STRING_TEST != "String0" | ||
INFO 1, "STRING_TEST failed!" | ||
ENDIF | ||
|
||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
AREA DATA | ||
|
||
IF :LNOT::DEF:AUTO_DEF | ||
INFO 1, "AUTO_DEF is not defined!" | ||
ENDIF | ||
|
||
END | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
.syntax unified | ||
.arch armv7-m | ||
|
||
.ifndef GAS_DEF | ||
.error "GAS_DEF is not defined!" | ||
.endif | ||
|
||
.end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
.syntax unified | ||
.arch armv7-m | ||
|
||
#ifndef PRE_PROCESSED_DEF | ||
.error "PRE_PROCESSED_DEF is not defined!" | ||
#endif | ||
|
||
.end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
.syntax unified | ||
.arch armv7-m | ||
|
||
.ifndef GAS_DEF | ||
.error "GAS_DEF is not defined!" | ||
.endif | ||
|
||
.end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
.syntax unified | ||
.arch armv7-m | ||
|
||
#ifndef PRE_PROCESSED_DEF | ||
.equ SET_ERR_DEF,1 | ||
#endif | ||
|
||
.ifndef SET_ERR_DEF | ||
.error "SET_ERR_DEF is not defined! It seems this file was preprocessed but it shouldn't!" | ||
.endif | ||
|
||
.end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
.syntax unified | ||
.arch armv7-m | ||
|
||
#ifndef PRE_PROCESSED_DEF | ||
.error "PRE_PROCESSED_DEF is not defined!" | ||
#endif | ||
|
||
.end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
MODULE ?Asm | ||
|
||
#ifndef IAR_ASM_DEF | ||
#error "IAR_ASM_DEF is not defined!" | ||
#endif | ||
|
||
EXTERN Reset_Handler_C | ||
|
||
PUBWEAK Reset_Handler | ||
SECTION .text:CODE:REORDER:NOROOT(2) | ||
Reset_Handler | ||
LDR R0, =Reset_Handler_C | ||
BX R0 | ||
|
||
END |
5 changes: 2 additions & 3 deletions
5
test/data/MyProject/CM3/MyMain.c → test/data/build-asm/project/main.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
#include "RTE_Components.h" | ||
#include CMSIS_device_header | ||
|
||
int main (void) { | ||
return 1; | ||
int main(void) { | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
project: | ||
|
||
components: | ||
- component: ARM::CMSIS:CORE | ||
- component: ARM::Device:Startup&C Startup | ||
|
||
groups: | ||
- group: Source | ||
files: | ||
- file: ./main.c | ||
|
||
- group: GCC-CLANG | ||
for-compiler: [GCC, CLANG] | ||
files: | ||
- file: ./GCC/GAS.s | ||
for-compiler: GCC | ||
define: | ||
- GAS_DEF | ||
- file: ./GCC/PreProcessed.S | ||
define: | ||
- PRE_PROCESSED_DEF | ||
- file: ./GCC/NonPreProcessed.s | ||
misc: | ||
- ASM: | ||
- -DPRE_PROCESSED_DEF | ||
|
||
- group: AC6 | ||
for-compiler: AC6 | ||
files: | ||
- file: ./AC6/AsmArm.s | ||
define: | ||
- HEXADECIMAL_TEST: 0xABCDEF | ||
- DECIMAL_TEST: 1234567890 | ||
- STRING_TEST: "\"String0\"" | ||
- file: ./AC6/GnuSyntax.s | ||
define: | ||
- GAS_DEF | ||
misc: | ||
- ASM: | ||
- -masm=gnu | ||
- file: ./AC6/PreProcessed.S | ||
define: | ||
- PRE_PROCESSED_DEF | ||
- file: ./AC6/Auto.s | ||
define: | ||
- AUTO_DEF | ||
|
||
- group: IAR | ||
for-compiler: IAR | ||
files: | ||
- file: ./IAR/Asm.s | ||
define: | ||
- IAR_ASM_DEF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
solution: | ||
created-for: CMSIS-Toolbox@2.2.1 | ||
cdefault: | ||
|
||
packs: | ||
- pack: ARM::Cortex_DFP | ||
- pack: ARM::CMSIS | ||
|
||
target-types: | ||
- type: ARMCM0 | ||
device: ARMCM0 | ||
|
||
build-types: | ||
- type: AC6 | ||
compiler: AC6 | ||
|
||
- type: GCC | ||
compiler: GCC | ||
|
||
- type: IAR | ||
compiler: IAR | ||
|
||
- type: CLANG | ||
compiler: CLANG | ||
|
||
projects: | ||
- project: ./project/project.cproject.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "RTE_Components.h" | ||
#include CMSIS_device_header | ||
|
||
int main(void) { | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
project: | ||
|
||
components: | ||
- component: ARM::CMSIS:CORE | ||
- component: ARM::Device:Startup&C Startup | ||
|
||
groups: | ||
- group: Source | ||
files: | ||
- file: ./main.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
solution: | ||
created-for: CMSIS-Toolbox@2.2.1 | ||
cdefault: | ||
|
||
packs: | ||
- pack: ARM::Cortex_DFP | ||
- pack: ARM::CMSIS | ||
|
||
target-types: | ||
- type: ARMCM0 | ||
device: ARMCM0 | ||
|
||
build-types: | ||
- type: AC6 | ||
compiler: AC6 | ||
|
||
- type: GCC | ||
compiler: GCC | ||
misc: | ||
- Library: | ||
- -lm | ||
- -lc | ||
|
||
- type: IAR | ||
compiler: IAR | ||
|
||
- type: CLANG | ||
compiler: CLANG | ||
|
||
projects: | ||
- project: ./project/project.cproject.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "RTE_Components.h" | ||
#include CMSIS_device_header | ||
#include <cstddef> | ||
|
||
int main(void) { | ||
std::size_t s = 0; | ||
return s; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
project: | ||
|
||
components: | ||
- component: ARM::CMSIS:CORE | ||
- component: ARM::Device:Startup&C Startup | ||
|
||
groups: | ||
- group: Source | ||
files: | ||
- file: ./main.cpp |
Oops, something went wrong.