add missing const specifiers

This commit is contained in:
Matthias Ringwald 2016-01-22 17:52:43 +01:00
parent d0b87bef91
commit 19084a7dda
7 changed files with 19 additions and 19 deletions

View File

@ -190,7 +190,7 @@ static void h4_register_packet_handler(void (*handler)(uint8_t packet_type, uint
packet_handler = handler;
}
static int h4_open(void *transport_config){
static int h4_open(const void *transport_config){
// open uart
hal_uart_dma_init();
@ -214,7 +214,7 @@ static int h4_set_baudrate(uint32_t baudrate){
return hal_uart_dma_set_baud(baudrate);
}
static int h4_close(void *transport_config){
static int h4_close(const void *transport_config){
// first remove run loop handler
btstack_run_loop_remove_data_source(&hci_transport_h4_dma_ds);

View File

@ -133,7 +133,7 @@ static void h4_init_sm(void){
}
static int h4_open(void *transport_config){
static int h4_open(const void *transport_config){
// open uart
hal_uart_dma_init();
@ -150,7 +150,7 @@ static int h4_open(void *transport_config){
return 0;
}
static int h4_close(void *transport_config){
static int h4_close(const void *transport_config){
// first remove run loop handler
btstack_run_loop_remove_data_source(&hci_transport_h4_dma_ds);

View File

@ -131,7 +131,7 @@ static int h4_set_baudrate(uint32_t baudrate){
return 0;
}
static int h4_open(void *transport_config){
static int h4_open(const void *transport_config){
// check for hci_transport_config_uart_t
if (!transport_config) {
@ -205,7 +205,7 @@ static int h4_open(void *transport_config){
return 0;
}
static int h4_close(void *transport_config){
static int h4_close(const void *transport_config){
// first remove run loop handler
btstack_run_loop_remove_data_source(hci_transport_h4->ds);

View File

@ -85,7 +85,7 @@ static void dummy_handler(uint8_t packet_type, uint8_t *packet, int size);
static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, int size) = dummy_handler;
// prototypes
static int h5_open(void *transport_config){
static int h5_open(const void *transport_config){
// check for hci_transport_config_uart_t
if (!transport_config) {
log_error("hci_transport_h5_posix: no config!");
@ -168,7 +168,7 @@ static int h5_open(void *transport_config){
return 0;
}
static int h5_close(void *transport_config){
static int h5_close(const void *transport_config){
// first remove run loop handler
btstack_run_loop_remove_data_source(hci_transport_h5->ds);

View File

@ -11,18 +11,18 @@
# - Microchip XC32
SUBDIRS = \
arduino \
ez430-rf2560 \
libusb \
msp-exp430f5438-cc2564b \
msp430f5229lp-cc2564b \
mtk \
posix-cc2564b \
posix-csr \
posix-h4 \
posix-stlc2500d \
posix-tc35661 \
posix-wl183x \
libusb \
arduino \
ez430-rf2560 \
msp-exp430f5438-cc2564b \
msp430f5229lp-cc2564b \
mtk \
stm32-f103rb-nucleo \
EXCLUDED = \

View File

@ -73,7 +73,7 @@ static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t si
static uint8_t hci_packet_out[1+HCI_PACKET_BUFFER_SIZE]; // packet type + max(acl header + acl payload, event header + event data)
static uint8_t hci_packet_in[1+HCI_PACKET_BUFFER_SIZE]; // packet type + max(acl header + acl payload, event header + event data)
static int h4_open(void *transport_config){
static int h4_open(const void *transport_config){
int fd = mtk_bt_enable();
if (fd < 0) {
@ -90,7 +90,7 @@ static int h4_open(void *transport_config){
return 0;
}
static int h4_close(void *transport_config){
static int h4_close(const void *transport_config){
mtk_bt_disable(hci_transport_h4->ds->fd);

View File

@ -1,4 +1,4 @@
/*
const /*
* Copyright (C) 2015 BlueKitchen GmbH
*
* Redistribution and use in source and binary forms, with or without
@ -227,7 +227,7 @@ static int h4_set_baudrate(uint32_t baudrate){
return 0;
}
static int h4_open(void *transport_config){
static int h4_open(const void *transport_config){
// UART config
wiced_uart_config_t uart_config =
@ -285,7 +285,7 @@ static int h4_open(void *transport_config){
return 0;
}
static int h4_close(void *transport_config){
static int h4_close(const void *transport_config){
// not implementd
return 0;
}