English
English
English
#define HardwareSerial_h
#include “Arduino.h”
#include <inttypes.h>
#include “Stream.h”
// WARNING: When buffer sizes are increased to > 256, the buffer
index
#if !defined(SERIAL_TX_BUFFER_SIZE)
#define SERIAL_TX_BUFFER_SIZE 16
#else
#define SERIAL_TX_BUFFER_SIZE 64
#endif
#endif
#if !defined(SERIAL_RX_BUFFER_SIZE)
#define SERIAL_RX_BUFFER_SIZE 16
#else
#define SERIAL_RX_BUFFER_SIZE 64
#endif
#endif
#if (SERIAL_TX_BUFFER_SIZE>256)
#else
Typedef uint8_t tx_buffer_index_t;
#endif
#if (SERIAL_RX_BUFFER_SIZE>256)
#else
#endif
Protected:
Bool _written;
// Don’t put any members after these buffers, since only the
first
// instruction.
Public:
Inline HardwareSerial(
Volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
Void end();
Void _tx_udr_empty_irq(void);
};
#define HAVE_HWSERIAL0
#endif
#if defined(UBRR1H)
#define HAVE_HWSERIAL1
#endif
#if defined(UBRR2H)
#define HAVE_HWSERIAL2
#endif
#if defined(UBRR3H)
#endif
#endif