mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 01:48:50 +02:00
make output buffer const
This commit is contained in:
+3
-3
@@ -44,7 +44,7 @@ class CmsisDAP: public JtagInterface {
|
||||
* \param[in] flush_buffer: force buffer to be send or not
|
||||
* \return <= 0 if something wrong, len otherwise
|
||||
*/
|
||||
int writeTMS(uint8_t *tms, uint32_t len, bool flush_buffer) override;
|
||||
int writeTMS(const uint8_t *tms, uint32_t len, bool flush_buffer) override;
|
||||
|
||||
/*!
|
||||
* \brief write and read len bits with optional tms set to 1 if end
|
||||
@@ -54,7 +54,7 @@ class CmsisDAP: public JtagInterface {
|
||||
* \param[in] end: if true tms is set to one with the last tdi bit
|
||||
* \return <= 0 if something wrong, len otherwise
|
||||
*/
|
||||
int writeTDI(uint8_t *tx, uint8_t *rx, uint32_t len, bool end) override;
|
||||
int writeTDI(const uint8_t *tx, uint8_t *rx, uint32_t len, bool end) override;
|
||||
|
||||
/*!
|
||||
* \brief send a serie of clock cycle with constant TMS and TDI
|
||||
@@ -95,7 +95,7 @@ class CmsisDAP: public JtagInterface {
|
||||
uint8_t *rx_buff, int rx_len);
|
||||
|
||||
void display_info(uint8_t info, uint8_t type);
|
||||
int writeJtagSequence(uint8_t tms, uint8_t *tx, uint8_t *rx,
|
||||
int writeJtagSequence(uint8_t tms, const uint8_t *tx, uint8_t *rx,
|
||||
uint32_t len, bool end);
|
||||
|
||||
bool _verbose; /**< display more message */
|
||||
|
||||
Reference in New Issue
Block a user