Added standard stream example to the ClassDriver CDC device demo.
Fix incorrect HWB button mask in the STK526 Buttons driver.
This commit is contained in:
parent
5ca1d7bf8f
commit
ce3ea6fb25
4 changed files with 26 additions and 3 deletions
|
@ -55,7 +55,7 @@ CDC_Line_Coding_t LineCoding = { .BaudRateBPS = 9600,
|
|||
* <stdio.h> can be used on the virtual serial port (e.g. fprintf(&USBSerial, "Test"); to print a string).
|
||||
*/
|
||||
|
||||
static int CDC_putchar (char c, FILE *stream)
|
||||
static int CDC_putchar(char c, FILE *stream)
|
||||
{
|
||||
Endpoint_SelectEndpoint(CDC_TX_EPNUM);
|
||||
|
||||
|
@ -71,7 +71,7 @@ static int CDC_putchar (char c, FILE *stream)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int CDC_getchar (FILE *stream)
|
||||
static int CDC_getchar(FILE *stream)
|
||||
{
|
||||
int c;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue