Fixes #1394 The Pico_Rand SDK calls gather bits from the HW ROSC at precise intervals. If there is jitter in the sleep_until() call then the ROSC bit collection will always think it's failed to acquire the right bit and retry infintitely. Avoid by wrapping the HW random number calls and the sleep_until() routine. Only when in FreeRTOS set a flag to silently make sleep_until() into a busy wait loop while in a random number generation step. When not in the random code, do the normal sleep_until call.
20 lines
1.3 KiB
Bash
Executable File
20 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
for dir in ./cores/rp2040 ./libraries/EEPROM ./libraries/I2S ./libraries/SingleFileDrive \
|
|
./libraries/LittleFS/src ./libraries/LittleFS/examples ./libraries/PWMAudio \
|
|
./libraries/rp2040 ./libraries/SD ./libraries/ESP8266SdFat ./libraries/ADCInput \
|
|
./libraries/Servo ./libraries/SPI ./libraries/Wire ./libraries/PDM \
|
|
./libraries/WiFi ./libraries/lwIP_Ethernet ./libraries/lwIP_CYW43 \
|
|
./libraries/FreeRTOS/src ./libraries/LEAmDNS ./libraries/MD5Builder \
|
|
./libraries/PicoOTA ./libraries/SDFS ./libraries/ArduinoOTA \
|
|
./libraries/Updater ./libraries/HTTPClient ./libraries/HTTPUpdate \
|
|
./libraries/WebServer ./libraries/HTTPUpdateServer ./libraries/DNSServer \
|
|
./libraries/Joystick ./libraries/Keyboard ./libraries/Mouse \
|
|
./libraries/JoystickBT ./libraries/KeyboardBT ./variants ./libraries/BTstackLib \
|
|
./libraries/MouseBT ./libraries/SerialBT ./libraries/HID_Bluetooth \
|
|
./libraries/JoystickBLE ./libraries/KeyboardBLE ./libraries/MouseBLE ; do
|
|
find $dir -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" \) -a \! -path '*api*' -exec astyle --suffix=none --options=./tests/astyle_core.conf \{\} \;
|
|
find $dir -type f -name "*.ino" -exec astyle --suffix=none --options=./tests/astyle_examples.conf \{\} \;
|
|
done
|
|
|