ICARUS OS (Intelligent Cooperative Architecture for Real-time Unified Systems) 0.1.0
Preemptive Real-Time Operating System for ARM Cortex-M7
Loading...
Searching...
No Matches
cdc.h
Go to the documentation of this file.
1
29#ifndef BSP_CDC_H
30#define BSP_CDC_H
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#include <stdint.h>
37#include <stdbool.h>
38
47#define CDC_WRITE_MAX_RETRIES 500u
48
67bool CDC_Write(const uint8_t *data, uint16_t len);
68
77bool CDC_WriteString(const char *s);
78
79#ifdef __cplusplus
80}
81#endif
82
83#endif /* BSP_CDC_H */
bool CDC_WriteString(const char *s)
Convenience wrapper that pushes a NUL-terminated C string.
Definition cdc.c:112
bool CDC_Write(const uint8_t *data, uint16_t len)
Push len bytes to the USB CDC IN endpoint.
Definition cdc.c:33