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

Support for ARMCC6 #1

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion source/nordic_sdk/components/drivers_nrf/delay/nrf_delay.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ loop
BX LR
}

#elif defined ( __ICCARM__ )
#elif defined ( __ICCARM__ ) || (__ARMCC_VERSION)

static void __INLINE nrf_delay_us(uint32_t volatile number_of_us)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
*
* @param[in] section_name Name of the section to register
**/
#if defined __CC_ARM
#if defined (__CC_ARM)

// Not required by this compiler
#define NRF_SECTION_VARS_REGISTER_SECTION(section_name)
Expand All @@ -69,7 +69,7 @@
// Not required by this compiler
#define NRF_SECTION_VARS_REGISTER_SECTION(section_name)

#elif defined __ICCARM__
#elif defined (__ICCARM__) || (__ARMCC_VERSION)

#define NRF_SECTION_VARS_REGISTER_SECTION(section_name) NRF_PRAGMA(section = ## #section_name )

Expand All @@ -88,7 +88,7 @@
*
* @param[in] section_name Name of the section
*/
#if defined __CC_ARM
#if defined (_CC_ARM) || (__ARMCC_VERSION)

#define NRF_SECTION_VARS_START_SYMBOL(section_name) section_name ## $$Base

Expand All @@ -114,7 +114,7 @@
*
* @param[in] section_name Name of the section
*/
#if defined __CC_ARM
#if defined (_CC_ARM) || (__ARMCC_VERSION)

#define NRF_SECTION_VARS_END_SYMBOL(section_name) section_name ## $$Limit

Expand All @@ -138,7 +138,7 @@
* @param[in] section_name Name of the section
*/

#if defined __CC_ARM
#if defined (_CC_ARM) || (__ARMCC_VERSION)

#define NRF_SECTION_VARS_LENGTH(section_name) \
((uint32_t)&NRF_SECTION_VARS_END_SYMBOL(section_name) - (uint32_t)&NRF_SECTION_VARS_START_SYMBOL(section_name))
Expand All @@ -164,7 +164,7 @@
*
* param[in] section_name Name of the section to get the start address from
*/
#if defined __CC_ARM
#if defined (_CC_ARM) || (__ARMCC_VERSION)

#define NRF_SECTION_VARS_START_ADDR(section_name) (uint32_t)&NRF_SECTION_VARS_START_SYMBOL(section_name)

Expand All @@ -187,7 +187,7 @@
*
* @param[in] section_name Name of the section to get end address from
*/
#if defined __CC_ARM
#if defined (_CC_ARM) || (__ARMCC_VERSION)

#define NRF_SECTION_VARS_END_ADDR(section_name) (uint32_t)&NRF_SECTION_VARS_END_SYMBOL(section_name)

Expand All @@ -213,7 +213,7 @@
* @param[in] type_name Name of the type stored in the section
* @param[in] section_name Name of the section
*/
#if defined __CC_ARM
#if defined (_CC_ARM) || (__ARMCC_VERSION)

#define NRF_SECTION_VARS_REGISTER_SYMBOLS(type_name, section_name) \
extern type_name* NRF_SECTION_VARS_START_SYMBOL(section_name); \
Expand Down Expand Up @@ -253,7 +253,7 @@
* @param[in] section_name Name of the section
* @param[in] type_def Datatype of the symbol to place in the given section
*/
#if defined __CC_ARM
#if defined (_CC_ARM) || (__ARMCC_VERSION)

#define NRF_SECTION_VARS_ADD(section_name, type_def) \
static type_def __attribute__((section( #section_name ))) __attribute__((used))
Expand Down Expand Up @@ -288,7 +288,7 @@
* @param[in] section_name Name of the section
*/

#if defined __CC_ARM
#if defined (_CC_ARM) || (__ARMCC_VERSION)

#define NRF_SECTION_VARS_GET(i, type_name, section_name) \
(type_name*)(NRF_SECTION_VARS_START_ADDR(section_name) + i * sizeof(type_name))
Expand Down