Skip to content

Commit

Permalink
port: RP2040 SafeQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Jul 21, 2024
1 parent ea5cdbd commit 63a0833
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/port/choose.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
#define NDNPH_PORT_EC_CUSTOM
#define ESP8266NDN_PORT_EC_UECC

#define NDNPH_PORT_QUEUE_SIMPLE
#define NDNPH_PORT_QUEUE_CUSTOM
#define ESP8266NDN_PORT_QUEUE_FREERTOS

#else

Expand Down
6 changes: 6 additions & 0 deletions src/port/queue-freertos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
#include <cstdlib>
#include <tuple>

#if defined(ARDUINO_ARCH_RP2040)
#include <Arduino.h> // https://github.com/earlephilhower/arduino-pico/issues/2287
#include <FreeRTOS.h>
#include <queue.h>
#else
#include <freertos/FreeRTOS.h>
#include <freertos/queue.h>
#endif

namespace esp8266ndn {
namespace ndnph_port_freertos {
Expand Down

0 comments on commit 63a0833

Please sign in to comment.