mirror of
https://github.com/marqs85/ossc
synced 2026-11-01 04:37:16 +03:00
i2c_opencores.[ch], spi_io.[ch]: Improve const correctness.
This commit is contained in:
1 parent
cd77713255
commit
556140dd62
4 files changed
+4
-4
No files matched your search
@@ -15,7 +15,7 @@ void SPI_Init (void) {
|
||||
I2C_init(SD_SPI_BASE,ALT_CPU_FREQ,400000);
|
||||
}
|
||||
|
||||
void SPI_W(BYTE *wd, int len) {
|
||||
void SPI_W(const BYTE *wd, int len) {
|
||||
SPI_write(SD_SPI_BASE, wd, len);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ void SPI_R (BYTE *rd, int len);
|
||||
\param *wd Pointer to array which holds the bytes.
|
||||
\param len Length of the array.
|
||||
*/
|
||||
void SPI_W (BYTE *wd, int len);
|
||||
void SPI_W (const BYTE *wd, int len);
|
||||
|
||||
/**
|
||||
\brief Read a single byte.
|
||||
|
||||
Reference in new issue
Block a user