summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorpbert <p.engelbert@posteo.net>2021-07-24 13:53:04 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2021-07-24 14:32:53 +0200
commitb1674d3607f05134def1edef2b914af9a37a6fd5 (patch)
treea3037e70d8a1c9eac913b23c487caa3538742141 /examples
parent1b2928a36dd7166f03fd7741571e0d61d4f8635e (diff)
downloadnrf-softdevice-b1674d3607f05134def1edef2b914af9a37a6fd5.zip
switch to internal clock source for examples
Diffstat (limited to 'examples')
-rw-r--r--examples/src/bin/ble_advertise.rs6
-rw-r--r--examples/src/bin/ble_bas_central.rs6
-rw-r--r--examples/src/bin/ble_bas_peripheral.rs6
-rw-r--r--examples/src/bin/ble_l2cap_central.rs6
-rw-r--r--examples/src/bin/ble_l2cap_peripheral.rs6
-rw-r--r--examples/src/bin/ble_peripheral_onoff.rs6
-rw-r--r--examples/src/bin/ble_scan.rs6
7 files changed, 21 insertions, 21 deletions
diff --git a/examples/src/bin/ble_advertise.rs b/examples/src/bin/ble_advertise.rs
index b65ae79..28b3723 100644
--- a/examples/src/bin/ble_advertise.rs
+++ b/examples/src/bin/ble_advertise.rs
@@ -56,9 +56,9 @@ fn main() -> ! {
let config = nrf_softdevice::Config {
clock: Some(raw::nrf_clock_lf_cfg_t {
- source: raw::NRF_CLOCK_LF_SRC_XTAL as u8,
- rc_ctiv: 0,
- rc_temp_ctiv: 0,
+ source: raw::NRF_CLOCK_LF_SRC_RC as u8,
+ rc_ctiv: 4,
+ rc_temp_ctiv: 2,
accuracy: 7,
}),
conn_gap: Some(raw::ble_gap_conn_cfg_t {
diff --git a/examples/src/bin/ble_bas_central.rs b/examples/src/bin/ble_bas_central.rs
index 8911ca8..2106523 100644
--- a/examples/src/bin/ble_bas_central.rs
+++ b/examples/src/bin/ble_bas_central.rs
@@ -65,9 +65,9 @@ fn main() -> ! {
let config = nrf_softdevice::Config {
clock: Some(raw::nrf_clock_lf_cfg_t {
- source: raw::NRF_CLOCK_LF_SRC_XTAL as u8,
- rc_ctiv: 0,
- rc_temp_ctiv: 0,
+ source: raw::NRF_CLOCK_LF_SRC_RC as u8,
+ rc_ctiv: 4,
+ rc_temp_ctiv: 2,
accuracy: 7,
}),
conn_gap: Some(raw::ble_gap_conn_cfg_t {
diff --git a/examples/src/bin/ble_bas_peripheral.rs b/examples/src/bin/ble_bas_peripheral.rs
index b9b1221..37c584e 100644
--- a/examples/src/bin/ble_bas_peripheral.rs
+++ b/examples/src/bin/ble_bas_peripheral.rs
@@ -95,9 +95,9 @@ fn main() -> ! {
let config = nrf_softdevice::Config {
clock: Some(raw::nrf_clock_lf_cfg_t {
- source: raw::NRF_CLOCK_LF_SRC_XTAL as u8,
- rc_ctiv: 0,
- rc_temp_ctiv: 0,
+ source: raw::NRF_CLOCK_LF_SRC_RC as u8,
+ rc_ctiv: 4,
+ rc_temp_ctiv: 2,
accuracy: 7,
}),
conn_gap: Some(raw::ble_gap_conn_cfg_t {
diff --git a/examples/src/bin/ble_l2cap_central.rs b/examples/src/bin/ble_l2cap_central.rs
index e710e9b..2e722f2 100644
--- a/examples/src/bin/ble_l2cap_central.rs
+++ b/examples/src/bin/ble_l2cap_central.rs
@@ -130,9 +130,9 @@ fn main() -> ! {
let config = nrf_softdevice::Config {
clock: Some(raw::nrf_clock_lf_cfg_t {
- source: raw::NRF_CLOCK_LF_SRC_XTAL as u8,
- rc_ctiv: 0,
- rc_temp_ctiv: 0,
+ source: raw::NRF_CLOCK_LF_SRC_RC as u8,
+ rc_ctiv: 4,
+ rc_temp_ctiv: 2,
accuracy: 7,
}),
conn_gap: Some(raw::ble_gap_conn_cfg_t {
diff --git a/examples/src/bin/ble_l2cap_peripheral.rs b/examples/src/bin/ble_l2cap_peripheral.rs
index d752ef7..f97a9f0 100644
--- a/examples/src/bin/ble_l2cap_peripheral.rs
+++ b/examples/src/bin/ble_l2cap_peripheral.rs
@@ -102,9 +102,9 @@ fn main() -> ! {
let config = nrf_softdevice::Config {
clock: Some(raw::nrf_clock_lf_cfg_t {
- source: raw::NRF_CLOCK_LF_SRC_XTAL as u8,
- rc_ctiv: 0,
- rc_temp_ctiv: 0,
+ source: raw::NRF_CLOCK_LF_SRC_RC as u8,
+ rc_ctiv: 4,
+ rc_temp_ctiv: 2,
accuracy: 7,
}),
conn_gap: Some(raw::ble_gap_conn_cfg_t {
diff --git a/examples/src/bin/ble_peripheral_onoff.rs b/examples/src/bin/ble_peripheral_onoff.rs
index eb74814..b40d096 100644
--- a/examples/src/bin/ble_peripheral_onoff.rs
+++ b/examples/src/bin/ble_peripheral_onoff.rs
@@ -132,9 +132,9 @@ fn main() -> ! {
let config = nrf_softdevice::Config {
clock: Some(raw::nrf_clock_lf_cfg_t {
- source: raw::NRF_CLOCK_LF_SRC_XTAL as u8,
- rc_ctiv: 0,
- rc_temp_ctiv: 0,
+ source: raw::NRF_CLOCK_LF_SRC_RC as u8,
+ rc_ctiv: 4,
+ rc_temp_ctiv: 2,
accuracy: 7,
}),
conn_gap: Some(raw::ble_gap_conn_cfg_t {
diff --git a/examples/src/bin/ble_scan.rs b/examples/src/bin/ble_scan.rs
index df23162..24757f5 100644
--- a/examples/src/bin/ble_scan.rs
+++ b/examples/src/bin/ble_scan.rs
@@ -76,9 +76,9 @@ fn main() -> ! {
let config = nrf_softdevice::Config {
clock: Some(raw::nrf_clock_lf_cfg_t {
- source: raw::NRF_CLOCK_LF_SRC_XTAL as u8,
- rc_ctiv: 0,
- rc_temp_ctiv: 0,
+ source: raw::NRF_CLOCK_LF_SRC_RC as u8,
+ rc_ctiv: 4,
+ rc_temp_ctiv: 2,
accuracy: 7,
}),
conn_gap: Some(raw::ble_gap_conn_cfg_t {