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:
Dean Camera 2009-07-30 10:54:57 +00:00
parent 5ca1d7bf8f
commit ce3ea6fb25
4 changed files with 26 additions and 3 deletions

View file

@ -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;