Use FILENAME_H as include guard (MISRAC2012-Rule-21.1)

This commit is contained in:
Matthias Ringwald 2019-05-11 19:08:52 +02:00
parent 0269fd0f5f
commit 80e33422a9
156 changed files with 413 additions and 413 deletions

View File

@ -42,8 +42,8 @@
*
*/
#ifndef __BTSTACK_CHIPSET_ATWILC3000_H
#define __BTSTACK_CHIPSET_ATWILC3000_H
#ifndef BTSTACK_CHIPSET_ATWILC3000_H
#define BTSTACK_CHIPSET_ATWILC3000_H
#if defined __cplusplus
extern "C" {
@ -72,4 +72,4 @@ void btstack_chipset_atwilc3000_download_firmware(const btstack_uart_block_t * u
}
#endif
#endif // __BTSTACK_CHIPSET_ATWILC3000_H
#endif // BTSTACK_CHIPSET_ATWILC3000_H

View File

@ -14,8 +14,8 @@ header = '''
* BASENAME.h converted from BASENAME.bin
*/
#ifndef __BASENAME_H
#define __BASENAME_H
#ifndef BASENAME_H
#define BASENAME_H
#include <stdint.h>

View File

@ -40,8 +40,8 @@
* Adapter to use Broadcom-based chipsets with BTstack
*/
#ifndef __BTSTACK_CHIPSET_BCM_H
#define __BTSTACK_CHIPSET_BCM_H
#ifndef BTSTACK_CHIPSET_BCM_H
#define BTSTACK_CHIPSET_BCM_H
#if defined __cplusplus
extern "C" {
@ -83,4 +83,4 @@ void btstack_chipset_bcm_enable_init_script(int enabled);
}
#endif
#endif // __BTSTACK_CHIPSET_BCM_H
#endif // BTSTACK_CHIPSET_BCM_H

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __ANT_CMDS_H
#define __ANT_CMDS_H
#ifndef ANT_CMDS_H
#define ANT_CMDS_H
#include <stdint.h>
#include "hci_cmd.h"
@ -180,4 +180,4 @@ const ant_cmd_t ant_request_message;
}
#endif
#endif // __ANT_CMDS_H
#endif // ANT_CMDS_H

View File

@ -40,8 +40,8 @@
* Adapter to use cc256x-based chipsets with BTstack
*/
#ifndef __BTSTACK_CHIPSET_CC256X_H
#define __BTSTACK_CHIPSET_CC256X_H
#ifndef BTSTACK_CHIPSET_CC256X_H
#define BTSTACK_CHIPSET_CC256X_H
#if defined __cplusplus
extern "C" {
@ -80,4 +80,4 @@ void btstack_chipset_cc256x_set_init_script(uint8_t * data, uint32_t size);
}
#endif
#endif // __BTSTACK_CHIPSET_CC256X_H
#endif // BTSTACK_CHIPSET_CC256X_H

View File

@ -41,8 +41,8 @@
* Adapter to use CSR-based chipsets with BTstack
*/
#ifndef __BTSTACK_CHIPSET_CSR_H
#define __BTSTACK_CHIPSET_CSR_H
#ifndef BTSTACK_CHIPSET_CSR_H
#define BTSTACK_CHIPSET_CSR_H
#if defined __cplusplus
extern "C" {
@ -67,4 +67,4 @@ const btstack_chipset_t * btstack_chipset_csr_instance(void);
}
#endif
#endif // __BTSTACK_CHIPSET_CSR_H
#endif // BTSTACK_CHIPSET_CSR_H

View File

@ -42,8 +42,8 @@
*
*/
#ifndef __BTSTACK_CHIPSET_DA14581_H
#define __BTSTACK_CHIPSET_DA14581_H
#ifndef BTSTACK_CHIPSET_DA14581_H
#define BTSTACK_CHIPSET_DA14581_H
#if defined __cplusplus
extern "C" {
@ -68,4 +68,4 @@ void btstack_chipset_da14581_download_firmware(const btstack_uart_block_t * uart
}
#endif
#endif // __BTSTACK_CHIPSET_DA14581_H
#endif // BTSTACK_CHIPSET_DA14581_H

View File

@ -18,8 +18,8 @@ header = '''
* BASENAME.h converted from BASENAME.hex
*/
#ifndef __BASENAME_H
#define __BASENAME_H
#ifndef BASENAME_H
#define BASENAME_H
#include <stdint.h>

View File

@ -3,8 +3,8 @@
* hci_581_active_uart.h converted from hci_581_active_uart.hex
*/
#ifndef __hci_581_active_uart_H
#define __hci_581_active_uart_H
#ifndef HCI_581_ACTIVE_UART_H
#define HCI_581_ACTIVE_UART_H
#include <stdint.h>

View File

@ -43,8 +43,8 @@
* Allows to set public BD ADDR
*/
#ifndef __BTSTACK_CHIPSET_EM9301_H
#define __BTSTACK_CHIPSET_EM9301_H
#ifndef BTSTACK_CHIPSET_EM9301_H
#define BTSTACK_CHIPSET_EM9301_H
#if defined __cplusplus
extern "C" {
@ -68,4 +68,4 @@ extern const hci_cmd_t hci_vendor_em_set_sleep_options;
}
#endif
#endif // __BTSTACK_CHIPSET_EM9301_H
#endif // BTSTACK_CHIPSET_EM9301_H

View File

@ -14,8 +14,8 @@ header = '''/**
* BASENAME.h converted from BASENAME.emp
*/
#ifndef __BASENAME_H
#define __BASENAME_H
#ifndef BASENAME_H
#define BASENAME_H
#include <stdint.h>
extern const uint8_t container_blob_data[];

View File

@ -42,8 +42,8 @@
*
*/
#ifndef __BTSTACK_CHIPSET_INTEL_FIRMWARE_H
#define __BTSTACK_CHIPSET_INTEL_FIRMWARE_H
#ifndef BTSTACK_CHIPSET_INTEL_FIRMWARE_H
#define BTSTACK_CHIPSET_INTEL_FIRMWARE_H
#include "hci_transport.h"

View File

@ -43,8 +43,8 @@
* Allows to set public BD ADDR
*/
#ifndef __BTSTACK_CHIPSET_STLC2550D_H
#define __BTSTACK_CHIPSET_STLC2550D_H
#ifndef BTSTACK_CHIPSET_STLC2550D_H
#define BTSTACK_CHIPSET_STLC2550D_H
#if defined __cplusplus
extern "C" {
@ -58,4 +58,4 @@ const btstack_chipset_t * btstack_chipset_stlc2500d_instance(void);
}
#endif
#endif // __BTSTACK_CHIPSET_STLC2550D_H
#endif // BTSTACK_CHIPSET_STLC2550D_H

View File

@ -45,8 +45,8 @@
* - Set baud rate
*/
#ifndef __BTSTACK_CHIPSET_TC3566X_H
#define __BTSTACK_CHIPSET_TC3566X_H
#ifndef BTSTACK_CHIPSET_TC3566X_H
#define BTSTACK_CHIPSET_TC3566X_H
#if defined __cplusplus
extern "C" {
@ -60,4 +60,4 @@ const btstack_chipset_t * btstack_chipset_tc3566x_instance(void);
}
#endif
#endif // __BTSTACK_CHIPSET_TC3566X_H
#endif // BTSTACK_CHIPSET_TC3566X_H

View File

@ -41,8 +41,8 @@
* Adapter to use Zephyr-based Bluetooth Controllers with BTstack
*/
#ifndef __BTSTACK_CHIPSET_ZEPHYR_H
#define __BTSTACK_CHIPSET_ZEPHYR_H
#ifndef BTSTACK_CHIPSET_ZEPHYR_H
#define BTSTACK_CHIPSET_ZEPHYR_H
#if defined __cplusplus
extern "C" {
@ -61,4 +61,4 @@ const btstack_chipset_t * btstack_chipset_zephyr_instance(void);
}
#endif
#endif // __BTSTACK_CHIPSET_ZEPHYR_H
#endif // BTSTACK_CHIPSET_ZEPHYR_H

View File

@ -40,8 +40,8 @@
*/
#ifndef __SCO_DEMO_UTIL_H
#define __SCO_DEMO_UTIL_H
#ifndef SCO_DEMO_UTIL_H
#define SCO_DEMO_UTIL_H
#include "hci.h"

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __BTSTACK_DEVICE_NAME_DB_COCOA_H
#define __BTSTACK_DEVICE_NAME_DB_COCOA_H
#ifndef BTSTACK_DEVICE_NAME_DB_COCOA_H
#define BTSTACK_DEVICE_NAME_DB_COCOA_H
#include "btstack_device_name_db.h"
@ -54,4 +54,4 @@ const btstack_device_name_db_t * btstack_device_name_db_corefoundation_instance(
}
#endif
#endif // __BTSTACK_DEVICE_NAME_DB_COCOA_H
#endif // BTSTACK_DEVICE_NAME_DB_COCOA_H

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __BTSTACK_LINK_KEY_DB_FS_H
#define __BTSTACK_LINK_KEY_DB_FS_H
#ifndef BTSTACK_LINK_KEY_DB_FS_H
#define BTSTACK_LINK_KEY_DB_FS_H
#include "classic/btstack_link_key_db.h"
@ -55,4 +55,4 @@ const btstack_link_key_db_t * btstack_link_key_db_corefoundation_instance(void);
}
#endif
#endif // __BTSTACK_LINK_KEY_DB_FS_H
#endif // BTSTACK_LINK_KEY_DB_FS_H

View File

@ -40,8 +40,8 @@
* Functionality special to the CoreFoundation run loop
*/
#ifndef __btstack_run_loop_corefoundation_H
#define __btstack_run_loop_corefoundation_H
#ifndef btstack_run_loop_corefoundation_H
#define btstack_run_loop_corefoundation_H
#include "btstack_run_loop.h"
@ -60,4 +60,4 @@ const btstack_run_loop_t * btstack_run_loop_corefoundation_get_instance(void);
}
#endif
#endif // __btstack_run_loop_corefoundation_H
#endif // btstack_run_loop_corefoundation_H

View File

@ -44,8 +44,8 @@
*
*/
#ifndef __BTSTACK_CLIENT_H
#define __BTSTACK_CLIENT_H
#ifndef BTSTACK_CLIENT_H
#define BTSTACK_CLIENT_H
#include "bluetooth.h"
#include "btstack_config.h"
@ -99,4 +99,4 @@ void bt_send_rfcomm(uint16_t rfcom_cid, uint8_t *data, uint16_t len);
}
#endif
#endif // __BTSTACK_H
#endif // BTSTACK_H

View File

@ -39,8 +39,8 @@
* interface to provide link key and remote name storage
*/
#ifndef __BTSTACK_DEVICE_NAME_DB_H
#define __BTSTACK_DEVICE_NAME_DB_H
#ifndef BTSTACK_DEVICE_NAME_DB_H
#define BTSTACK_DEVICE_NAME_DB_H
#include "btstack_util.h"
#include "gap.h"
@ -70,4 +70,4 @@ typedef struct {
}
#endif
#endif // __BTSTACK_DEVICE_NAME_DB_H
#endif // BTSTACK_DEVICE_NAME_DB_H

View File

@ -43,8 +43,8 @@
*
*/
#ifndef __BTSTACK_SERVER_H
#define __BTSTACK_SERVER_H
#ifndef BTSTACK_SERVER_H
#define BTSTACK_SERVER_H
/**
* @brief Start BTstack Server either with TCP or Unix Domain Socket

View File

@ -39,8 +39,8 @@
* daemon_cmds.h
*/
#ifndef __DAEMON_CMDS_H
#define __DAEMON_CMDS_H
#ifndef DAEMON_CMDS_H
#define DAEMON_CMDS_H
#include <stdint.h>
@ -131,4 +131,4 @@ extern const hci_cmd_t sm_passkey_input_cmd;
}
#endif
#endif // __DAEMON_CMDS_H
#endif // DAEMON_CMDS_H

View File

@ -35,8 +35,8 @@
*/
#ifndef __RFCOMM_SERVICE_DB_COCOA_H
#define __RFCOMM_SERVICE_DB_COCOA_H
#ifndef RFCOMM_SERVICE_DB_COCOA_H
#define RFCOMM_SERVICE_DB_COCOA_H
#include <stdint.h>

View File

@ -42,8 +42,8 @@
* Created by Matthias Ringwald on 6/6/09.
*/
#ifndef __SOCKET_CONNECTION_H
#define __SOCKET_CONNECTION_H
#ifndef SOCKET_CONNECTION_H
#define SOCKET_CONNECTION_H
#include "btstack_run_loop.h"
@ -133,4 +133,4 @@ int socket_connection_has_parked_connections(void);
}
#endif
#endif // __SOCKET_CONNECTION_H
#endif // SOCKET_CONNECTION_H

View File

@ -40,8 +40,8 @@
* Functionality special to the embedded run loop
*/
#ifndef __BTSTACK_RUN_LOOP_EMBEDDED_H
#define __BTSTACK_RUN_LOOP_EMBEDDED_H
#ifndef BTSTACK_RUN_LOOP_EMBEDDED_H
#define BTSTACK_RUN_LOOP_EMBEDDED_H
#include "btstack_config.h"
#include "btstack_linked_list.h"
@ -88,4 +88,4 @@ void btstack_run_loop_embedded_execute_once(void);
}
#endif
#endif // __BTSTACK_RUN_LOOP_EMBEDDED_H
#endif // BTSTACK_RUN_LOOP_EMBEDDED_H

View File

@ -36,8 +36,8 @@
* using hal_flash_bank storage
*/
#ifndef __BTSTACK_TLV_FLASH_BANK_H
#define __BTSTACK_TLV_FLASH_BANK_H
#ifndef BTSTACK_TLV_FLASH_BANK_H
#define BTSTACK_TLV_FLASH_BANK_H
#include <stdint.h>
#include "btstack_tlv.h"
@ -65,4 +65,4 @@ const btstack_tlv_t * btstack_tlv_flash_bank_init_instance(btstack_tlv_flash_ban
#if defined __cplusplus
}
#endif
#endif // __BTSTACK_TLV_FLASH_BANK_H
#endif // BTSTACK_TLV_FLASH_BANK_H

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __HAL_AUDIO_H
#define __HAL_AUDIO_H
#ifndef HAL_AUDIO_H
#define HAL_AUDIO_H
#include <stdint.h>

View File

@ -42,8 +42,8 @@
* and then unblocked while entering low power mode atomically
*/
#ifndef __HAL_CPU_H
#define __HAL_CPU_H
#ifndef HAL_CPU_H
#define HAL_CPU_H
#if defined __cplusplus
extern "C" {
@ -56,4 +56,4 @@ void hal_cpu_enable_irqs_and_sleep(void);
#if defined __cplusplus
}
#endif
#endif // __HAL_CPU_H
#endif // HAL_CPU_H

View File

@ -41,8 +41,8 @@
* Hardware Abstraction Layer for EM9304 connected via SPI with additional RDY Interrupt line
*
*/
#ifndef __HAL_EM9304_SPI_H
#define __HAL_EM9304_SPI_H
#ifndef HAL_EM9304_SPI_H
#define HAL_EM9304_SPI_H
#include <stdint.h>
@ -128,4 +128,4 @@ void hal_em9304_spi_receive(uint8_t * rx_data, uint16_t len);
}
#endif
#endif // __HAL_EM9304_SPI_H
#endif // HAL_EM9304_SPI_H

View File

@ -36,8 +36,8 @@
* after being erased
*/
#ifndef __HAL_FLASH_BANK_H
#define __HAL_FLASH_BANK_H
#ifndef HAL_FLASH_BANK_H
#define HAL_FLASH_BANK_H
#include <stdint.h>
@ -89,4 +89,4 @@ typedef struct {
#if defined __cplusplus
}
#endif
#endif // __HAL_FLASH_BANK_H
#endif // HAL_FLASH_BANK_H

View File

@ -36,8 +36,8 @@
* after being erased implemented with memory
*/
#ifndef __HAL_FLASH_BANK_MEMORY_H
#define __HAL_FLASH_BANK_MEMORY_H
#ifndef HAL_FLASH_BANK_MEMORY_H
#define HAL_FLASH_BANK_MEMORY_H
#include <stdint.h>
#include "hal_flash_bank.h"
@ -65,4 +65,4 @@ const hal_flash_bank_t * hal_flash_bank_memory_init_instance(hal_flash_bank_memo
#if defined __cplusplus
}
#endif
#endif // __HAL_FLASH_BANK_MEMORY_H
#endif // HAL_FLASH_BANK_MEMORY_H

View File

@ -35,8 +35,8 @@
* Support for hello world embedded tests
*/
#ifndef __HAL_LED_H
#define __HAL_LED_H
#ifndef HAL_LED_H
#define HAL_LED_H
#if defined __cplusplus
extern "C" {
@ -47,4 +47,4 @@ void hal_led_toggle(void);
#if defined __cplusplus
}
#endif
#endif // __HAL_LED_H
#endif // HAL_LED_H

View File

@ -41,8 +41,8 @@
* Support for console input for embedded targets
*/
#ifndef __HAL_STDIN_H
#define __HAL_STDIN_H
#ifndef HAL_STDIN_H
#define HAL_STDIN_H
#if defined __cplusplus
extern "C" {
@ -57,4 +57,4 @@ void hal_stdin_setup(void (*handler)(char c));
#if defined __cplusplus
}
#endif
#endif // __HAL_STDIN_H
#endif // HAL_STDIN_H

View File

@ -42,8 +42,8 @@
*
*/
#ifndef __HAL_TICK_H
#define __HAL_TICK_H
#ifndef HAL_TICK_H
#define HAL_TICK_H
#include <stdint.h>
@ -58,4 +58,4 @@ int hal_tick_get_tick_period_in_ms(void);
#if defined __cplusplus
}
#endif
#endif // __HAL_TICK_H
#endif // HAL_TICK_H

View File

@ -42,8 +42,8 @@
*
*/
#ifndef __HAL_TIME_MS_H
#define __HAL_TIME_MS_H
#ifndef HAL_TIME_MS_H
#define HAL_TIME_MS_H
#include <stdint.h>
@ -56,4 +56,4 @@ uint32_t hal_time_ms(void);
#if defined __cplusplus
}
#endif
#endif // __HAL_TIME_MS_H
#endif // HAL_TIME_MS_H

View File

@ -47,8 +47,8 @@
*
*/
#ifndef __HAL_UART_DMA_H
#define __HAL_UART_DMA_H
#ifndef HAL_UART_DMA_H
#define HAL_UART_DMA_H
#include <stdint.h>
@ -133,4 +133,4 @@ void hal_uart_dma_set_sleep_mode(btstack_uart_sleep_mode_t sleep_mode);
#if defined __cplusplus
}
#endif
#endif // __HAL_UART_DMA_H
#endif // HAL_UART_DMA_H

View File

@ -41,8 +41,8 @@
* Functions relevant for BTstack WICED port
*/
#ifndef __BTSTACK_RUN_LOOP_FREERTOS_H
#define __BTSTACK_RUN_LOOP_FREERTOS_H
#ifndef BTSTACK_RUN_LOOP_FREERTOS_H
#define BTSTACK_RUN_LOOP_FREERTOS_H
#include "btstack_config.h"
#include "btstack_run_loop.h"
@ -84,4 +84,4 @@ void btstack_run_loop_freertos_trigger_from_isr(void);
}
#endif
#endif // __btstack_run_loop_WICED_H
#endif // btstack_run_loop_WICED_H

View File

@ -41,8 +41,8 @@
// mspgcc LTS doesn't support 20-bit pointer yet -> put const data into .fartext
#ifndef __HAL_COMPAT_H
#define __HAL_COMPAT_H
#ifndef HAL_COMPAT_H
#define HAL_COMPAT_H
#include <stdint.h>
@ -56,4 +56,4 @@ void FlashReadBlock(uint8_t *buffer, uint32_t addr, uint16_t len);
#endif // __HAL_COMPAT_H
#endif // HAL_COMPAT_H

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __BTSTACK_LINK_KEY_DB_FS_H
#define __BTSTACK_LINK_KEY_DB_FS_H
#ifndef BTSTACK_LINK_KEY_DB_FS_H
#define BTSTACK_LINK_KEY_DB_FS_H
#include "classic/btstack_link_key_db.h"
@ -55,4 +55,4 @@ const btstack_link_key_db_t * btstack_link_key_db_fs_instance(void);
}
#endif
#endif // __BTSTACK_LINK_KEY_DB_FS_H
#endif // BTSTACK_LINK_KEY_DB_FS_H

View File

@ -35,7 +35,7 @@
*
*/
#define __BTSTACK_FILE__ "btstack_network.c"
#define __BTSTACK_FILE__ "btstack_network_posix.c"
/*
* btstack_network.c

View File

@ -40,8 +40,8 @@
* Functionality special to the POSIX run loop
*/
#ifndef __btstack_run_loop_POSIX_H
#define __btstack_run_loop_POSIX_H
#ifndef btstack_run_loop_POSIX_H
#define btstack_run_loop_POSIX_H
#include "btstack_run_loop.h"
@ -60,4 +60,4 @@ const btstack_run_loop_t * btstack_run_loop_posix_get_instance(void);
}
#endif
#endif // __btstack_run_loop_POSIX_H
#endif // btstack_run_loop_POSIX_H

View File

@ -36,8 +36,8 @@
* using in-memory storage (RAM & malloc) and append-only log files on disc
*/
#ifndef __BTSTACK_TLV_POSIX_H
#define __BTSTACK_TLV_POSIX_H
#ifndef BTSTACK_TLV_POSIX_H
#define BTSTACK_TLV_POSIX_H
#include <stdint.h>
#include <stdio.h>
@ -64,4 +64,4 @@ const btstack_tlv_t * btstack_tlv_posix_init_instance(btstack_tlv_posix_t * cont
#if defined __cplusplus
}
#endif
#endif // __BTSTACK_TLV_POSIX_H
#endif // BTSTACK_TLV_POSIX_H

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __LE_DEVICE_DB_FS_H
#define __LE_DEVICE_DB_FS_H
#ifndef LE_DEVICE_DB_FS_H
#define LE_DEVICE_DB_FS_H
#include "ble/le_device_db.h"
@ -55,4 +55,4 @@ const le_device_db_t * le_device_db_fs_instance(void);
}
#endif
#endif // __LE_DEVICE_DB_FS_H
#endif // LE_DEVICE_DB_FS_H

View File

@ -41,8 +41,8 @@
* Persistent Link Key implemenetation for WICED using DCT mechanism
*/
#ifndef __BTSTACK_LINK_KEY_WICED_DCT_H
#define __BTSTACK_LINK_KEY_WICED_DCT_H
#ifndef BTSTACK_LINK_KEY_WICED_DCT_H
#define BTSTACK_LINK_KEY_WICED_DCT_H
#include "btstack_config.h"
#include "classic/btstack_link_key_db.h"
@ -72,4 +72,4 @@ int btstack_link_key_db_wiced_dct_get_storage_size(void);
}
#endif
#endif // __BTSTACK_LINK_KEY_DB_MEMORY_H
#endif // BTSTACK_LINK_KEY_DB_MEMORY_H

View File

@ -41,8 +41,8 @@
* Functions relevant for BTstack WICED port
*/
#ifndef __btstack_run_loop_WICED_H
#define __btstack_run_loop_WICED_H
#ifndef btstack_run_loop_WICED_H
#define btstack_run_loop_WICED_H
#include "btstack_config.h"
#include "btstack_run_loop.h"
@ -68,4 +68,4 @@ void btstack_run_loop_wiced_execute_code_on_main_thread(wiced_result_t (*fn)(voi
}
#endif
#endif // __btstack_run_loop_WICED_H
#endif // btstack_run_loop_WICED_H

View File

@ -41,7 +41,7 @@
* HCI Transport API implementation for basic H4 protocol for use with btstack_run_loop_wiced.c
*/
#define __BTSTACK_FILE__ "hci_transport_h4_wiced.c"
#define __BTSTACK_FILE__ "btstack_uart_block_wiced.c"
#include "btstack_config.h"
#include "btstack_run_loop_wiced.h"

View File

@ -41,8 +41,8 @@
* Persistent Link Key implemenetation for WICED using DCT mechanism
*/
#ifndef __LE_DEVICE_DB_WICED_DCT_H
#define __LE_DEVICE_DB_WICED_DCT_H
#ifndef LE_DEVICE_DB_WICED_DCT_H
#define LE_DEVICE_DB_WICED_DCT_H
#if defined __cplusplus
extern "C" {
@ -73,4 +73,4 @@ void le_device_db_wiced_dct_delete_all(void);
}
#endif
#endif // __LE_DEVICE_DB_WICED_DCT_H
#endif // LE_DEVICE_DB_WICED_DCT_H

View File

@ -40,8 +40,8 @@
* Functionality special to the windows run loop
*/
#ifndef __btstack_run_loop_WINDOWS_H
#define __btstack_run_loop_WINDOWS_H
#ifndef btstack_run_loop_WINDOWS_H
#define btstack_run_loop_WINDOWS_H
#include "btstack_run_loop.h"
@ -60,4 +60,4 @@ const btstack_run_loop_t * btstack_run_loop_windows_get_instance(void);
}
#endif
#endif // __btstack_run_loop_WINDOWS_H
#endif // btstack_run_loop_WINDOWS_H

View File

@ -41,8 +41,8 @@
//
// *****************************************************************************
#ifndef __AD_PARSER_H
#define __AD_PARSER_H
#ifndef AD_PARSER_H
#define AD_PARSER_H
#include "btstack_config.h"
#include <stdint.h>
@ -78,4 +78,4 @@ int ad_data_contains_uuid128(uint8_t ad_len, const uint8_t * ad_data, const uint
#if defined __cplusplus
}
#endif
#endif // __AD_PARSER_H
#endif // AD_PARSER_H

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __ANCS_CLIENT_H
#define __ANCS_CLIENT_H
#ifndef ANCS_CLIENT_H
#define ANCS_CLIENT_H
#if defined __cplusplus
extern "C" {

View File

@ -36,8 +36,8 @@
*/
#ifndef __ATT_H
#define __ATT_H
#ifndef ATT_H
#define ATT_H
#include <stdint.h>
#include "bluetooth.h"
@ -268,4 +268,4 @@ int att_is_persistent_ccc(uint16_t handle);
}
#endif
#endif // __ATT_H
#endif // ATT_H

View File

@ -40,8 +40,8 @@
* Dispatcher for independent implementation of ATT client and server
*/
#ifndef __ATT_DISPATCH_H
#define __ATT_DISPATCH_H
#ifndef ATT_DISPATCH_H
#define ATT_DISPATCH_H
#include "btstack_util.h"
@ -107,4 +107,4 @@ void att_dispatch_client_mtu_exchanged(hci_con_handle_t con_handle, uint16_t new
}
#endif
#endif // __ATT_DISPATCH_H
#endif // ATT_DISPATCH_H

View File

@ -34,8 +34,8 @@
* contact@bluekitchen-gmbh.com
*
*/
#ifndef __ATT_SERVER_H
#define __ATT_SERVER_H
#ifndef ATT_SERVER_H
#define ATT_SERVER_H
#include <stdint.h>
#include "ble/att_db.h"
@ -159,4 +159,4 @@ void att_server_request_can_send_now_event(hci_con_handle_t con_handle);
}
#endif
#endif // __ATT_SERVER_H
#endif // ATT_SERVER_H

View File

@ -34,8 +34,8 @@
* contact@bluekitchen-gmbh.com
*
*/
#ifndef __BATTERY_SERVICE_SERVER_H
#define __BATTERY_SERVICE_SERVER_H
#ifndef BATTERY_SERVICE_SERVER_H
#define BATTERY_SERVICE_SERVER_H
#include <stdint.h>

View File

@ -34,8 +34,8 @@
* contact@bluekitchen-gmbh.com
*
*/
#ifndef __CYCLING_POWER_SERVICE_SERVER_H
#define __CYCLING_POWER_SERVICE_SERVER_H
#ifndef CYCLING_POWER_SERVICE_SERVER_H
#define CYCLING_POWER_SERVICE_SERVER_H
#include <stdint.h>

View File

@ -34,8 +34,8 @@
* contact@bluekitchen-gmbh.com
*
*/
#ifndef __CYCLING_SPEED_AND_CADENCE_SERVICE_SERVER_H
#define __CYCLING_SPEED_AND_CADENCE_SERVICE_SERVER_H
#ifndef CYCLING_SPEED_AND_CADENCE_SERVICE_SERVER_H
#define CYCLING_SPEED_AND_CADENCE_SERVICE_SERVER_H
#include <stdint.h>

View File

@ -34,8 +34,8 @@
* contact@bluekitchen-gmbh.com
*
*/
#ifndef __DEVICE_INFORMATION_SERVICE_SERVER_H
#define __DEVICE_INFORMATION_SERVICE_SERVER_H
#ifndef DEVICE_INFORMATION_SERVICE_SERVER_H
#define DEVICE_INFORMATION_SERVICE_SERVER_H
#include <stdint.h>

View File

@ -34,8 +34,8 @@
* contact@bluekitchen-gmbh.com
*
*/
#ifndef __HEART_RATE_SERVICE_SERVER_H
#define __HEART_RATE_SERVICE_SERVER_H
#ifndef HEART_RATE_SERVICE_SERVER_H
#define HEART_RATE_SERVICE_SERVER_H
#include <stdint.h>

View File

@ -34,8 +34,8 @@
* contact@bluekitchen-gmbh.com
*
*/
#ifndef __HIDS_DEVICE_H
#define __HIDS_DEVICE_H
#ifndef HIDS_DEVICE_H
#define HIDS_DEVICE_H
#include <stdint.h>
#include "btstack_defines.h"

View File

@ -34,8 +34,8 @@
* contact@bluekitchen-gmbh.com
*
*/
#ifndef __NORDIC_SPP_H
#define __NORDIC_SPP_H
#ifndef NORDIC_SPP_H
#define NORDIC_SPP_H
#include <stdint.h>
#include "bluetooth.h"

View File

@ -34,8 +34,8 @@
* contact@bluekitchen-gmbh.com
*
*/
#ifndef __UBLOX_SPP_H
#define __UBLOX_SPP_H
#ifndef UBLOX_SPP_H
#define UBLOX_SPP_H
#include <stdint.h>
#include "bluetooth.h"

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __LE_DEVICE_DB_H
#define __LE_DEVICE_DB_H
#ifndef LE_DEVICE_DB_H
#define LE_DEVICE_DB_H
#include "btstack_util.h"
#include "btstack_config.h"
@ -204,4 +204,4 @@ void le_device_db_dump(void);
}
#endif
#endif // __LE_DEVICE_DB_H
#endif // LE_DEVICE_DB_H

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __LE_DEVICE_DB_TLV_H
#define __LE_DEVICE_DB_TLV_H
#ifndef LE_DEVICE_DB_TLV_H
#define LE_DEVICE_DB_TLV_H
#include "btstack_util.h"
#include "btstack_tlv.h"
@ -61,4 +61,4 @@ void le_device_db_tlv_configure(const btstack_tlv_t * btstack_tlv_impl, void * b
}
#endif
#endif // __LE_DEVICE_DB_TLV_H
#endif // LE_DEVICE_DB_TLV_H

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __SM_H
#define __SM_H
#ifndef SM_H
#define SM_H
#if defined __cplusplus
extern "C" {
@ -263,4 +263,4 @@ void sm_test_set_pairing_failure(int reason);
}
#endif
#endif // __SM_H
#endif // SM_H

View File

@ -41,8 +41,8 @@
* Numbers defined or derived from the official Bluetooth specification
*/
#ifndef __BLUETOOTH_H
#define __BLUETOOTH_H
#ifndef BLUETOOTH_H
#define BLUETOOTH_H
#include <stdint.h>

View File

@ -3,8 +3,8 @@
* bluetooth_company_id.h generated from Bluetooth SIG website for BTstack
*/
#ifndef __BLUETOOTH_COMPANY_ID_H
#define __BLUETOOTH_COMPANY_ID_H
#ifndef BLUETOOTH_COMPANY_ID_H
#define BLUETOOTH_COMPANY_ID_H
/**
* Assigned numbers from https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers

View File

@ -3,8 +3,8 @@
* https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile
*/
#ifndef __BLUETOOTH_DATA_TYPES_H
#define __BLUETOOTH_DATA_TYPES_H
#ifndef BLUETOOTH_DATA_TYPES_H
#define BLUETOOTH_DATA_TYPES_H
#define BLUETOOTH_DATA_TYPE_FLAGS 0x01 // Flags
#define BLUETOOTH_DATA_TYPE_INCOMPLETE_LIST_OF_16_BIT_SERVICE_CLASS_UUIDS 0x02 // Incomplete List of 16-bit Service Class UUIDs

View File

@ -3,8 +3,8 @@
* bluetooth_gatt.h generated from Bluetooth SIG website for BTstack on 2018-03-09 12:55:06.388357
*/
#ifndef __BLUETOOTH_GATT_H
#define __BLUETOOTH_GATT_H
#ifndef BLUETOOTH_GATT_H
#define BLUETOOTH_GATT_H
/**
* Assigned numbers from https://www.bluetooth.com/specifications/gatt/declarations

View File

@ -3,8 +3,8 @@
* https://www.bluetooth.com/specifications/assigned-numbers/service-discovery
*/
#ifndef __BLUETOOTH_SDP_H
#define __BLUETOOTH_SDP_H
#ifndef BLUETOOTH_SDP_H
#define BLUETOOTH_SDP_H
/**
* Protocol Identifiers

View File

@ -41,8 +41,8 @@
*/
#ifndef __BTSTACK_H
#define __BTSTACK_H
#ifndef BTSTACK_H
#define BTSTACK_H
#include "btstack_config.h"
@ -124,5 +124,5 @@
#include "classic/spp_server.h"
#endif
#endif // __BTSTACK_H
#endif // BTSTACK_H

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __BTSTACK_AUDIO_H
#define __BTSTACK_AUDIO_H
#ifndef BTSTACK_AUDIO_H
#define BTSTACK_AUDIO_H
#include <stdint.h>

View File

@ -39,8 +39,8 @@
* btstack_base64_decoder.h
*/
#ifndef __BTSTACK_BASE_64_DECODER_H
#define __BTSTACK_BASE_64_DECODER_H
#ifndef BTSTACK_BASE_64_DECODER_H
#define BTSTACK_BASE_64_DECODER_H
#include <stdint.h>

View File

@ -42,8 +42,8 @@
* to set UART baud rate, Bluetooth Address, and similar.
*/
#ifndef __BTSTACK_CHIPSET_H
#define __BTSTACK_CHIPSET_H
#ifndef BTSTACK_CHIPSET_H
#define BTSTACK_CHIPSET_H
#include <stdint.h>
#include "btstack_util.h"
@ -98,4 +98,4 @@ typedef struct {
}
#endif
#endif // __BTSTACK_CHIPSET_H
#endif // BTSTACK_CHIPSET_H

View File

@ -42,8 +42,8 @@
*
*/
#ifndef __BTSTACK_CONTROL_H
#define __BTSTACK_CONTROL_H
#ifndef BTSTACK_CONTROL_H
#define BTSTACK_CONTROL_H
#include <stdint.h>
#include "btstack_util.h"
@ -70,4 +70,4 @@ typedef struct {
}
#endif
#endif // __BTSTACK_CONTROL_H
#endif // BTSTACK_CONTROL_H

View File

@ -42,8 +42,8 @@
* using of MCU crypto peripherals or the Bluetooth controller
*/
#ifndef __BTSTACK_CTRYPTO_H
#define __BTSTACK_CTRYPTO_H
#ifndef BTSTACK_CTRYPTO_H
#define BTSTACK_CTRYPTO_H
#include "btstack_defines.h"
@ -274,4 +274,4 @@ void btstack_crypto_ccm_decrypt_block(btstack_crypto_ccm_t * request, uint16_t l
}
#endif
#endif /* __BTSTACK_CTRYPTO_H */
#endif /* BTSTACK_CTRYPTO_H */

View File

@ -41,8 +41,8 @@
* allow to funnel debug & error messages
*/
#ifndef __DEBUG_H
#define __DEBUG_H
#ifndef DEBUG_H
#define DEBUG_H
#include "btstack_config.h"
#include "btstack_defines.h"
@ -116,4 +116,4 @@ void log_info_hexdump(const void *data, int size);
*/
void log_debug_hexdump(const void *data, int size);
#endif // __DEBUG_H
#endif // DEBUG_H

View File

@ -40,8 +40,8 @@
*
* BTstack definitions, events, and error codes */
#ifndef __BTSTACK_DEFINES_H
#define __BTSTACK_DEFINES_H
#ifndef BTSTACK_DEFINES_H
#define BTSTACK_DEFINES_H
#include <stdint.h>
#include "btstack_linked_list.h"

View File

@ -41,8 +41,8 @@
* BTstack's Hardware Abstraction Layer for EM9304 connected via SPI with additional RDY Interrupt line
*/
#ifndef __BTSTACK_EM9304_SPI_H
#define __BTSTACK_EM9304_SPI_H
#ifndef BTSTACK_EM9304_SPI_H
#define BTSTACK_EM9304_SPI_H
#include <stdint.h>
@ -129,4 +129,4 @@ const btstack_em9304_spi_t * btstack_em9304_spi_embedded_instance(void);
}
#endif
#endif // __BTSTACK_EM9304_SPI_H
#endif // BTSTACK_EM9304_SPI_H

View File

@ -44,8 +44,8 @@
*
*/
#ifndef __BTSTACK_EVENT_H
#define __BTSTACK_EVENT_H
#ifndef BTSTACK_EVENT_H
#define BTSTACK_EVENT_H
#if defined __cplusplus
extern "C" {
@ -7170,4 +7170,4 @@ static inline uint16_t map_subevent_parsing_done_get_map_cid(const uint8_t * eve
}
#endif
#endif // __BTSTACK_EVENT_H
#endif // BTSTACK_EVENT_H

View File

@ -41,8 +41,8 @@
* Single-pass HID Report Parser: HID Report is directly parsed without preprocessing HID Descriptor to minimize memory
*/
#ifndef __BTSTACK_HID_PARSER_H
#define __BTSTACK_HID_PARSER_H
#ifndef BTSTACK_HID_PARSER_H
#define BTSTACK_HID_PARSER_H
#include <stdint.h>
@ -226,4 +226,4 @@ int btstack_hid_report_id_declared(uint16_t hid_descriptor_len, const uint8_t *
}
#endif
#endif // __BTSTACK_HID_PARSER_H
#endif // BTSTACK_HID_PARSER_H

View File

@ -39,8 +39,8 @@
* btstack_linked_list.h
*/
#ifndef __BTSTACK_LINKED_LIST_H
#define __BTSTACK_LINKED_LIST_H
#ifndef BTSTACK_LINKED_LIST_H
#define BTSTACK_LINKED_LIST_H
#if defined __cplusplus
extern "C" {
@ -100,4 +100,4 @@ void test_linked_list(void);
}
#endif
#endif // __BTSTACK_LINKED_LIST_H
#endif // BTSTACK_LINKED_LIST_H

View File

@ -44,8 +44,8 @@
*
*/
#ifndef __BTSTACK_MEMORY_H
#define __BTSTACK_MEMORY_H
#ifndef BTSTACK_MEMORY_H
#define BTSTACK_MEMORY_H
#if defined __cplusplus
extern "C" {
@ -149,5 +149,5 @@ void btstack_memory_sm_lookup_entry_free(sm_lookup_entry_t *sm_lookup_entry);
}
#endif
#endif // __BTSTACK_MEMORY_H
#endif // BTSTACK_MEMORY_H

View File

@ -46,8 +46,8 @@
* @Note minimal implementation, no error checking/handling
*/
#ifndef __btstack_memory_pool_H
#define __btstack_memory_pool_H
#ifndef btstack_memory_pool_H
#define btstack_memory_pool_H
#if defined __cplusplus
extern "C" {
@ -68,4 +68,4 @@ void btstack_memory_pool_free(btstack_memory_pool_t *pool, void * block);
}
#endif
#endif // __btstack_memory_pool_H
#endif // btstack_memory_pool_H

View File

@ -39,8 +39,8 @@
* Network interface abstraction
*/
#ifndef __BTSTACK_NETWORK_H
#define __BTSTACK_NETWORK_H
#ifndef BTSTACK_NETWORK_H
#define BTSTACK_NETWORK_H
#include <stdint.h>
#include "bluetooth.h"

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __BTSTACK_RESAMPLE_H
#define __BTSTACK_RESAMPLE_H
#ifndef BTSTACK_RESAMPLE_H
#define BTSTACK_RESAMPLE_H
#include <stdint.h>

View File

@ -39,8 +39,8 @@
* btstack_ring_buffer.h
*/
#ifndef __BTSTACK_RING_BUFFER_H
#define __BTSTACK_RING_BUFFER_H
#ifndef BTSTACK_RING_BUFFER_H
#define BTSTACK_RING_BUFFER_H
#if defined __cplusplus
extern "C" {
@ -107,4 +107,4 @@ void btstack_ring_buffer_read(btstack_ring_buffer_t * ring_buffer, uint8_t * buf
}
#endif
#endif // __BTSTACK_RING_BUFFER_H
#endif // BTSTACK_RING_BUFFER_H

View File

@ -41,8 +41,8 @@
* Created by Matthias Ringwald on 6/6/09.
*/
#ifndef __btstack_run_loop_H
#define __btstack_run_loop_H
#ifndef btstack_run_loop_H
#define btstack_run_loop_H
#include "btstack_config.h"
@ -225,4 +225,4 @@ void btstack_run_loop_execute(void);
}
#endif
#endif // __btstack_run_loop_H
#endif // btstack_run_loop_H

View File

@ -40,8 +40,8 @@
* SLIP encoder/decoder
*/
#ifndef __BTSTACK_SLIP_H
#define __BTSTACK_SLIP_H
#ifndef BTSTACK_SLIP_H
#define BTSTACK_SLIP_H
#include <stdint.h>

View File

@ -35,8 +35,8 @@
*
*/
#ifndef __BTSTACK_STDIN_H
#define __BTSTACK_STDIN_H
#ifndef BTSTACK_STDIN_H
#define BTSTACK_STDIN_H
#include "btstack_run_loop.h"

View File

@ -36,8 +36,8 @@
* used to store pairing/bonding data
*/
#ifndef __BTSTACK_TLV_H
#define __BTSTACK_TLV_H
#ifndef BTSTACK_TLV_H
#define BTSTACK_TLV_H
#include <stdint.h>
@ -94,4 +94,4 @@ void btstack_tlv_get_instance(const btstack_tlv_t ** tlv_impl, void ** tlv_conte
#if defined __cplusplus
}
#endif
#endif // __BTSTACK_TLV_H
#endif // BTSTACK_TLV_H

View File

@ -42,8 +42,8 @@
*
*/
#ifndef __BTSTACK_UART_BLOCK_H
#define __BTSTACK_UART_BLOCK_H
#ifndef BTSTACK_UART_BLOCK_H
#define BTSTACK_UART_BLOCK_H
#include <stdint.h>

View File

@ -43,8 +43,8 @@
* Created by Matthias Ringwald on 7/23/09.
*/
#ifndef __BTSTACK_UTIL_H
#define __BTSTACK_UTIL_H
#ifndef BTSTACK_UTIL_H
#define BTSTACK_UTIL_H
#if defined __cplusplus
@ -281,4 +281,4 @@ uint8_t btstack_crc8_calc(uint8_t *data, uint16_t len);
}
#endif
#endif // __BTSTACK_UTIL_H
#endif // BTSTACK_UTIL_H

View File

@ -43,8 +43,8 @@
* A2DP Sink is a device that accepts streamed media data.
*/
#ifndef __A2DP_SINK_H
#define __A2DP_SINK_H
#ifndef A2DP_SINK_H
#define A2DP_SINK_H
#include <stdint.h>
#include "classic/avdtp.h"
@ -130,4 +130,4 @@ void a2dp_sink_disconnect(uint16_t a2dp_cid);
}
#endif
#endif // __A2DP_SINK_H
#endif // A2DP_SINK_H

View File

@ -43,8 +43,8 @@
* A2DP Source is a device that streames media data.
*/
#ifndef __A2DP_SOURCE_H
#define __A2DP_SOURCE_H
#ifndef A2DP_SOURCE_H
#define A2DP_SOURCE_H
#include <stdint.h>
#include "classic/avdtp.h"
@ -169,4 +169,4 @@ int a2dp_source_stream_send_media_payload(uint16_t a2dp_cid, uint8_t local_sei
}
#endif
#endif // __A2DP_SOURCE_H
#endif // A2DP_SOURCE_H

View File

@ -47,8 +47,8 @@
* Media packets are unidirectional, they travel downstream from AVDTP Source to AVDTP Sink.
*/
#ifndef __AVDTP_H
#define __AVDTP_H
#ifndef AVDTP_H
#define AVDTP_H
#include <stdint.h>
#include "hci.h"
@ -592,4 +592,4 @@ uint8_t is_avdtp_remote_seid_registered(avdtp_stream_endpoint_t * stream_endpoin
}
#endif
#endif // __AVDTP_H
#endif // AVDTP_H

View File

@ -42,8 +42,8 @@
*
*/
#ifndef __AVDTP_ACP_H
#define __AVDTP_ACP_H
#ifndef AVDTP_ACP_H
#define AVDTP_ACP_H
#include <stdint.h>
#include "classic/avdtp.h"
@ -59,4 +59,4 @@ void avdtp_acceptor_stream_config_subsm_run(avdtp_connection_t * connection, avd
}
#endif
#endif // __AVDTP_ACP_H
#endif // AVDTP_ACP_H

View File

@ -42,8 +42,8 @@
*
*/
#ifndef __AVDTP_INT_H
#define __AVDTP_INT_H
#ifndef AVDTP_INT_H
#define AVDTP_INT_H
#include <stdint.h>
#include "classic/avdtp.h"
@ -59,4 +59,4 @@ void avdtp_initiator_stream_config_subsm_run(avdtp_connection_t * connection, av
}
#endif
#endif // __AVDTP_INT_H
#endif // AVDTP_INT_H

View File

@ -43,8 +43,8 @@
* AVDTP Sink is a device that accepts streamed media data.
*/
#ifndef __AVDTP_SINK_H
#define __AVDTP_SINK_H
#ifndef AVDTP_SINK_H
#define AVDTP_SINK_H
#include <stdint.h>
#include "hci.h"
@ -180,4 +180,4 @@ uint8_t avdtp_sink_delay_report(uint16_t avdtp_cid, uint8_t local_seid, uint16_t
}
#endif
#endif // __AVDTP_SINK_H
#endif // AVDTP_SINK_H

View File

@ -43,8 +43,8 @@
* AVDTP Source is a device that streames media data.
*/
#ifndef __AVDTP_SOURCE_H
#define __AVDTP_SOURCE_H
#ifndef AVDTP_SOURCE_H
#define AVDTP_SOURCE_H
#include <stdint.h>
#include "classic/avdtp.h"
@ -159,4 +159,4 @@ avdtp_stream_endpoint_t * avdtp_source_create_stream_endpoint(avdtp_sep_type_t s
}
#endif
#endif // __AVDTP_SOURCE_H
#endif // AVDTP_SOURCE_H

Some files were not shown because too many files have changed in this diff Show More