/**
* \brief ouputs a zero-terminated string from ram to the console
*/
-void cli_putstr(char* s){
+void cli_putstr(const char* s){
if(!cli_tx)
return;
while(*s)
* Dumps length bytes from data to the console ouput. The dump
* will have 2*n continous hexadecimal characters.
*/
-void cli_hexdump(void* data, uint16_t length){
+void cli_hexdump(const void* data, uint16_t length){
if(!cli_tx)
return;
while(length--){
* bytes are dumped in reverse order. This is usefull to dump
* integers which ar e in little endian order.
*/
-void cli_hexdump_rev(void* data, uint16_t length){
+void cli_hexdump_rev(const void* data, uint16_t length){
if(!cli_tx)
return;
data = (uint8_t*)data + length -1;
* Like cli_hexdump but bytes are seperated with a single space
* on the console output.
*/
-void cli_hexdump2(void* data, uint16_t length){
+void cli_hexdump2(const void* data, uint16_t length){
if(!cli_tx)
return;
while(length--){
* Like cli_hexdump but bytes are seperated with a single space
* on the console output.
*/
-void cli_hexdump_block(void* data, uint16_t length, uint8_t indent, uint8_t width){
+void cli_hexdump_block(const void* data, uint16_t length, uint8_t indent, uint8_t width){
uint16_t i;
uint8_t j;
if(!cli_tx)