tent600_key.h 346 B

123456789101112131415161718
  1. #ifndef DEVICE_TENT600_KEY_H
  2. #define DEVICE_TENT600_KEY_H
  3. #include "typedef.h"
  4. #include "asm/adc_api.h"
  5. struct tent600_key_platform_data {
  6. u8 enalbe;
  7. u8 tent600_key_pin;
  8. u8 extern_up_en;
  9. u32 ad_channel;
  10. };
  11. int tent600_key_init(const struct tent600_key_platform_data *tent600_key_data);
  12. u8 tent600_get_key_value(void);
  13. #endif