device-os
device-os copied to clipboard
Device OS (Firmware) for Particle Devices
### Problem When `attachHandler` is called with a function pointer (or a pointer to a member function and instance), it allocates a `std::function`. When `detachHandler` is then called on the...
### Problem The existing unit test stubs do not include a definition for `system_thread_set_state`. I'm working on unit testing a Particle project and the lack of this stub causes the...
### Problem Attempting to compile for unit testing using Clang fails due to differences in the math headers with the errors below. ``` ERROR: /Users/andrew/code/arduino-particle-bazel-demo/particle/src/BUILD:3:17: Compiling src/particle-bazel-demo.cpp failed: (Aborted): wrapped_clang...
### Problem If the `lib` directory contains a normal file (in my case a Bazel BUILD file), local compilation with Particle Workbench fails with: ``` > Executing task: make -f...
### Problem If a custom buffer for i2c is used these functions will give libraries a better ability to determin the i2c buffer size. ### Solution Added two functions to...
There is a small typo in hal/src/electron/modem/mdm_hal.cpp. Should read `technology` rather than `tecnhology`. Semi-automated pull request generated by https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md
submission notes ``` **Important:** Please sanitize/remove any confidential info like usernames, passwords, org names, product names/ids, access tokens, client ids/secrets, or anything else you don't wish to share. Please Read...
### Problem The definition of `Stream::readBytes` is not fully Arduino-compliant: it [should accept both a `char*` and `uint8_t*` for its buffer pointer](https://www.arduino.cc/reference/en/language/functions/communication/serial/readbytes/). Particle's default compiler settings won't allow the cast...
### Problem The 'pulseIn' function has a static 3 second timeout, I added another version to mimic Arduino. This has third parameter that specifies the number of microseconds to wait...
The application binary interface between system firmware binary and user firmware binary called Dynalib is not currently described. This document is a start to describe the goals, implementation and rules...