Adding platform detection opcodes + fix assembler bug.

Adding flags to allow runtime detection of different esp32 models,
riscv vs xtensa, and psram.

Use this to conditionally compile hook for relevant assemblers.
This commit is contained in:
Brad Nelson
2023-01-21 21:27:29 -08:00
parent adfd238ee2
commit fe87f1574c
10 changed files with 127 additions and 0 deletions

View File

@ -660,7 +660,18 @@ e: check-esp32-platform
out: default-type
;e
e: check-esp32-platform-flags
out: ESP32?
out: ESP32-S2?
out: ESP32-S3?
out: ESP32-C3?
out: PSRAM?
out: Xtensa?
out: RISC-V?
;e
e: check-esp32-builtins
check-esp32-platform-flags
out: pinMode
out: digitalWrite
out: digitalRead