X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/47ea478b44e3c529201c6678f5e2cbbe0fc60bf9..a65c08fc834ac57cb4aab5470ca144d13076a2bd:/culfw.h?ds=sidebyside diff --git a/culfw.h b/culfw.h index c0b0aed..6f310fc 100644 --- a/culfw.h +++ b/culfw.h @@ -1,6 +1,6 @@ /* culfw driver * - * Copyright (c) 2013 Michael Gernoth + * Copyright (c) 2014 Michael Gernoth * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to @@ -21,7 +21,7 @@ * IN THE SOFTWARE. */ -#define DEFAULT_CUL_BPS 19200 +#define DEFAULT_CUL_BPS 38400 typedef int (*culfw_cb_fn)(uint8_t *buf, int buf_len, void *data); @@ -35,3 +35,4 @@ struct culfw_dev *culfw_init(char *device, uint32_t speed, culfw_cb_fn cb, void int culfw_send(struct culfw_dev *dev, char *cmd, int cmdlen); int culfw_poll(struct culfw_dev *dev, int timeout); void culfw_close(struct culfw_dev *dev); +void culfw_flush(struct culfw_dev *dev);