platform/embedded: fix unused warnnings

This commit is contained in:
Matthias Ringwald 2022-12-31 17:40:27 +01:00
parent ee45d18f4a
commit 4b7165eeb7
2 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,8 @@ static void btstack_stdin_handler(char c){
}
static void btstack_stdin_process(struct btstack_data_source *ds, btstack_data_source_callback_type_t callback_type){
UNUSED(ds);
UNUSED(callback_type);
if (!stdin_character_received) {
return;
}
@ -83,6 +85,8 @@ static void btstack_stdin_process(struct btstack_data_source *ds, btstack_data_s
#else
static void btstack_stdin_process(struct btstack_data_source *ds, btstack_data_source_callback_type_t callback_type){
UNUSED(ds);
UNUSED(callback_type);
if (SEGGER_RTT_HasKey()){
int stdin_character = SEGGER_RTT_GetKey();
(*stdin_handler)((uint8_t)stdin_character);

View File

@ -91,6 +91,7 @@ static int btstack_uart_embedded_init(const btstack_uart_config_t * config){
}
static void btstack_uart_embedded_process(btstack_data_source_t *ds, btstack_data_source_callback_type_t callback_type) {
UNUSED(ds);
switch (callback_type){
case DATA_SOURCE_CALLBACK_POLL:
if (send_complete){
@ -152,6 +153,7 @@ static void btstack_uart_embedded_set_wakeup_handler( void (*the_wakeup_handler)
}
static int btstack_uart_embedded_set_parity(int parity){
UNUSED(parity);
return 0;
}