Skip to content

Commit 0d48a26

Browse files
authored
Merge pull request #12154 from hugueskamba/hk-baremetal-nrf51822-fix
NRF51822: Fix baremetal linker error
2 parents 706625a + e0c628c commit 0d48a26

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

targets/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
#if DEVICE_USTICKER
1618
#include <stddef.h>
1719
#include <stdbool.h>
1820
#include "us_ticker_api.h"
@@ -613,3 +615,4 @@ uint32_t os_tick_val(void) {
613615
return clock_cycles_by_tick - ((current_counter - next_tick_cc_value) % clock_cycles_by_tick);
614616
}
615617
}
618+
#endif // DEVICE_USTICKER

targets/targets.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7223,8 +7223,13 @@
72237223
"SERIAL",
72247224
"SLEEP",
72257225
"SPI",
7226-
"SPISLAVE"
7227-
]
7226+
"SPISLAVE",
7227+
"USTICKER"
7228+
],
7229+
"overrides": {
7230+
"tickless-from-us-ticker" : true,
7231+
"boot-stack-size" : "0x400"
7232+
}
72287233
},
72297234
"MCU_NRF51_16K_BASE": {
72307235
"inherits": [

0 commit comments

Comments
 (0)