-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: esp32s3: allows QIO flash mode
Allows QIO flash mode on esp32s3 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef __hexdump_included__ | ||
#define __hexdump_included__ | ||
|
||
#include "rom/ets_sys.h" | ||
|
||
static void hexdump(const char *str, const void *packet, size_t length) | ||
{ | ||
int n = 0; | ||
uint32_t base = (uint32_t)packet; | ||
const uint8_t *data = (const uint8_t*) packet; | ||
|
||
Check notice on line 11 in soc/espressif/common/include/hexdump.h GitHub Actions / Run compliance checks on patch series (PR)You may want to run clang-format on this change
|
||
if (!length) { | ||
ets_printf("%s zero-length data\n", str); | ||
return; | ||
} | ||
|
||
while (length--) { | ||
if (n % 16 == 0) { | ||
ets_printf("%s %08X: ", str, base+n); | ||
} | ||
Check notice on line 20 in soc/espressif/common/include/hexdump.h GitHub Actions / Run compliance checks on patch series (PR)You may want to run clang-format on this change
|
||
|
||
ets_printf("%02X ", *data++); | ||
|
||
n++; | ||
if (n % 8 == 0) { | ||
if (n % 16 == 0) { | ||
ets_printf("\n"); | ||
} else { | ||
ets_printf(" "); | ||
} | ||
} | ||
} | ||
|
||
if (n % 16) { | ||
ets_printf("\n"); | ||
} | ||
} | ||
#endif /* __hexdump_included__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters