aboutsummaryrefslogtreecommitdiffstats
path: root/source/usbserial.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2020-08-15 08:44:02 -0400
committerClyne Sullivan <clyne@bitgloo.com>2020-08-15 08:44:02 -0400
commitd060dce4ec03dad8bcde265ff5b5eb68cd009ea2 (patch)
tree8370b81f6f9afc561840d83b3cd9b8e9accea275 /source/usbserial.hpp
parent7f59ca704b6f3c0ad254d391a123961aa0a86284 (diff)
move drivers into namespaces
Diffstat (limited to 'source/usbserial.hpp')
-rw-r--r--source/usbserial.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/usbserial.hpp b/source/usbserial.hpp
index 4b0eab2..4c33d51 100644
--- a/source/usbserial.hpp
+++ b/source/usbserial.hpp
@@ -14,10 +14,14 @@
#include "hal.h"
-void usbserial_init();
-bool usbserial_is_active();
-size_t usbserial_read(void *buffer, size_t count);
-size_t usbserial_write(const void *buffer, size_t count);
+namespace usbserial
+{
+ void init();
+ bool is_active();
+
+ size_t read(void *buffer, size_t count);
+ size_t write(const void *buffer, size_t count);
+}
#endif // STMDSP_USBSERIAL_HPP_