2022-08-25 02:31:52 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef H_ESP_PERIPHERAL_
|
|
|
|
#define H_ESP_PERIPHERAL_
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "nimble/ble.h"
|
|
|
|
#include "modlog/modlog.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Console */
|
|
|
|
int scli_init(void);
|
|
|
|
int scli_receive_key(int *key);
|
|
|
|
|
|
|
|
/** Misc. */
|
|
|
|
void print_bytes(const uint8_t *bytes, int len);
|
|
|
|
void print_addr(const void *addr);
|
2023-07-14 05:06:47 -04:00
|
|
|
char *addr_str(const void *addr);
|
2022-08-25 02:31:52 -04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|