Skip to content

Commit 417c6bc

Browse files
committed
Fixed typos and such.
1 parent 1cf7fae commit 417c6bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mips/sioload/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define SIO_POKE8(__d) sio_poke8(__d, 0)
3535
#endif
3636

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))
3838

3939
void sioload(void) {
4040
int i;

src/mips/sioload/src/serialio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ int sio_poke8(uint8_t data, uint32_t timeout) {
180180
}
181181

182182
uint8_t sio_get_byte(void) {
183-
uint8_t t ret;
183+
uint8_t ret;
184184

185185
// RTR(Ready To Receive akia "RTS"/Request to Send): on
186186
sio_set_ctrl_m(~(SIO_CTRL_RTR_EN), SIO_CTRL_RTR_EN);
@@ -201,7 +201,7 @@ uint8_t sio_get_byte(void) {
201201
}
202202

203203
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))
205205
;
206206
*R_PS1_SIO1_DATA = d;
207207
}

0 commit comments

Comments
 (0)