mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader
This commit is contained in:
commit
5eb7ad154b
@ -46,8 +46,8 @@
|
|||||||
struct ring_buffer
|
struct ring_buffer
|
||||||
{
|
{
|
||||||
unsigned char buffer[SERIAL_BUFFER_SIZE];
|
unsigned char buffer[SERIAL_BUFFER_SIZE];
|
||||||
volatile int head;
|
volatile unsigned int head;
|
||||||
volatile int tail;
|
volatile unsigned int tail;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(USBCON)
|
#if defined(USBCON)
|
||||||
|
@ -56,7 +56,7 @@ static UNUSEDOK int FreeRam(void) {
|
|||||||
* \param[in] str Pointer to string stored in flash memory.
|
* \param[in] str Pointer to string stored in flash memory.
|
||||||
*/
|
*/
|
||||||
static NOINLINE void SerialPrint_P(PGM_P str) {
|
static NOINLINE void SerialPrint_P(PGM_P str) {
|
||||||
for (uint8_t c; (c = pgm_read_byte(str)); str++) Serial.print(c);
|
for (uint8_t c; (c = pgm_read_byte(str)); str++) Serial.write(c);
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user