common.h 717 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Unlicense OR CC0-1.0
  5. */
  6. #ifndef COMMON_H
  7. #define COMMON_H
  8. /* Includes */
  9. /* STD APIs */
  10. #include <stdbool.h>
  11. #include <stdio.h>
  12. #include <string.h>
  13. /* ESP APIs */
  14. #include "esp_log.h"
  15. #include "nvs_flash.h"
  16. #include "sdkconfig.h"
  17. /* FreeRTOS APIs */
  18. #include <freertos/FreeRTOS.h>
  19. #include <freertos/task.h>
  20. /* NimBLE stack APIs */
  21. #include "host/ble_hs.h"
  22. #include "host/ble_uuid.h"
  23. #include "host/util/util.h"
  24. #include "nimble/ble.h"
  25. #include "nimble/nimble_port.h"
  26. #include "nimble/nimble_port_freertos.h"
  27. /* Defines */
  28. #define TAG "NimBLE_Connection"
  29. #define DEVICE_NAME "NimBLE_CONN"
  30. #endif // COMMON_H