Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split up the compiler files to a generic part and a profile specific part #44

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
459 changes: 11 additions & 448 deletions CMSIS/Core/Include/a-profile/cmsis_armclang_a.h

Large diffs are not rendered by default.

470 changes: 23 additions & 447 deletions CMSIS/Core/Include/a-profile/cmsis_clang_a.h

Large diffs are not rendered by default.

700 changes: 5 additions & 695 deletions CMSIS/Core/Include/a-profile/cmsis_gcc_a.h

Large diffs are not rendered by default.

707 changes: 707 additions & 0 deletions CMSIS/Core/Include/cmsis_armclang.h

Large diffs are not rendered by default.

708 changes: 708 additions & 0 deletions CMSIS/Core/Include/cmsis_clang.h

Large diffs are not rendered by default.

40 changes: 4 additions & 36 deletions CMSIS/Core/Include/cmsis_compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,59 +29,27 @@
* Arm Compiler above 6.10.1 (armclang)
*/
#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6100100)
#if __ARM_ARCH_PROFILE == 'A'
#include "./a-profile/cmsis_armclang_a.h"
#elif __ARM_ARCH_PROFILE == 'R'
#include "./r-profile/cmsis_armclang_r.h"
#elif __ARM_ARCH_PROFILE == 'M'
#include "./m-profile/cmsis_armclang_m.h"
#else
#error "Unknown Arm architecture profile"
#endif
#include "cmsis_armclang.h"

/*
* TI Arm Clang Compiler (tiarmclang)
*/
#elif defined (__ti__)
#if __ARM_ARCH_PROFILE == 'A'
#error "Core-A is not supported for this compiler"
#elif __ARM_ARCH_PROFILE == 'R'
#error "Core-R is not supported for this compiler"
#elif __ARM_ARCH_PROFILE == 'M'
#include "m-profile/cmsis_tiarmclang_m.h"
#else
#error "Unknown Arm architecture profile"
#endif
#include "cmsis_tiarmclang.h"


/*
* LLVM/Clang Compiler
*/
#elif defined ( __clang__ )
#if __ARM_ARCH_PROFILE == 'A'
#include "a-profile/cmsis_clang_a.h"
#elif __ARM_ARCH_PROFILE == 'R'
#include "r-profile/cmsis_clang_r.h"
#elif __ARM_ARCH_PROFILE == 'M'
#include "m-profile/cmsis_clang_m.h"
#else
#error "Unknown Arm architecture profile"
#endif
#include "cmsis_clang.h"


/*
* GNU Compiler
*/
#elif defined ( __GNUC__ )
#if __ARM_ARCH_PROFILE == 'A'
#include "a-profile/cmsis_gcc_a.h"
#elif __ARM_ARCH_PROFILE == 'R'
#include "r-profile/cmsis_gcc_r.h"
#elif __ARM_ARCH_PROFILE == 'M'
#include "m-profile/cmsis_gcc_m.h"
#else
#error "Unknown Arm architecture profile"
#endif
#include "cmsis_gcc.h"


/*
Expand Down
Loading
Loading