From 2d8e3debb654462125e8fe13b8b7acf3597d8250 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Tue, 20 Jun 2017 15:03:34 +0200 Subject: [PATCH] nimble/controller: Emit build error when building with non-32kHz clock X-Original-Commit: cdf566d3747ec6f50fc5c0ecfb10d357bc1da2be --- nimble/controller/include/controller/ble_ll.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nimble/controller/include/controller/ble_ll.h b/nimble/controller/include/controller/ble_ll.h index d397750c9..9bf3bcaaa 100644 --- a/nimble/controller/include/controller/ble_ll.h +++ b/nimble/controller/include/controller/ble_ll.h @@ -31,6 +31,10 @@ extern "C" { #endif +#if MYNEWT_VAL(OS_CPUTIME_FREQ) != 32768 +#error 32.768kHz clock required +#endif + /* * XXX: * I guess this should not depend on the 32768 crystal to be honest. This