common.h 738 B

12345678910111213141516171819202122232425262728293031323334353637
  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 <assert.h>
  11. #include <stdbool.h>
  12. #include <stdio.h>
  13. #include <string.h>
  14. /* ESP APIs */
  15. #include "esp_log.h"
  16. #include "nvs_flash.h"
  17. #include "sdkconfig.h"
  18. /* FreeRTOS APIs */
  19. #include <freertos/FreeRTOS.h>
  20. #include <freertos/task.h>
  21. /* NimBLE stack APIs */
  22. #include "host/ble_hs.h"
  23. #include "host/ble_uuid.h"
  24. #include "host/util/util.h"
  25. #include "nimble/ble.h"
  26. #include "nimble/nimble_port.h"
  27. #include "nimble/nimble_port_freertos.h"
  28. /* Defines */
  29. #define TAG "NimBLE_GATT_Server"
  30. #define DEVICE_NAME "NimBLE_GATT"
  31. #endif // COMMON_H