keychron_qmk_firmware/keyboard/hhkb_rn42/rn42.h

21 lines
387 B
C
Raw Normal View History

2014-06-25 10:57:36 +06:00
#ifndef RN42_H
#define RN42_H
2014-07-01 01:29:45 +06:00
#include <stdbool.h>
2014-07-14 12:20:10 +06:00
// RN-42 CTS pin
#define CTS_INIT() (DDRD |= (1<<5))
#define CTS_HI() (PORTD |= (1<<5))
#define CTS_LO() (PORTD &= ~(1<<5))
2014-06-25 10:57:36 +06:00
host_driver_t rn42_driver;
2014-07-01 01:29:45 +06:00
host_driver_t rn42_config_driver;
void rn42_init(void);
void rn42_putc(uint8_t c);
void rn42_autoconnect(void);
void rn42_disconnect(void);
bool rn42_ready(void);
2014-06-25 10:57:36 +06:00
#endif