public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
142139a
)
Brief moment of hardware workingness --- this is now known to be good.
author
David Given
<dg@cowlark.com>
Wed, 24 Jun 2015 19:42:42 +0000
(21:42 +0200)
committer
David Given
<dg@cowlark.com>
Wed, 24 Jun 2015 19:42:42 +0000
(21:42 +0200)
Kernel/platform-msp430fr5969/devsdspi.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-msp430fr5969/devsdspi.c
b/Kernel/platform-msp430fr5969/devsdspi.c
index
e66b94f
..
74fa8ef
100644
(file)
--- a/
Kernel/platform-msp430fr5969/devsdspi.c
+++ b/
Kernel/platform-msp430fr5969/devsdspi.c
@@
-42,7
+42,7
@@
void sd_rawinit(void)
/* Set 400kHz output clock (SMCLK is 8MHz, divided by 20). */
- UCB0BRW =
3
0;
+ UCB0BRW =
2
0;
/* Interrupts off. */
@@
-78,9
+78,9
@@
void sd_spi_lower_cs(void)
P1OUT &= ~BIT3;
}
-void sd_spi_transmit_byte(uint8_t b
yte
)
+void sd_spi_transmit_byte(uint8_t b)
{
- UCB0TXBUF = b
yte
;
+ UCB0TXBUF = b;
while (!(UCB0IFG & UCTXIFG))
;
}
@@
-94,8
+94,7
@@
uint8_t sd_spi_receive_byte(void)
while (!(UCB0IFG & UCRXIFG))
;
- uint8_t b = UCB0RXBUF;
- return b;
+ return UCB0RXBUF;
}