aboutsummaryrefslogtreecommitdiff
path: root/stm32/inc/stm32f4_usb_vcp.h
blob: d742ebc160659008935f201bf1af556ac824700d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*---------------------------------------------------------------------------*\

  FILE........: stm32f4_usb_vcp.h
  AUTHOR......: David Rowe
  DATE CREATED: 4 Sep 2014

  USB Virtual COM Port (VCP) module.

\*---------------------------------------------------------------------------*/

#ifndef __STM32F4_USB_VCP__
#define __STM32F4_USB_VCP__

#include <stdint.h>

void usb_vcp_init(void);

int VCP_get_char(uint8_t *buf);
int VCP_get_string(uint8_t *buf);
void VCP_put_char(uint8_t buf);
void VCP_send_str(uint8_t* buf);
void VCP_send_buffer(uint8_t* buf, int len);

#endif