forked fromespressif/arduino-esp32
Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7
Tags: arduino/arduino-esp32
Tags
v2.0.17-arduino.4
platform.txt: use iwithprefixbefore to shorten the command linesThe command line for the ESP32 compilers is very long, and it iscausing problems on Windows systems, which enforce a hard 32kbytesline limit.This patch uses the iprefix/iwithprefixbefore options to shorten thecompiler command line by changing"-I{compiler.sdk.path}/include/aaa""-I{compiler.sdk.path}/include/bbb""-I{compiler.sdk.path}/include/ccc" ...to:-iprefix "{compiler.sdk.path}/include/"-iwithprefixbefore aaa-iwithprefixbefore bbb-iwithprefixbefore ccc ...Some targets have up to 200 paths so this can save A LOT of space.On a sample run this patch shortened a single compile command from28777 bytes to 10728.v2.0.17-arduino2
digitalPinToInterrupt: fix double pin remappingThe digitalPinToInterrupt() macro currently remaps the pin number to theGPIO number. This is not necessary, as most users will then use thereturned value in attachInterrupt() or other similar API functions,which already perform the same remapping.The first half of the macro (the condition) does indeed require theremapping to ensure the check operates on GPIO numbers.Fixesespressif#10367.
PreviousNext