Keyboard firmwares for Atmel AVR and Cortex-M
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.

rn42.h 387B

1234567891011121314151617181920
  1. #ifndef RN42_H
  2. #define RN42_H
  3. #include <stdbool.h>
  4. // RN-42 CTS pin
  5. #define CTS_INIT() (DDRD |= (1<<5))
  6. #define CTS_HI() (PORTD |= (1<<5))
  7. #define CTS_LO() (PORTD &= ~(1<<5))
  8. host_driver_t rn42_driver;
  9. host_driver_t rn42_config_driver;
  10. void rn42_init(void);
  11. void rn42_putc(uint8_t c);
  12. void rn42_autoconnect(void);
  13. void rn42_disconnect(void);
  14. bool rn42_ready(void);
  15. #endif