summaryrefslogtreecommitdiffstats
path: root/serial_link/protocol/byte_stuffer.h
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-02-17 08:07:38 +0100
committerFred Sundvik <fsundvik@gmail.com>2016-02-17 08:07:38 +0100
commit419908e5ef15481bd22dcd4173a25562f6153a5a (patch)
treeafa050638aa48000a48a67dd731511b26886211a /serial_link/protocol/byte_stuffer.h
parent8d50880686dfc2b06958fc3bd6212945ee9029c4 (diff)
downloadqmk_firmware-419908e5ef15481bd22dcd4173a25562f6153a5a.tar.gz
qmk_firmware-419908e5ef15481bd22dcd4173a25562f6153a5a.tar.xz
Hide the byte stuffer state inside it
Diffstat (limited to 'serial_link/protocol/byte_stuffer.h')
-rw-r--r--serial_link/protocol/byte_stuffer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/serial_link/protocol/byte_stuffer.h b/serial_link/protocol/byte_stuffer.h
index ea6b8451d..4dcdd24c1 100644
--- a/serial_link/protocol/byte_stuffer.h
+++ b/serial_link/protocol/byte_stuffer.h
@@ -22,7 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
-typedef struct byte_stuffer_state byte_stuffer_state_t;
-void init_byte_stuffer_state(byte_stuffer_state_t* state);
-void recv_byte(byte_stuffer_state_t* state, uint8_t data);
+void init_byte_stuffer(void);
+void recv_byte(uint8_t data);
void send_frame(uint8_t* data, uint16_t size);