mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-22 16:20:54 +00:00
platform/embedded: fix unused warnnings
This commit is contained in:
parent
ee45d18f4a
commit
4b7165eeb7
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user