Skip to content

Commit

Permalink
Merge pull request #2280 from pan-/nrf-standard-build
Browse files Browse the repository at this point in the history
Change default_build from small to standard on NRF based targets with at least 32K of RAM.
  • Loading branch information
sg- authored Jul 28, 2016
2 parents 2a7d364 + a7d1bf7 commit 43bae17
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/basic/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/isr/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/mail/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ typedef struct {
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/mutex/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832)
#define STACK_SIZE 512
#define STACK_SIZE 1024
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/queue/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ typedef struct {
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/semaphore/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/signals/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const int SIGNAL_HANDLE_DELEY = 25;
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
8 changes: 3 additions & 5 deletions hal/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -1195,14 +1195,14 @@
"toolchains": ["ARM_STD", "GCC_ARM"]
},
"program_cycle_s": 6,
"default_build": "small",
"features": ["BLE"]
},
"MCU_NRF51_16K_BASE": {
"inherits": ["MCU_NRF51"],
"extra_labels_add": ["MCU_NORDIC_16K", "MCU_NRF51_16K"],
"macros_add": ["TARGET_MCU_NORDIC_16K", "TARGET_MCU_NRF51_16K"],
"public": false
"public": false,
"default_build": "small"
},
"MCU_NRF51_16K_BOOT_BASE": {
"inherits": ["MCU_NRF51_16K_BASE"],
Expand Down Expand Up @@ -1860,7 +1860,6 @@
"toolchains": ["ARM_STD", "GCC_ARM", "IAR"]
},
"program_cycle_s": 6,
"default_build": "small",
"features": ["BLE"],
"config":{
"lf_clock_src": {
Expand Down Expand Up @@ -1912,8 +1911,7 @@
"value": "NRF_LF_SRC_XTAL",
"macro_name": "MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC"
}
},
"default_build": "small"
}
},
"NRF52_DK": {
"supported_form_factors": ["ARDUINO"],
Expand Down
2 changes: 1 addition & 1 deletion libraries/tests/rtos/mbed/basic/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion libraries/tests/rtos/mbed/isr/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion libraries/tests/rtos/mbed/mail/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ typedef struct {
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion libraries/tests/rtos/mbed/mutex/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion libraries/tests/rtos/mbed/queue/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ typedef struct {
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion libraries/tests/rtos/mbed/semaphore/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
2 changes: 1 addition & 1 deletion libraries/tests/rtos/mbed/signals/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#elif (defined(TARGET_EFM32GG_STK3700)) && !defined(TOOLCHAIN_ARM_MICRO)
#define STACK_SIZE 1536
#elif defined(TARGET_MCU_NRF51822)
#define STACK_SIZE 512
#define STACK_SIZE 768
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down

0 comments on commit 43bae17

Please sign in to comment.