mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-09-02 02:58:06 +02:00
make output buffer const
This commit is contained in:
+6
-6
@@ -48,17 +48,17 @@ class CologneChip: public Device, SPIInterface {
|
||||
void reset() override;
|
||||
|
||||
private:
|
||||
void programSPI_sram(uint8_t *data, int length);
|
||||
void programSPI_flash(unsigned int offset, uint8_t *data, int length,
|
||||
void programSPI_sram(const uint8_t *data, int length);
|
||||
void programSPI_flash(unsigned int offset, const uint8_t *data, int length,
|
||||
bool unprotect_flash);
|
||||
void programJTAG_sram(uint8_t *data, int length);
|
||||
void programJTAG_flash(unsigned int offset, uint8_t *data, int length,
|
||||
void programJTAG_sram(const uint8_t *data, int length);
|
||||
void programJTAG_flash(unsigned int offset, const uint8_t *data, int length,
|
||||
bool unprotect_flash);
|
||||
|
||||
/* spi interface via jtag */
|
||||
int spi_put(uint8_t cmd, uint8_t *tx, uint8_t *rx,
|
||||
int spi_put(uint8_t cmd, const uint8_t *tx, uint8_t *rx,
|
||||
uint32_t len) override;
|
||||
int spi_put(uint8_t *tx, uint8_t *rx, uint32_t len) override;
|
||||
int spi_put(const uint8_t *tx, uint8_t *rx, uint32_t len) override;
|
||||
int spi_wait(uint8_t cmd, uint8_t mask, uint8_t cond, uint32_t timeout,
|
||||
bool verbose=false) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user