You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
342 B

3 years ago
3 years ago
  1. #include <stdint.h>
  2. #include <string.h>
  3. #include <stdbool.h>
  4. #include <stdio.h>
  5. #define KEY_REC 36
  6. #define KEY_MODE 39
  7. #define GPIO_KEY_INPUT_PIN_SEL ((1ULL << KEY_REC) | (1ULL << KEY_MODE))
  8. typedef void (*key_ble_cb_t)(char *string, uint8_t string_length);
  9. void key_init();
  10. void key_schedule();
  11. void key_ble_send_cmd_reg(key_ble_cb_t cb);