2016-08-15 18:16:30 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Nordic Semiconductor ASA
|
|
|
|
* Copyright (c) 2016 Vinayak Kariappa Chettimada
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-08-15 18:16:30 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _UTIL_H_
|
|
|
|
#define _UTIL_H_
|
|
|
|
|
2016-12-21 13:21:13 +08:00
|
|
|
#ifndef DOUBLE_BUFFER_SIZE
|
|
|
|
#define DOUBLE_BUFFER_SIZE 2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef TRIPLE_BUFFER_SIZE
|
|
|
|
#define TRIPLE_BUFFER_SIZE 3
|
|
|
|
#endif
|
|
|
|
|
2016-08-15 18:16:30 +08:00
|
|
|
uint8_t util_ones_count_get(uint8_t *octets, uint8_t octets_len);
|
|
|
|
|
|
|
|
#endif
|