diff options
author | pbert <p.engelbert@posteo.net> | 2021-07-24 13:53:04 +0200 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2021-07-24 14:32:53 +0200 |
commit | b1674d3607f05134def1edef2b914af9a37a6fd5 (patch) | |
tree | a3037e70d8a1c9eac913b23c487caa3538742141 /examples/src | |
parent | 1b2928a36dd7166f03fd7741571e0d61d4f8635e (diff) | |
download | nrf-softdevice-b1674d3607f05134def1edef2b914af9a37a6fd5.zip |
switch to internal clock source for examples
Diffstat (limited to 'examples/src')
-rw-r--r-- | examples/src/bin/ble_advertise.rs | 6 | ||||
-rw-r--r-- | examples/src/bin/ble_bas_central.rs | 6 | ||||
-rw-r--r-- | examples/src/bin/ble_bas_peripheral.rs | 6 | ||||
-rw-r--r-- | examples/src/bin/ble_l2cap_central.rs | 6 | ||||
-rw-r--r-- | examples/src/bin/ble_l2cap_peripheral.rs | 6 | ||||
-rw-r--r-- | examples/src/bin/ble_peripheral_onoff.rs | 6 | ||||
-rw-r--r-- | examples/src/bin/ble_scan.rs | 6 |
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 { |