spl0601_sensor_v1.h 388 B

1234567891011121314151617
  1. #ifndef SENSOR_GOER_SPL0601_H__
  2. #define SENSOR_GOER_SPL0601_H__
  3. #include <rtdevice.h>
  4. #include <rtthread.h>
  5. #if defined(RT_VERSION_CHECK)
  6. #if (RTTHREAD_VERSION >= RT_VERSION_CHECK(5, 0, 2))
  7. #define RT_SIZE_TYPE rt_ssize_t
  8. #else
  9. #define RT_SIZE_TYPE rt_size_t
  10. #endif
  11. #endif
  12. int rt_hw_spl0601_init(const char *name, struct rt_sensor_config *cfg);
  13. #endif