Skip to content

Commit

Permalink
ghostl, incl. circular_queue, has been moved from multiple copy&paste…
Browse files Browse the repository at this point in the history
… inclusions in various repos into an own repo to use as separate library dependency
  • Loading branch information
dok-net committed Jan 4, 2024
1 parent b65fda0 commit 98c6f70
Show file tree
Hide file tree
Showing 19 changed files with 9 additions and 5,149 deletions.
6 changes: 5 additions & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@
],
"license": "LGPL-2.1+",
"frameworks": "arduino",
"platforms": "*"
"platforms": "*",
"dependencies":
{
"dok-net/ghostl": "^1.0.0"
}
}
1 change: 1 addition & 0 deletions library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ paragraph=Run multiple concurrent setup()/loop() tasks in Arduino sketches. Use
category=Timing
url=https://github.com/dok-net/CoopTask
architectures=*
depends=ghostl(>=1.0.0)
2 changes: 1 addition & 1 deletion src/CoopSemaphore.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define __CoopSemaphore_h

#include "CoopTaskBase.h"
#include "circular_queue/circular_queue.h"
#include <circular_queue.h>

/// A semaphore that is safe to use from CoopTasks.
/// Only post() is safe to use from interrupt service routines,
Expand Down
4 changes: 2 additions & 2 deletions src/CoopTaskBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define ESP32_FREERTOS
#endif

#include "circular_queue/Delegate.h"
#include <Delegate.h>
#if defined(ESP8266) || defined(ESP32)
#include <array>
#include <memory>
Expand All @@ -46,7 +46,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#if !defined(ARDUINO) || defined(ESP8266) || defined(ESP32)
#include <atomic>
#else
#include "circular_queue/ghostl.h"
#include <ghostl.h>
#endif

#if !defined(ESP32) && !defined(ESP8266)
Expand Down
Loading

0 comments on commit 98c6f70

Please sign in to comment.