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

Make OS_TICKS_PER_SEC configurable for the nRF52 family. #2295

Merged
merged 1 commit into from
Jun 2, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion hw/mcu/nordic/nrf52xxx/include/mcu/cortex_m4.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
extern "C" {
#endif

#define OS_TICKS_PER_SEC (128)
#define OS_TICKS_PER_SEC MYNEWT_VAL(OS_TICKS_PER_SEC)

static inline void
hal_debug_break(void)
Expand Down
6 changes: 6 additions & 0 deletions hw/mcu/nordic/nrf52xxx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ syscfg.defs:
the breakpoint wherever it gets called, For example, reset and crash
value: 0

OS_TICKS_PER_SEC:
description: >
Desired ticks frequency in Hz. Note: Value must be a power of 2.
value: 128
range: 128,256,512,1024

# MCU peripherals definitions
I2C_0:
description: 'Enable nRF52xxx I2C (TWI) 0'
Expand Down