iSDIO library for FlashAir
Dependents: FlashAir_iSDIO_sample FlashAir_iSDIO_16seg_ADT7410_step1 FlashAir_iSDIO_16seg_ADT7410 FlashAir_iSDIO_sample_OS5_ ... more
Diff: FlashAir_iSDIO.cpp
- Revision:
- 2:b8b33621e7fe
- Parent:
- 1:dc888b9028cf
diff -r dc888b9028cf -r b8b33621e7fe FlashAir_iSDIO.cpp --- a/FlashAir_iSDIO.cpp Wed Aug 29 04:04:52 2018 +0000 +++ b/FlashAir_iSDIO.cpp Sat Jan 19 04:31:16 2019 +0000 @@ -14,6 +14,7 @@ instance = this ; sequenceId = 0 ; _console = console ; + if (_console != NULL) _console->printf("new FlashAIr_iSDIO\n"); } @@ -30,6 +31,7 @@ //} uint8_t FlashAir_iSDIO::wlan_disconnect(uint32_t sequenceId) { + if (_console != NULL) _console->printf("\nDisconnect command: \n"); memset(cmdbuffer, 0, sizeof(cmdbuffer)); uint8_t* p = cmdbuffer; @@ -42,6 +44,7 @@ } uint8_t FlashAir_iSDIO::wlan_establish(uint32_t sequenceId, const uint8_t *ssid, const uint8_t *networkkey, const uint8_t encmode) { + if (_console != NULL) _console->printf("\nEstablish command: \n"); memset(cmdbuffer, 0, sizeof(cmdbuffer)); uint8_t* p = cmdbuffer; @@ -56,6 +59,7 @@ } uint8_t FlashAir_iSDIO::wlan_connect(uint32_t sequenceId, const uint8_t* ssid, const uint8_t* networkKey) { + if (_console != NULL) _console->printf("\nConnect command: \n"); memset(cmdbuffer, 0, sizeof(cmdbuffer)); uint8_t* p = cmdbuffer; @@ -70,6 +74,7 @@ uint8_t FlashAir_iSDIO::wlan_scan(uint32_t sequenceId) { + if (_console != NULL) _console->printf("\nScan: \n"); memset(cmdbuffer, 0, sizeof(cmdbuffer)); uint8_t *p = cmdbuffer; @@ -85,6 +90,7 @@ uint8_t ret ; ret = readExtMemory(MIO_IO, FUNC1, ISDIO_VENDOR+offset, length, dst); + if (_console != NULL) _console->printf("read_shared_memory:\n"); printHex((uint8_t*)dst, (uint32_t)length); return ret ; @@ -92,6 +98,7 @@ uint8_t FlashAir_iSDIO::write_shared_mem(uint32_t offset, uint8_t* src, uint16_t length) { + if (_console != NULL) _console->printf("write_shared_mem:\n"); printHex((uint8_t*)src, (uint32_t)length);