]> git.zerfleddert.de Git - hmcfgusb/blobdiff - culfw.h
Allow the user to specify the compiler via environment variable
[hmcfgusb] / culfw.h
diff --git a/culfw.h b/culfw.h
index c0b0aed4743b8a0a91803c7ac0b0338793065acc..9c98eb7d5250f0d5ae711efd98b627674fba8290 100644 (file)
--- a/culfw.h
+++ b/culfw.h
@@ -1,6 +1,6 @@
 /* culfw driver
  *
- * Copyright (c) 2013 Michael Gernoth <michael@gernoth.net>
+ * Copyright (c) 2014-16 Michael Gernoth <michael@gernoth.net>
  *
  * 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);
 
@@ -32,6 +32,7 @@ struct culfw_dev {
 };
 
 struct culfw_dev *culfw_init(char *device, uint32_t speed, culfw_cb_fn cb, void *data);
-int culfw_send(struct culfw_dev *dev, char *cmd, int cmdlen);
+int culfw_send(struct culfw_dev *dev, const 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);
Impressum, Datenschutz