Move defines from cmake files into noridc files

This requires changing of nordic source but do away with
magic defines in parent modules

note on #define asm __ASM
all yotta mobule compile with -std=c99 which does not
include "asm" keyword.
master
Liyou Zhou 8 years ago
parent edae269261
commit e68b1f8c39

@ -1,2 +0,0 @@
add_definitions(-DBLE_STACK_SUPPORT_REQD)
add_definitions(-Dasm=__ASM)

@ -3,6 +3,8 @@
#include "nrf.h"
#define asm __ASM
/*lint --e{438, 522} "Variable not used" "Function lacks side-effects" */
#if defined ( __CC_ARM )
static __ASM void __INLINE nrf_delay_us(uint32_t volatile number_of_us)

@ -22,6 +22,7 @@
#ifndef BLE_STACK_HANDLER_TYPES_H__
#define BLE_STACK_HANDLER_TYPES_H__
#define BLE_STACK_SUPPORT_REQD
#ifdef BLE_STACK_SUPPORT_REQD
#include <stdlib.h>

Loading…
Cancel
Save