heart_rate.h 418 B

1234567891011121314151617181920
  1. /*
  2. * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Unlicense OR CC0-1.0
  5. */
  6. #ifndef HEART_RATE_H
  7. #define HEART_RATE_H
  8. /* Includes */
  9. /* ESP APIs */
  10. #include "esp_random.h"
  11. /* Defines */
  12. #define HEART_RATE_TASK_PERIOD (1000 / portTICK_PERIOD_MS)
  13. /* Public function declarations */
  14. uint8_t get_heart_rate(void);
  15. void update_heart_rate(void);
  16. #endif // HEART_RATE_H