File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 34
34
#define SIO_POKE8 (__d ) sio_poke8(__d, 0)
35
35
#endif
36
36
37
- #define SIO_PEEK32 () ((( SIO_PEEK8() | (SIO_PEEK8() << 8) | (SIO_PEEK8() << 16) | (SIO_PEEK8() << 24))
37
+ #define SIO_PEEK32 () (SIO_PEEK8() | (SIO_PEEK8() << 8) | (SIO_PEEK8() << 16) | (SIO_PEEK8() << 24))
38
38
39
39
void sioload (void ) {
40
40
int i ;
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ int sio_poke8(uint8_t data, uint32_t timeout) {
180
180
}
181
181
182
182
uint8_t sio_get_byte (void ) {
183
- uint8_t t ret ;
183
+ uint8_t ret ;
184
184
185
185
// RTR(Ready To Receive akia "RTS"/Request to Send): on
186
186
sio_set_ctrl_m (~(SIO_CTRL_RTR_EN ), SIO_CTRL_RTR_EN );
@@ -201,7 +201,7 @@ uint8_t sio_get_byte(void) {
201
201
}
202
202
203
203
void sio_put_byte (uint8_t d ) {
204
- while ((sio_get_stat () & (SR_TXU | SR_TXRDY )) != (SR_TXU | SR_TXRDY ))
204
+ while ((sio_get_stat () & (SIO_STAT_TX_EMPTY | SIO_STAT_TX_RDY )) != (SIO_STAT_TX_EMPTY | SIO_STAT_TX_RDY ))
205
205
;
206
206
* R_PS1_SIO1_DATA = d ;
207
207
}
You can’t perform that action at this time.
0 commit comments