@@ -81,9 +81,9 @@ typedef uint8_t rx_buffer_index_t;
81
81
82
82
/* Universal Synchronous and Asynchronous Receiver and Transmitter */
83
83
84
- typedef volatile uint8_t register8_t ;
85
- typedef volatile uint16_t register16_t ;
86
- typedef volatile uint32_t register32_t ;
84
+ typedef uint8_t register8_t ;
85
+ typedef uint16_t register16_t ;
86
+ typedef uint32_t register32_t ;
87
87
88
88
#define _WORDREGISTER (regname ) __extension__ union { register16_t regname; struct { register8_t regname##L; register8_t regname##H; }; }
89
89
@@ -111,24 +111,24 @@ class UartClass : public HardwareSerial
111
111
112
112
protected:
113
113
StreamMock mockstream;
114
- volatile USART_t * const _hwserial_module;
114
+ USART_t * const _hwserial_module;
115
115
116
- volatile uint8_t const _hwserial_rx_pin;
117
- volatile uint8_t const _hwserial_tx_pin;
116
+ uint8_t const _hwserial_rx_pin;
117
+ uint8_t const _hwserial_tx_pin;
118
118
119
- volatile uint8_t const _uart_mux;
119
+ uint8_t const _uart_mux;
120
120
121
121
// Has any byte been written to the UART since begin()
122
122
bool _written;
123
123
124
- volatile rx_buffer_index_t _rx_buffer_head;
125
- volatile rx_buffer_index_t _rx_buffer_tail;
126
- volatile tx_buffer_index_t _tx_buffer_head;
127
- volatile tx_buffer_index_t _tx_buffer_tail;
124
+ rx_buffer_index_t _rx_buffer_head;
125
+ rx_buffer_index_t _rx_buffer_tail;
126
+ tx_buffer_index_t _tx_buffer_head;
127
+ tx_buffer_index_t _tx_buffer_tail;
128
128
129
- volatile uint8_t _hwserial_dre_interrupt_vect_num;
130
- volatile uint8_t _hwserial_dre_interrupt_elevated;
131
- volatile uint8_t _prev_lvl1_interrupt_vect;
129
+ uint8_t _hwserial_dre_interrupt_vect_num;
130
+ uint8_t _hwserial_dre_interrupt_elevated;
131
+ uint8_t _prev_lvl1_interrupt_vect;
132
132
133
133
// Don't put any members after these buffers, since only the first
134
134
// 32 bytes of this struct can be accessed quickly using the ldd
@@ -140,11 +140,11 @@ class UartClass : public HardwareSerial
140
140
// UartClass(){;}
141
141
// inline UartClass(volatile USART_t *hwserial_module, uint8_t hwserial_rx_pin, uint8_t hwserial_tx_pin, uint8_t dre_vect_num, uint8_t uart_mux);
142
142
UartClass (
143
- volatile USART_t *hwserial_module,
144
- volatile uint8_t hwserial_rx_pin,
145
- volatile uint8_t hwserial_tx_pin,
146
- volatile uint8_t hwserial_dre_interrupt_vect_num,
147
- volatile uint8_t uart_mux) :
143
+ USART_t *hwserial_module,
144
+ uint8_t hwserial_rx_pin,
145
+ uint8_t hwserial_tx_pin,
146
+ uint8_t hwserial_dre_interrupt_vect_num,
147
+ uint8_t uart_mux) :
148
148
_hwserial_module (hwserial_module),
149
149
_hwserial_rx_pin (hwserial_rx_pin),
150
150
_hwserial_tx_pin (hwserial_tx_pin),
0 commit comments