Bluetooth: Use k_uptime_get() instead of deprecated sys_tick_get_32()

Switch to using k_uptime_get() instead of the deprecated
sys_tick_get_32() API.

Change-Id: I737ef0153eff9d283bae840ff5177f8132396e1b
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-11-10 20:53:10 +02:00
commit 80e04e4fd1
2 changed files with 2 additions and 2 deletions

View file

@ -2354,7 +2354,7 @@ static int prng_reseed(struct tc_hmac_prng_struct *h)
net_buf_unref(rsp);
}
extra = sys_tick_get();
extra = k_uptime_get();
ret = tc_hmac_prng_reseed(h, seed, sizeof(seed), (uint8_t *)&extra,
sizeof(extra));

View file

@ -65,7 +65,7 @@ static inline void encode_hdr(struct bt_monitor_hdr *hdr, uint16_t opcode,
/* Extended header */
hdr->type = BT_MONITOR_TS32;
ts32 = sys_tick_get_32() * sys_clock_us_per_tick / 100;
ts32 = k_uptime_get() * 10;
hdr->ts32 = sys_cpu_to_le32(ts32);
}