2632 Commits
Author SHA1 Message Date
peri4 b69529a339 PIThread - add pthread_cleanup_push/pop in case of terminate(), fix MacOS code 2026-11-08 11:55:30 +03:00
peri4 9255e7528c PIThread: macos fixes
doc
2026-11-08 10:47:50 +03:00
peri4 4c8c4ef5c3 PIObject::Deleter refactoring:
- more readable code
 - detect PIThread and PIIODevice
 - try to gracefully stop thread or IODevice, wait with 10_ms and cycle object back to deletion queue if more needed
 - on program shutdown also try to wait for thread or device actually stop, but with smaller timeout
 - print which thread or IODevice hangs (can`t stop in timeout)

PIThread fix deadlock on join when thread in _startThread

PIProcess::optimizeMemory fix
2026-11-08 02:03:49 +03:00
peri4 8a60665c71 hide __PIThreadCollection API
fix PIThread for Windows
2026-11-07 20:51:40 +03:00
peri4 8749e86e97 PIThread fix segfault on delete when thread still starting
add PIProcess::optimizeMemory()
2026-11-07 14:42:35 +03:00
peri4 8e979c51b5 PIObject::Deleter now wait threads
PIThread::runOnce refactor
2026-11-06 23:59:35 +03:00
peri4 823a94d7d9 pithread fixes 2026-11-06 23:09:13 +03:00
peri4 c72ff20592 pithread fixes 2026-11-06 22:33:57 +03:00
peri4 6185320d8c pithread fix 2026-11-06 22:07:26 +03:00
peri4 606c9f449c add pithread test 2026-11-06 18:24:54 +03:00
peri4 b3d5ef5856 version 6.3.0
PIThread refactoring:
 - much more clear platform implementations
 - single status instead of flags zoo
 - more stability, using join instead of leaving detached
2026-11-06 18:24:27 +03:00
peri4 c05a2f3eed Merge pull request 'version 6.2.0' (#220) from fftw_refactor into master
Reviewed-on: #220
2026-10-19 12:32:11 +03:00
peri4 f1028bf98a version 6.2.0
breaking changes in FFT
fix calcHilbert
2026-10-19 12:32:05 +03:00
peri4 630ddeae01 Merge pull request 'FFTW refactor' (#219) from fftw_refactor into master
Reviewed-on: #219
2026-10-18 22:40:05 +03:00
peri4 6f5a3f988b last PocketFFT (with POCKETFFT_NO_EXCEPTIONS) 2026-10-18 22:23:57 +03:00
peri4 639c4e140e small variable rename, keep in priority optimized FFTW plan (prepare() then calcFFT() scenario) 2026-10-18 21:09:46 +03:00
peri4 06fffeb976 fix small mistakes
PIFFTW now save all 3 plans, with fast flag
PIFFTBase::calcHibert now normalized
add -fexception for pifft.cpp
2026-10-18 20:31:21 +03:00
peri4 aa40c02b18 refactor PIFFTW 2026-10-18 16:41:42 +03:00
peri4 aa710956f1 add PIFFTBase as interface, storage and base functionality
change PIFFT<T> from alglib to PocketFFT
2026-10-18 00:21:27 +03:00
peri4 750ef910de thread-save PIFile::openTemporary() for Windows 2026-10-18 00:19:56 +03:00
peri4 3ef92a8b4d version 6.1.0
remove fftw_threads search/link, use internal mutex instead
2026-10-13 18:59:51 +03:00
peri4 95375993ca version 6.0.1 2026-09-22 20:38:15 +03:00
peri4 a21a5b4fbc .clang-format
PIEthernet::stopThreadedListen now close device, so repeated listen() works
2026-09-22 20:37:37 +03:00
peri4 031c3b9999 more 17 standard 2026-09-15 10:56:04 +03:00
peri4 04a588eb45 version 6.0.0
change CMAKE_CXX_STANDARD to 17
add PIByteArray(PIMemoryBlock)
PIJSON print functions now correctly handle top-level node, print name only for non-top-level
2026-09-15 10:53:21 +03:00
peri4 b745d5d867 add 418 code (1 april joke) 2026-09-11 20:17:33 +03:00
peri4 8e41461c08 version 6.0.0_beta
PIThread:
- remove old  V singleton V, migrate to modern STATIC_INITIALIZER and common singleton
- add PowerPolicy - now implemented only for Windows, if SetThreadInformation available, then use, else try to use SetThreadIdealProcessor. Mixed cores not supported for SetThreadIdealProcessor case.

PIThreadPoolLoop: add setPriority() and setPowerPolicy()
2026-09-08 15:40:44 +03:00
peri4 1b66ff527f PIInit - remove old V singleton V shit, migrate to modern STATIC_INITIALIZER, fix Windows locale
all PIP_HAS_*-derivated headers - #ifdef after basic includes
2026-09-06 21:42:26 +03:00
peri4 05ae5411f3 windows version pretty 2026-09-06 17:22:39 +03:00
andrey b1aed49797 Merge pull request 'Pico sdk fixes' (#218) from pico_sdk into master
Reviewed-on: #218
2026-09-06 13:22:29 +03:00
andrey a22b508952 Merge branch 'master' into pico_sdk 2026-09-06 13:21:00 +03:00
andrey 6f9885f0b7 remove duplicate INTROSPECTION option 2026-09-06 13:20:27 +03:00
peri4 3da94abb2a PIInit refactoring, iteration 2
add to PISystemInfo processorsCount<P|E> fields, now counts only for Windows
Introspection public API works without PIP_HAS_THREADS
2026-09-06 10:41:53 +03:00
peri4 7051e138e9 PIInit refactoring, first iteration 2026-09-06 09:09:45 +03:00
peri4 43e7c8de0d Merge pull request 'Pi Pico support' (#193) from pico_sdk into master
Reviewed-on: #193
2026-09-05 23:13:14 +03:00
peri4 b36e9a9bfb version 6.0.0_alpha
try to release with features
2026-09-05 23:12:57 +03:00
peri4 4df907ef10 CMake - add all flags to pip_defs.h
Introspection - revert *_p files, because they are external API for introspection, not internal
2026-09-05 23:09:38 +03:00
andrey 369e15ea5f cmake: make pip_feature_flag take DESCRIPTION and DEFAULT, describe all feature flags 2026-09-01 17:46:22 +03:00
andrey 00d92abf7d chore: stop tracking AGENTS.md (local-only, already in .gitignore) 2026-09-01 12:58:56 +03:00
andrey 0572e38325 fix: register std::function<void()> typename so state machine compiles in NO-RTTI debug builds 2026-08-31 22:07:40 +03:00
andrey 5bde1603cd test: add PIStateMachine test suite (states, transitions, guards, final/parallel states, timeouts, nested posts) 2026-08-31 21:47:29 +03:00
andrey fa7ff781fe refactor: use targeted includes (pibase_macros.h, piliterals_string.h) and guard <string> by PIP_HAS_RTTI 2026-08-31 19:12:38 +03:00
andrey b6b7a27dcc cmake: make PIP_HAS_DYNLIB depend on PIP_HAS_FILESYSTEM, drop redundant guards in piplugin 2026-08-31 19:02:48 +03:00
andrey 2f840c74e5 refactor: remove unused PIBinaryStream operators for PIMQTT message types
The operator<< / operator>> templates for MessageConst / MessageMutable
added in 4d8b7430 have no users in the tree (libs, tests, utils, main).
Drop them along with the pibinarystream.h include they required; the
binary-stream fallback static_assert in pibinarystream.h already gives a
clear compile error if external code ever streams an MQTT message.
2026-08-31 18:56:29 +03:00
andrey 09144acf4d cmake: simplify feature-flag dependency resolution
Replace scattered option() calls, PIP_HAS_DEPS_* variables, and while-loop
resolver with pip_feature_flag() function and pip_resolve_feature_flags()
macro. Dependencies are declared inline and resolved in a single pass.
2026-08-31 18:51:08 +03:00
andrey d16f4bdaf7 feat: decouple PISerial from PIP_HAS_THREADS, gate termios/stty code by PIP_HAS_TTY
- CMake: drop PIP_HAS_SERIAL -> PIP_HAS_THREADS dependency and the forced
  PIP_HAS_SERIAL=OFF for PICO_BOARD, so serial can be built on Pico
- piserial.cpp: guard termios/stty code (tcgetattr/tcsetattr/tcflush/tcdrain,
  TIOCSBRK/TIOCCBRK, TIOCMBIS/TIOCMBIC/TIOCMGET, termios members, sys/ioctl.h
  and termios.h includes) with PIP_HAS_TTY; O_NOCTTY replaced by
  PISERIAL_NOCTTY (0 on no-TTY targets)
- add missing #ifndef fallbacks for B110..B115200 used by convertSpeed()
  when termios.h is absent
- guard thread-only PIIODevice API calls (isThreadedRead/stopThreadedRead)
  with PIP_HAS_THREADS in closeDevice/readDevice
- gate the availableDevicesInfo() test loop with PIP_HAS_FILESYSTEM||WINDOWS
  (device enumeration is a filesystem feature)
- AGENTS.md: note that clang-format-18 is applied automatically on file edits
2026-08-31 18:27:09 +03:00
andrey 8e9ba0298e fix: guard RTTI/threads/filesystem dependent code for arbitrary flag combinations 2026-08-31 17:10:38 +03:00
andrey 14355ede0f Merge remote-tracking branch 'origin/master' into pico_sdk
# Conflicts:
#	libs/main/io_devices/pidir.cpp
#	libs/main/io_devices/pifile.cpp
#	libs/main/thread/pithread.cpp
2026-08-31 13:24:55 +03:00
andrey 5209dd5fd4 use KiB literals for default packet sizes 2026-08-31 13:01:37 +03:00
peri4 b1af66bee7 Merge pull request 'Support building with musl libc (Alpine Linux)' (#216) from alpine-musl-build into master
Reviewed-on: #216
2026-08-30 20:11:58 +03:00