mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-09 17:33:43 +00:00
add config baud increase docs
This commit is contained in:
@@ -58,6 +58,8 @@ func (c *SPICard) csEnable(b bool) { c.cs(!b) }
|
||||
func (c *SPICard) LastReadCRC() uint16 { return c.lastCRC }
|
||||
func (c *SPICard) LastR1() r1 { return c.lastr1 }
|
||||
|
||||
// Init initializes the SD card. This routine should be performed with a SPI clock
|
||||
// speed of around 100..400kHz. One may increase the clock speed after initialization.
|
||||
func (d *SPICard) Init() error {
|
||||
dummy := d.buf[:]
|
||||
for i := range dummy {
|
||||
|
||||
+1
-1
@@ -447,7 +447,7 @@ var log10table = [...]int64{
|
||||
1000000,
|
||||
}
|
||||
|
||||
// RateMegabits returns the transfer rate in megabits per second.
|
||||
// RateMegabits returns the transfer rate in kilobits per second.
|
||||
func (t TransferSpeed) RateKilobits() int64 {
|
||||
return 100 * log10table[t&0b111]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user