Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added darwin support #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_binary_semaphore/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_binary_semaphore_no_except/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g -DCPP_FREERTOS_NO_EXCEPTIONS
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_condition_variables/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g -DCPP_FREERTOS_CONDITION_VARIABLES
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_condition_variables2/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g -DCPP_FREERTOS_CONDITION_VARIABLES
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g -DCPP_FREERTOS_CONDITION_VARIABLES
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
using namespace cpp_freertos;
using namespace std;

#define UNUSED(x) (void)(x)


//
// Simple implementation of a bounded queue, to demonstrate
Expand Down Expand Up @@ -204,6 +206,7 @@ class ConsumerThread : public Thread {
ConsumerThread(string name, int delay_seed)
: Thread(name, 100, 1), DelaySeed(delay_seed), runIterations(0)
{
UNUSED(DelaySeed);
//
// Now that construction is completed, we
// can safely start the thread.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g -DCPP_FREERTOS_CONDITION_VARIABLES
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_counting_semaphore/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_counting_semaphore_no_except/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g -DCPP_FREERTOS_NO_EXCEPTIONS
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_critical_section/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_delay_until/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_dynamic_tasks/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_dynamic_tasks_high_pri/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_mem_pools/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_mem_pools_add/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_mem_pools_static/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_mutex_recursive/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_mutex_recursive_no_except/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g -DCPP_FREERTOS_NO_EXCEPTIONS
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_mutex_standard/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_mutex_standard_no_except/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g -DCPP_FREERTOS_NO_EXCEPTIONS
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
2 changes: 1 addition & 1 deletion Linux/Demo/Linux_g++_queues_multiple_producers/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# information accuracy).
#
#############################################################################
include ../os_specific_linker_options.mk

FREERTOS_SRC_DIR=../../../../FreeRTOS/Source
FREERTOS_INC_DIR=../../../../FreeRTOS/Source/include
Expand All @@ -80,7 +81,6 @@ CXX = g++

CFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
CXXFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g
LDFLAGS += -Wall -Werror -Wextra -Wpedantic -pthread -O0 -g



Expand Down
Loading