diff --git a/build/Makefile b/build/Makefile new file mode 100644 index 0000000..d665c8b --- /dev/null +++ b/build/Makefile @@ -0,0 +1,518 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build//CMakeFiles/progress.marks + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +#============================================================================= +# Target rules for targets named MockRegEdit + +# Build rule for target. +MockRegEdit: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 MockRegEdit +.PHONY : MockRegEdit + +# fast build rule for target. +MockRegEdit/fast: + $(MAKE) $(MAKESILENT) -f mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/build.make mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/build +.PHONY : MockRegEdit/fast + +#============================================================================= +# Target rules for targets named MockADC + +# Build rule for target. +MockADC: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 MockADC +.PHONY : MockADC + +# fast build rule for target. +MockADC/fast: + $(MAKE) $(MAKESILENT) -f mocks/MockADC/CMakeFiles/MockADC.dir/build.make mocks/MockADC/CMakeFiles/MockADC.dir/build +.PHONY : MockADC/fast + +#============================================================================= +# Target rules for targets named AllTests + +# Build rule for target. +AllTests: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 AllTests +.PHONY : AllTests + +# fast build rule for target. +AllTests/fast: + $(MAKE) $(MAKESILENT) -f tests/CMakeFiles/AllTests.dir/build.make tests/CMakeFiles/AllTests.dir/build +.PHONY : AllTests/fast + +#============================================================================= +# Target rules for targets named Mock_Tests + +# Build rule for target. +Mock_Tests: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 Mock_Tests +.PHONY : Mock_Tests + +# fast build rule for target. +Mock_Tests/fast: + $(MAKE) $(MAKESILENT) -f tests/CMakeFiles/Mock_Tests.dir/build.make tests/CMakeFiles/Mock_Tests.dir/build +.PHONY : Mock_Tests/fast + +#============================================================================= +# Target rules for targets named TriacTests + +# Build rule for target. +TriacTests: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 TriacTests +.PHONY : TriacTests + +# fast build rule for target. +TriacTests/fast: + $(MAKE) $(MAKESILENT) -f tests/CMakeFiles/TriacTests.dir/build.make tests/CMakeFiles/TriacTests.dir/build +.PHONY : TriacTests/fast + +#============================================================================= +# Target rules for targets named test_Enable + +# Build rule for target. +test_Enable: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 test_Enable +.PHONY : test_Enable + +# fast build rule for target. +test_Enable/fast: + $(MAKE) $(MAKESILENT) -f tests/Enable/CMakeFiles/test_Enable.dir/build.make tests/Enable/CMakeFiles/test_Enable.dir/build +.PHONY : test_Enable/fast + +#============================================================================= +# Target rules for targets named test_MockADC + +# Build rule for target. +test_MockADC: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 test_MockADC +.PHONY : test_MockADC + +# fast build rule for target. +test_MockADC/fast: + $(MAKE) $(MAKESILENT) -f tests/MockADC/CMakeFiles/test_MockADC.dir/build.make tests/MockADC/CMakeFiles/test_MockADC.dir/build +.PHONY : test_MockADC/fast + +#============================================================================= +# Target rules for targets named test_ADC + +# Build rule for target. +test_ADC: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 test_ADC +.PHONY : test_ADC + +# fast build rule for target. +test_ADC/fast: + $(MAKE) $(MAKESILENT) -f tests/ADC/CMakeFiles/test_ADC.dir/build.make tests/ADC/CMakeFiles/test_ADC.dir/build +.PHONY : test_ADC/fast + +#============================================================================= +# Target rules for targets named test_MockRegEdit + +# Build rule for target. +test_MockRegEdit: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 test_MockRegEdit +.PHONY : test_MockRegEdit + +# fast build rule for target. +test_MockRegEdit/fast: + $(MAKE) $(MAKESILENT) -f tests/MockRegEdit/CMakeFiles/test_MockRegEdit.dir/build.make tests/MockRegEdit/CMakeFiles/test_MockRegEdit.dir/build +.PHONY : test_MockRegEdit/fast + +#============================================================================= +# Target rules for targets named test_RegEdit + +# Build rule for target. +test_RegEdit: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 test_RegEdit +.PHONY : test_RegEdit + +# fast build rule for target. +test_RegEdit/fast: + $(MAKE) $(MAKESILENT) -f tests/RegEdit/CMakeFiles/test_RegEdit.dir/build.make tests/RegEdit/CMakeFiles/test_RegEdit.dir/build +.PHONY : test_RegEdit/fast + +#============================================================================= +# Target rules for targets named simple_test + +# Build rule for target. +simple_test: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 simple_test +.PHONY : simple_test + +# fast build rule for target. +simple_test/fast: + $(MAKE) $(MAKESILENT) -f tests/simple_test/CMakeFiles/simple_test.dir/build.make tests/simple_test/CMakeFiles/simple_test.dir/build +.PHONY : simple_test/fast + +#============================================================================= +# Target rules for targets named test_zero_cross_detection + +# Build rule for target. +test_zero_cross_detection: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 test_zero_cross_detection +.PHONY : test_zero_cross_detection + +# fast build rule for target. +test_zero_cross_detection/fast: + $(MAKE) $(MAKESILENT) -f tests/zero_cross_detection/CMakeFiles/test_zero_cross_detection.dir/build.make tests/zero_cross_detection/CMakeFiles/test_zero_cross_detection.dir/build +.PHONY : test_zero_cross_detection/fast + +#============================================================================= +# Target rules for targets named test_TriacOut + +# Build rule for target. +test_TriacOut: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 test_TriacOut +.PHONY : test_TriacOut + +# fast build rule for target. +test_TriacOut/fast: + $(MAKE) $(MAKESILENT) -f tests/TriacOut/CMakeFiles/test_TriacOut.dir/build.make tests/TriacOut/CMakeFiles/test_TriacOut.dir/build +.PHONY : test_TriacOut/fast + +#============================================================================= +# Target rules for targets named test_load + +# Build rule for target. +test_load: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 test_load +.PHONY : test_load + +# fast build rule for target. +test_load/fast: + $(MAKE) $(MAKESILENT) -f tests/load/CMakeFiles/test_load.dir/build.make tests/load/CMakeFiles/test_load.dir/build +.PHONY : test_load/fast + +#============================================================================= +# Target rules for targets named main + +# Build rule for target. +main: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 main +.PHONY : main + +# fast build rule for target. +main/fast: + $(MAKE) $(MAKESILENT) -f src/CMakeFiles/main.dir/build.make src/CMakeFiles/main.dir/build +.PHONY : main/fast + +#============================================================================= +# Target rules for targets named size + +# Build rule for target. +size: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 size +.PHONY : size + +# fast build rule for target. +size/fast: + $(MAKE) $(MAKESILENT) -f src/CMakeFiles/size.dir/build.make src/CMakeFiles/size.dir/build +.PHONY : size/fast + +#============================================================================= +# Target rules for targets named hex + +# Build rule for target. +hex: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 hex +.PHONY : hex + +# fast build rule for target. +hex/fast: + $(MAKE) $(MAKESILENT) -f src/CMakeFiles/hex.dir/build.make src/CMakeFiles/hex.dir/build +.PHONY : hex/fast + +#============================================================================= +# Target rules for targets named bin + +# Build rule for target. +bin: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 bin +.PHONY : bin + +# fast build rule for target. +bin/fast: + $(MAKE) $(MAKESILENT) -f src/CMakeFiles/bin.dir/build.make src/CMakeFiles/bin.dir/build +.PHONY : bin/fast + +#============================================================================= +# Target rules for targets named upload + +# Build rule for target. +upload: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 upload +.PHONY : upload + +# fast build rule for target. +upload/fast: + $(MAKE) $(MAKESILENT) -f src/CMakeFiles/upload.dir/build.make src/CMakeFiles/upload.dir/build +.PHONY : upload/fast + +#============================================================================= +# Target rules for targets named load + +# Build rule for target. +load: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 load +.PHONY : load + +# fast build rule for target. +load/fast: + $(MAKE) $(MAKESILENT) -f src/load/CMakeFiles/load.dir/build.make src/load/CMakeFiles/load.dir/build +.PHONY : load/fast + +#============================================================================= +# Target rules for targets named zero_cross_detection + +# Build rule for target. +zero_cross_detection: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 zero_cross_detection +.PHONY : zero_cross_detection + +# fast build rule for target. +zero_cross_detection/fast: + $(MAKE) $(MAKESILENT) -f src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/build.make src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/build +.PHONY : zero_cross_detection/fast + +#============================================================================= +# Target rules for targets named ADC + +# Build rule for target. +ADC: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 ADC +.PHONY : ADC + +# fast build rule for target. +ADC/fast: + $(MAKE) $(MAKESILENT) -f src/ADC/CMakeFiles/ADC.dir/build.make src/ADC/CMakeFiles/ADC.dir/build +.PHONY : ADC/fast + +#============================================================================= +# Target rules for targets named RegEdit + +# Build rule for target. +RegEdit: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 RegEdit +.PHONY : RegEdit + +# fast build rule for target. +RegEdit/fast: + $(MAKE) $(MAKESILENT) -f src/RegEdit/CMakeFiles/RegEdit.dir/build.make src/RegEdit/CMakeFiles/RegEdit.dir/build +.PHONY : RegEdit/fast + +#============================================================================= +# Target rules for targets named usart + +# Build rule for target. +usart: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 usart +.PHONY : usart + +# fast build rule for target. +usart/fast: + $(MAKE) $(MAKESILENT) -f src/usart/CMakeFiles/usart.dir/build.make src/usart/CMakeFiles/usart.dir/build +.PHONY : usart/fast + +#============================================================================= +# Target rules for targets named TriacOut + +# Build rule for target. +TriacOut: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 TriacOut +.PHONY : TriacOut + +# fast build rule for target. +TriacOut/fast: + $(MAKE) $(MAKESILENT) -f src/TriacOut/CMakeFiles/TriacOut.dir/build.make src/TriacOut/CMakeFiles/TriacOut.dir/build +.PHONY : TriacOut/fast + +#============================================================================= +# Target rules for targets named Enable + +# Build rule for target. +Enable: cmake_check_build_system + $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 Enable +.PHONY : Enable + +# fast build rule for target. +Enable/fast: + $(MAKE) $(MAKESILENT) -f src/Enable/CMakeFiles/Enable.dir/build.make src/Enable/CMakeFiles/Enable.dir/build +.PHONY : Enable/fast + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... bin" + @echo "... hex" + @echo "... size" + @echo "... upload" + @echo "... ADC" + @echo "... AllTests" + @echo "... Enable" + @echo "... MockADC" + @echo "... MockRegEdit" + @echo "... Mock_Tests" + @echo "... RegEdit" + @echo "... TriacOut" + @echo "... TriacTests" + @echo "... load" + @echo "... main" + @echo "... simple_test" + @echo "... test_ADC" + @echo "... test_Enable" + @echo "... test_MockADC" + @echo "... test_MockRegEdit" + @echo "... test_RegEdit" + @echo "... test_TriacOut" + @echo "... test_load" + @echo "... test_zero_cross_detection" + @echo "... usart" + @echo "... zero_cross_detection" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/mocks/Makefile b/build/mocks/Makefile new file mode 100644 index 0000000..26205cb --- /dev/null +++ b/build/mocks/Makefile @@ -0,0 +1,154 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/mocks//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/mocks/MockADC/Makefile b/build/mocks/MockADC/Makefile new file mode 100644 index 0000000..28bcebf --- /dev/null +++ b/build/mocks/MockADC/Makefile @@ -0,0 +1,196 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/mocks/MockADC//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/MockADC/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/MockADC/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/MockADC/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/MockADC/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +mocks/MockADC/CMakeFiles/MockADC.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/MockADC/CMakeFiles/MockADC.dir/rule +.PHONY : mocks/MockADC/CMakeFiles/MockADC.dir/rule + +# Convenience name for target. +MockADC: mocks/MockADC/CMakeFiles/MockADC.dir/rule +.PHONY : MockADC + +# fast build rule for target. +MockADC/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f mocks/MockADC/CMakeFiles/MockADC.dir/build.make mocks/MockADC/CMakeFiles/MockADC.dir/build +.PHONY : MockADC/fast + +MockADC.o: MockADC.c.o +.PHONY : MockADC.o + +# target to build an object file +MockADC.c.o: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f mocks/MockADC/CMakeFiles/MockADC.dir/build.make mocks/MockADC/CMakeFiles/MockADC.dir/MockADC.c.o +.PHONY : MockADC.c.o + +MockADC.i: MockADC.c.i +.PHONY : MockADC.i + +# target to preprocess a source file +MockADC.c.i: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f mocks/MockADC/CMakeFiles/MockADC.dir/build.make mocks/MockADC/CMakeFiles/MockADC.dir/MockADC.c.i +.PHONY : MockADC.c.i + +MockADC.s: MockADC.c.s +.PHONY : MockADC.s + +# target to generate assembly for a file +MockADC.c.s: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f mocks/MockADC/CMakeFiles/MockADC.dir/build.make mocks/MockADC/CMakeFiles/MockADC.dir/MockADC.c.s +.PHONY : MockADC.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... MockADC" + @echo "... MockADC.o" + @echo "... MockADC.i" + @echo "... MockADC.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/mocks/MockRegEdit/Makefile b/build/mocks/MockRegEdit/Makefile new file mode 100644 index 0000000..2210d67 --- /dev/null +++ b/build/mocks/MockRegEdit/Makefile @@ -0,0 +1,196 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/mocks/MockRegEdit//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/MockRegEdit/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/MockRegEdit/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/MockRegEdit/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/MockRegEdit/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/rule +.PHONY : mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/rule + +# Convenience name for target. +MockRegEdit: mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/rule +.PHONY : MockRegEdit + +# fast build rule for target. +MockRegEdit/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/build.make mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/build +.PHONY : MockRegEdit/fast + +MockRegEdit.o: MockRegEdit.c.o +.PHONY : MockRegEdit.o + +# target to build an object file +MockRegEdit.c.o: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/build.make mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/MockRegEdit.c.o +.PHONY : MockRegEdit.c.o + +MockRegEdit.i: MockRegEdit.c.i +.PHONY : MockRegEdit.i + +# target to preprocess a source file +MockRegEdit.c.i: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/build.make mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/MockRegEdit.c.i +.PHONY : MockRegEdit.c.i + +MockRegEdit.s: MockRegEdit.c.s +.PHONY : MockRegEdit.s + +# target to generate assembly for a file +MockRegEdit.c.s: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/build.make mocks/MockRegEdit/CMakeFiles/MockRegEdit.dir/MockRegEdit.c.s +.PHONY : MockRegEdit.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... MockRegEdit" + @echo "... MockRegEdit.o" + @echo "... MockRegEdit.i" + @echo "... MockRegEdit.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/src/ADC/Makefile b/build/src/ADC/Makefile new file mode 100644 index 0000000..873f4ae --- /dev/null +++ b/build/src/ADC/Makefile @@ -0,0 +1,196 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/src/ADC//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/ADC/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/ADC/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/ADC/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/ADC/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +src/ADC/CMakeFiles/ADC.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/ADC/CMakeFiles/ADC.dir/rule +.PHONY : src/ADC/CMakeFiles/ADC.dir/rule + +# Convenience name for target. +ADC: src/ADC/CMakeFiles/ADC.dir/rule +.PHONY : ADC + +# fast build rule for target. +ADC/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/ADC/CMakeFiles/ADC.dir/build.make src/ADC/CMakeFiles/ADC.dir/build +.PHONY : ADC/fast + +ADC.o: ADC.c.o +.PHONY : ADC.o + +# target to build an object file +ADC.c.o: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/ADC/CMakeFiles/ADC.dir/build.make src/ADC/CMakeFiles/ADC.dir/ADC.c.o +.PHONY : ADC.c.o + +ADC.i: ADC.c.i +.PHONY : ADC.i + +# target to preprocess a source file +ADC.c.i: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/ADC/CMakeFiles/ADC.dir/build.make src/ADC/CMakeFiles/ADC.dir/ADC.c.i +.PHONY : ADC.c.i + +ADC.s: ADC.c.s +.PHONY : ADC.s + +# target to generate assembly for a file +ADC.c.s: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/ADC/CMakeFiles/ADC.dir/build.make src/ADC/CMakeFiles/ADC.dir/ADC.c.s +.PHONY : ADC.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... ADC" + @echo "... ADC.o" + @echo "... ADC.i" + @echo "... ADC.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/src/Enable/Makefile b/build/src/Enable/Makefile new file mode 100644 index 0000000..0adf466 --- /dev/null +++ b/build/src/Enable/Makefile @@ -0,0 +1,196 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/src/Enable//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/Enable/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/Enable/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/Enable/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/Enable/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +src/Enable/CMakeFiles/Enable.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/Enable/CMakeFiles/Enable.dir/rule +.PHONY : src/Enable/CMakeFiles/Enable.dir/rule + +# Convenience name for target. +Enable: src/Enable/CMakeFiles/Enable.dir/rule +.PHONY : Enable + +# fast build rule for target. +Enable/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/Enable/CMakeFiles/Enable.dir/build.make src/Enable/CMakeFiles/Enable.dir/build +.PHONY : Enable/fast + +Enable.o: Enable.c.o +.PHONY : Enable.o + +# target to build an object file +Enable.c.o: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/Enable/CMakeFiles/Enable.dir/build.make src/Enable/CMakeFiles/Enable.dir/Enable.c.o +.PHONY : Enable.c.o + +Enable.i: Enable.c.i +.PHONY : Enable.i + +# target to preprocess a source file +Enable.c.i: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/Enable/CMakeFiles/Enable.dir/build.make src/Enable/CMakeFiles/Enable.dir/Enable.c.i +.PHONY : Enable.c.i + +Enable.s: Enable.c.s +.PHONY : Enable.s + +# target to generate assembly for a file +Enable.c.s: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/Enable/CMakeFiles/Enable.dir/build.make src/Enable/CMakeFiles/Enable.dir/Enable.c.s +.PHONY : Enable.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... Enable" + @echo "... Enable.o" + @echo "... Enable.i" + @echo "... Enable.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/src/Makefile b/build/src/Makefile new file mode 100644 index 0000000..fe41d03 --- /dev/null +++ b/build/src/Makefile @@ -0,0 +1,256 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/src//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +src/CMakeFiles/main.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/CMakeFiles/main.dir/rule +.PHONY : src/CMakeFiles/main.dir/rule + +# Convenience name for target. +main: src/CMakeFiles/main.dir/rule +.PHONY : main + +# fast build rule for target. +main/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/CMakeFiles/main.dir/build.make src/CMakeFiles/main.dir/build +.PHONY : main/fast + +# Convenience name for target. +src/CMakeFiles/size.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/CMakeFiles/size.dir/rule +.PHONY : src/CMakeFiles/size.dir/rule + +# Convenience name for target. +size: src/CMakeFiles/size.dir/rule +.PHONY : size + +# fast build rule for target. +size/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/CMakeFiles/size.dir/build.make src/CMakeFiles/size.dir/build +.PHONY : size/fast + +# Convenience name for target. +src/CMakeFiles/hex.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/CMakeFiles/hex.dir/rule +.PHONY : src/CMakeFiles/hex.dir/rule + +# Convenience name for target. +hex: src/CMakeFiles/hex.dir/rule +.PHONY : hex + +# fast build rule for target. +hex/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/CMakeFiles/hex.dir/build.make src/CMakeFiles/hex.dir/build +.PHONY : hex/fast + +# Convenience name for target. +src/CMakeFiles/bin.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/CMakeFiles/bin.dir/rule +.PHONY : src/CMakeFiles/bin.dir/rule + +# Convenience name for target. +bin: src/CMakeFiles/bin.dir/rule +.PHONY : bin + +# fast build rule for target. +bin/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/CMakeFiles/bin.dir/build.make src/CMakeFiles/bin.dir/build +.PHONY : bin/fast + +# Convenience name for target. +src/CMakeFiles/upload.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/CMakeFiles/upload.dir/rule +.PHONY : src/CMakeFiles/upload.dir/rule + +# Convenience name for target. +upload: src/CMakeFiles/upload.dir/rule +.PHONY : upload + +# fast build rule for target. +upload/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/CMakeFiles/upload.dir/build.make src/CMakeFiles/upload.dir/build +.PHONY : upload/fast + +main.o: main.c.o +.PHONY : main.o + +# target to build an object file +main.c.o: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/CMakeFiles/main.dir/build.make src/CMakeFiles/main.dir/main.c.o +.PHONY : main.c.o + +main.i: main.c.i +.PHONY : main.i + +# target to preprocess a source file +main.c.i: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/CMakeFiles/main.dir/build.make src/CMakeFiles/main.dir/main.c.i +.PHONY : main.c.i + +main.s: main.c.s +.PHONY : main.s + +# target to generate assembly for a file +main.c.s: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/CMakeFiles/main.dir/build.make src/CMakeFiles/main.dir/main.c.s +.PHONY : main.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... bin" + @echo "... hex" + @echo "... size" + @echo "... upload" + @echo "... main" + @echo "... main.o" + @echo "... main.i" + @echo "... main.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/src/RegEdit/Makefile b/build/src/RegEdit/Makefile new file mode 100644 index 0000000..037a353 --- /dev/null +++ b/build/src/RegEdit/Makefile @@ -0,0 +1,196 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/src/RegEdit//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/RegEdit/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/RegEdit/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/RegEdit/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/RegEdit/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +src/RegEdit/CMakeFiles/RegEdit.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/RegEdit/CMakeFiles/RegEdit.dir/rule +.PHONY : src/RegEdit/CMakeFiles/RegEdit.dir/rule + +# Convenience name for target. +RegEdit: src/RegEdit/CMakeFiles/RegEdit.dir/rule +.PHONY : RegEdit + +# fast build rule for target. +RegEdit/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/RegEdit/CMakeFiles/RegEdit.dir/build.make src/RegEdit/CMakeFiles/RegEdit.dir/build +.PHONY : RegEdit/fast + +RegEdit.o: RegEdit.c.o +.PHONY : RegEdit.o + +# target to build an object file +RegEdit.c.o: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/RegEdit/CMakeFiles/RegEdit.dir/build.make src/RegEdit/CMakeFiles/RegEdit.dir/RegEdit.c.o +.PHONY : RegEdit.c.o + +RegEdit.i: RegEdit.c.i +.PHONY : RegEdit.i + +# target to preprocess a source file +RegEdit.c.i: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/RegEdit/CMakeFiles/RegEdit.dir/build.make src/RegEdit/CMakeFiles/RegEdit.dir/RegEdit.c.i +.PHONY : RegEdit.c.i + +RegEdit.s: RegEdit.c.s +.PHONY : RegEdit.s + +# target to generate assembly for a file +RegEdit.c.s: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/RegEdit/CMakeFiles/RegEdit.dir/build.make src/RegEdit/CMakeFiles/RegEdit.dir/RegEdit.c.s +.PHONY : RegEdit.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... RegEdit" + @echo "... RegEdit.o" + @echo "... RegEdit.i" + @echo "... RegEdit.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/src/TriacOut/Makefile b/build/src/TriacOut/Makefile new file mode 100644 index 0000000..eb13c0c --- /dev/null +++ b/build/src/TriacOut/Makefile @@ -0,0 +1,196 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/src/TriacOut//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/TriacOut/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/TriacOut/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/TriacOut/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/TriacOut/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +src/TriacOut/CMakeFiles/TriacOut.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/TriacOut/CMakeFiles/TriacOut.dir/rule +.PHONY : src/TriacOut/CMakeFiles/TriacOut.dir/rule + +# Convenience name for target. +TriacOut: src/TriacOut/CMakeFiles/TriacOut.dir/rule +.PHONY : TriacOut + +# fast build rule for target. +TriacOut/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/TriacOut/CMakeFiles/TriacOut.dir/build.make src/TriacOut/CMakeFiles/TriacOut.dir/build +.PHONY : TriacOut/fast + +TriacOut.o: TriacOut.c.o +.PHONY : TriacOut.o + +# target to build an object file +TriacOut.c.o: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/TriacOut/CMakeFiles/TriacOut.dir/build.make src/TriacOut/CMakeFiles/TriacOut.dir/TriacOut.c.o +.PHONY : TriacOut.c.o + +TriacOut.i: TriacOut.c.i +.PHONY : TriacOut.i + +# target to preprocess a source file +TriacOut.c.i: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/TriacOut/CMakeFiles/TriacOut.dir/build.make src/TriacOut/CMakeFiles/TriacOut.dir/TriacOut.c.i +.PHONY : TriacOut.c.i + +TriacOut.s: TriacOut.c.s +.PHONY : TriacOut.s + +# target to generate assembly for a file +TriacOut.c.s: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/TriacOut/CMakeFiles/TriacOut.dir/build.make src/TriacOut/CMakeFiles/TriacOut.dir/TriacOut.c.s +.PHONY : TriacOut.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... TriacOut" + @echo "... TriacOut.o" + @echo "... TriacOut.i" + @echo "... TriacOut.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/src/load/Makefile b/build/src/load/Makefile new file mode 100644 index 0000000..7df3e5d --- /dev/null +++ b/build/src/load/Makefile @@ -0,0 +1,196 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/src/load//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/load/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/load/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/load/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/load/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +src/load/CMakeFiles/load.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/load/CMakeFiles/load.dir/rule +.PHONY : src/load/CMakeFiles/load.dir/rule + +# Convenience name for target. +load: src/load/CMakeFiles/load.dir/rule +.PHONY : load + +# fast build rule for target. +load/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/load/CMakeFiles/load.dir/build.make src/load/CMakeFiles/load.dir/build +.PHONY : load/fast + +load.o: load.c.o +.PHONY : load.o + +# target to build an object file +load.c.o: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/load/CMakeFiles/load.dir/build.make src/load/CMakeFiles/load.dir/load.c.o +.PHONY : load.c.o + +load.i: load.c.i +.PHONY : load.i + +# target to preprocess a source file +load.c.i: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/load/CMakeFiles/load.dir/build.make src/load/CMakeFiles/load.dir/load.c.i +.PHONY : load.c.i + +load.s: load.c.s +.PHONY : load.s + +# target to generate assembly for a file +load.c.s: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/load/CMakeFiles/load.dir/build.make src/load/CMakeFiles/load.dir/load.c.s +.PHONY : load.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... load" + @echo "... load.o" + @echo "... load.i" + @echo "... load.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/src/usart/Makefile b/build/src/usart/Makefile new file mode 100644 index 0000000..229e754 --- /dev/null +++ b/build/src/usart/Makefile @@ -0,0 +1,196 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/src/usart//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/usart/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/usart/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/usart/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/usart/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +src/usart/CMakeFiles/usart.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/usart/CMakeFiles/usart.dir/rule +.PHONY : src/usart/CMakeFiles/usart.dir/rule + +# Convenience name for target. +usart: src/usart/CMakeFiles/usart.dir/rule +.PHONY : usart + +# fast build rule for target. +usart/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/usart/CMakeFiles/usart.dir/build.make src/usart/CMakeFiles/usart.dir/build +.PHONY : usart/fast + +usart.o: usart.c.o +.PHONY : usart.o + +# target to build an object file +usart.c.o: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/usart/CMakeFiles/usart.dir/build.make src/usart/CMakeFiles/usart.dir/usart.c.o +.PHONY : usart.c.o + +usart.i: usart.c.i +.PHONY : usart.i + +# target to preprocess a source file +usart.c.i: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/usart/CMakeFiles/usart.dir/build.make src/usart/CMakeFiles/usart.dir/usart.c.i +.PHONY : usart.c.i + +usart.s: usart.c.s +.PHONY : usart.s + +# target to generate assembly for a file +usart.c.s: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/usart/CMakeFiles/usart.dir/build.make src/usart/CMakeFiles/usart.dir/usart.c.s +.PHONY : usart.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... usart" + @echo "... usart.o" + @echo "... usart.i" + @echo "... usart.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/build/src/zero_cross_detection/Makefile b/build/src/zero_cross_detection/Makefile new file mode 100644 index 0000000..7bf120d --- /dev/null +++ b/build/src/zero_cross_detection/Makefile @@ -0,0 +1,196 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.22 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Produce verbose output by default. +VERBOSE = 1 + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/ronin/Documents/projects/freelance/laith_naaman/High/build + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." + /usr/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." + /usr/bin/cmake-gui -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles /home/ronin/Documents/projects/freelance/laith_naaman/High/build/src/zero_cross_detection//CMakeFiles/progress.marks + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/zero_cross_detection/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/ronin/Documents/projects/freelance/laith_naaman/High/build/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/zero_cross_detection/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/zero_cross_detection/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/zero_cross_detection/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/rule: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/rule +.PHONY : src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/rule + +# Convenience name for target. +zero_cross_detection: src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/rule +.PHONY : zero_cross_detection + +# fast build rule for target. +zero_cross_detection/fast: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/build.make src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/build +.PHONY : zero_cross_detection/fast + +zero_cross_detection.o: zero_cross_detection.c.o +.PHONY : zero_cross_detection.o + +# target to build an object file +zero_cross_detection.c.o: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/build.make src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/zero_cross_detection.c.o +.PHONY : zero_cross_detection.c.o + +zero_cross_detection.i: zero_cross_detection.c.i +.PHONY : zero_cross_detection.i + +# target to preprocess a source file +zero_cross_detection.c.i: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/build.make src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/zero_cross_detection.c.i +.PHONY : zero_cross_detection.c.i + +zero_cross_detection.s: zero_cross_detection.c.s +.PHONY : zero_cross_detection.s + +# target to generate assembly for a file +zero_cross_detection.c.s: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(MAKE) $(MAKESILENT) -f src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/build.make src/zero_cross_detection/CMakeFiles/zero_cross_detection.dir/zero_cross_detection.c.s +.PHONY : zero_cross_detection.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... test" + @echo "... zero_cross_detection" + @echo "... zero_cross_detection.o" + @echo "... zero_cross_detection.i" + @echo "... zero_cross_detection.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /home/ronin/Documents/projects/freelance/laith_naaman/High/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/mocks/CMakeLists.txt b/mocks/CMakeLists.txt index 102aad0..7540514 100644 --- a/mocks/CMakeLists.txt +++ b/mocks/CMakeLists.txt @@ -1,5 +1,4 @@ add_subdirectory(MockRegEdit) -add_subdirectory(MockADC) diff --git a/mocks/MockADC/CMakeLists.txt b/mocks/MockADC/CMakeLists.txt deleted file mode 100644 index 36beae6..0000000 --- a/mocks/MockADC/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -add_library(MockADC STATIC - MockADC.c -) - -target_include_directories(MockADC PUBLIC - ${CMAKE_CURRENT_LIST_DIR} -) diff --git a/mocks/MockADC/MockADC.c b/mocks/MockADC/MockADC.c deleted file mode 100644 index dcf8f8f..0000000 --- a/mocks/MockADC/MockADC.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Author: username - * Date: 2024 - * filename: MockADC.c - * description: module_purpose - */ - -#include "MockADC.h" -#include "CppUTestExt/MockSupport_c.h" - -#define FAKESIZE 256 - -uint16_t fake_data[FAKESIZE]; -int fake_index = 0; - -static bool is_setup = false; - - - -void ADC_SetPin(uint8_t pin_num) -{ - return; -} - -void ADC_Setup(void) -{ - is_setup = true; - return; -} - -void ADC_Init(uint8_t pin_num) -{ - mock_c()->actualCall("ADC_Init") - ->withUnsignedIntParameters("pin_num", pin_num); -} - -void ADC_Enable(void) -{ - mock_c()->actualCall("ADC_Enable"); -} - -void ADC_Disable() -{ - mock_c()->actualCall("ADC_Disable"); -} - -uint16_t ADC_ReadValue_Impl(uint8_t pin_num) -{ - mock_c()->actualCall("ADC_ReadValue_Impl") - ->withUnsignedIntParameters("pin_num", pin_num); - - if(fake_index == 0){ - return 0; - } - return fake_data[--fake_index]; -} - -uint16_t (*ADC_ReadValue)(uint8_t pin_num) = ADC_ReadValue_Impl; - - -void MockADC_PushValue(uint16_t value){ - if(fake_index >= FAKESIZE - 1){ - return; - } - fake_data[fake_index++] = value; -} - - -void MockADC_ZeroIndex(void) -{ - fake_index = 0; -} - - -int MockADC_GetIndex(void) -{ - return fake_index; -} - - -bool MockADC_IsSetup(void) -{ - return is_setup; -} diff --git a/mocks/MockADC/MockADC.h b/mocks/MockADC/MockADC.h deleted file mode 100644 index 6c95934..0000000 --- a/mocks/MockADC/MockADC.h +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @brief PUT_TEXT_HERE - * @details This file is... - * @author username - * @date todays_date - * @copyright None - * @file MOCKADC.h - */ - -#ifndef MOCKADC_H -#define MOCKADC_H - -#include -#include - - -void ADC_Setup(void); -void ADC_SetPin(uint8_t pin_num); -void ADC_Init(uint8_t pin_num); -void ADC_Enable(void); -void ADC_Disable(void); - -extern uint16_t (*ADC_ReadValue)(uint8_t pin_num); - -void MockADC_PushValue(uint16_t value); -void MockADC_ZeroIndex(void); -int MockADC_GetIndex(void); -bool MockADC_IsSetup(void); - -#endif //MOCKADC_H diff --git a/src/ADC/ADC.c b/src/ADC/ADC.c deleted file mode 100644 index be0ff82..0000000 --- a/src/ADC/ADC.c +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Author: username - * Date: 2024 - * filename: ADC.c - * description: module_purpose - */ - -#ifndef __AVR_ATtiny404__ -#define __AVR_ATtiny404__ -#endif - -#include "ADC.h" -#include "RegEdit.h" -#include "avr/io.h" - -#define MAX_PIN_NUM 7 - -static bool IsInvalidPin(uint8_t pin_num){ - if(pin_num > MAX_PIN_NUM){ - return true; - } - return false; -} - - -void ADC_Setup(void) -{ - //Clears control register A for ADC0 - RegEdit_SetNum((void *) &ADC0.CTRLA, 0x00); - - //Sets The sample accumulation number to 32. - RegEdit_SetNum((void *) &ADC0.CTRLB, 0x5); - - //Sets the voltage reference to VDD or VCC. - RegEdit_SetBit((void *) &ADC0.CTRLC, 4); - - //Sets the pre-scalar for the adc sample rate. - RegEdit_SetBit((void *) &ADC0.CTRLC, 2); - - //Setup an Initalization delay. - RegEdit_OR_Num((void *) &ADC0.CTRLD, (2<<5)); - - //Set the bit for ADC variation during readings. - RegEdit_SetBit((void *) &ADC0.CTRLD, 4); -} - -void ADC_Init(uint8_t pin_num) -{ - - if(IsInvalidPin(pin_num)){return;} - - - //set the direction to input - RegEdit_ClearBit((void *) &PORTA.DIR, pin_num); - - //Disable the pull-up resistor - RegEdit_ClearBit((void *) &PORTA.OUT, pin_num); - - //Disable input buffer - //We do some kinda nasty address addition but it saves - //memory and means we don't need a switch statment. - RegEdit_SetBit( - (void *) (&PORTA.PIN0CTRL)+pin_num, - PORT_ISC_INPUT_DISABLE_gc - ); - -} - - -void ADC_Enable(void) -{ - //Set the enable bit in the CTRLA register - RegEdit_SetBit((void *) &ADC0.CTRLA, 0); -} - - -void ADC_Disable() -{ - //Clear the enable ADC flag - RegEdit_ClearBit((void *) &ADC0.CTRLA, 0); -} - - -void ADC_SetPin(uint8_t pin_num) -{ - if(IsInvalidPin(pin_num)){return;} - RegEdit_ClearRegister((void *) &ADC0.MUXPOS); - RegEdit_SetNum((void *) &ADC0.MUXPOS, pin_num); -} - - -uint16_t ADC_ReadValue_Impl(uint8_t pin_num) -{ - RegEdit_SetNum((void *) &ADC0.COMMAND, ADC_STCONV_bm); - - /* Wait until ADC conversion done */ - while ( !(ADC0.INTFLAGS & ADC_RESRDY_bm) ) - { - ; - } - - /* Clear the interrupt flag by writing 1: */ - ADC0.INTFLAGS = ADC_RESRDY_bm; - - uint16_t adc_val = (uint16_t) ADC0.RES; - adc_val = adc_val >> 5; - return adc_val; -} - - -//Set the default for the function pointer. -uint16_t (*ADC_ReadValue)(uint8_t pin_num) = ADC_ReadValue_Impl; diff --git a/src/ADC/ADC.h b/src/ADC/ADC.h deleted file mode 100644 index 3792eab..0000000 --- a/src/ADC/ADC.h +++ /dev/null @@ -1,74 +0,0 @@ -/** - * @brief Interface to the AVR ADC hardware. - * @details This file is... - * @author Jake G - * @date 2024 - * @copyright None - * @file ADC.h - */ - -#ifndef ADC_H -#define ADC_H - -#include -#include - - - -/** - * @brief Initializes the AVR hardware in order to accept - * Input for ADC usage. - * @param pin_num The number of the pin 0-7 you are initializing. - * - * This function only makes use of PORTA by default. It sets the direction - * register to input, disables the pull-up resistor and also diables interrupts - * alongside the input buffer(digital). - * - * This in turn helps reduce noise when using the ADC. - * - */ -void ADC_Init(uint8_t pin_num); - - -/** - * @brief Enables the ADC - */ -void ADC_Enable(void); - - -/** - * @brief Disables the ADC - */ -void ADC_Disable(); - - -/** - * @brief Reads ADC value into variable - * - * @param pin_num The bin number of the ADC pin being read. - * - * This function depends on the ADC already being initialized and enabled - * before being called. - */ -extern uint16_t (*ADC_ReadValue)(uint8_t pin_num); - -/** - * @brief Sets up the ADC - * - * This function sets up the ADC to take and accumulate 32 samples. It also - * sets the inital delay to 32 ADC clock cycles, and sets the VREF to VDD or - * VCC. - * - * This function should only need to be called once. - */ -void ADC_Setup(void); - - -/** - * @brief Sets the pin used in the MUX for ADC0. - * - * @param pin_num The number of the pin in Port A. - */ -void ADC_SetPin(uint8_t pin_num); - -#endif //ADC_H diff --git a/src/ADC/CMakeLists.txt b/src/ADC/CMakeLists.txt deleted file mode 100644 index 3b39d8c..0000000 --- a/src/ADC/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -add_library(ADC STATIC - ADC.c -) -target_include_directories(ADC PUBLIC - ${CMAKE_CURRENT_LIST_DIR} -) - -if(UNIT_TESTING) - target_link_libraries(ADC - MockRegEdit - ) - -else() - target_link_libraries(ADC - RegEdit - ) -endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a063b9c..d6c95f9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,11 +4,7 @@ add_executable(${PROJECT_NAME} target_link_libraries(${PROJECT_NAME} RegEdit - ADC - TriacOut - zero_cross_detection - load - Enable + timer ) # Ensure the build rules are defined @@ -49,11 +45,9 @@ add_custom_target(upload ALL endif() -add_subdirectory(load) -add_subdirectory(zero_cross_detection) -add_subdirectory(ADC) + + + add_subdirectory(RegEdit) add_subdirectory(usart) -add_subdirectory(TriacOut) -add_subdirectory(Enable) add_subdirectory(timer) diff --git a/src/Enable/CMakeLists.txt b/src/Enable/CMakeLists.txt deleted file mode 100644 index 6da8e33..0000000 --- a/src/Enable/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -add_library(Enable STATIC - Enable.c -) - -target_include_directories(Enable PUBLIC - ${CMAKE_CURRENT_LIST_DIR} -) - -if(UNIT_TESTING) - target_link_libraries(Enable - MockRegEdit - ) -else() - target_link_libraries(Enable - RegEdit - ) -endif() diff --git a/src/Enable/Enable.c b/src/Enable/Enable.c deleted file mode 100644 index 7f1771a..0000000 --- a/src/Enable/Enable.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Author: username - * Date: 2024 - * filename: Enable.c - * description: module_purpose - */ - -#ifndef __AVR_ATtiny404__ -#define __AVR_ATtiny404__ -#endif - -#include "Enable.h" -#include "avr/io.h" -#include "RegEdit.h" - - -void Enable_SetPinsHigh() -{ - RegEdit_SetBit((void *) &PORTA.DIR, EN1); - RegEdit_SetBit((void *) &PORTB.DIR, EN2); - RegEdit_SetBit((void *) &PORTB.DIR, EN3); - - RegEdit_SetBit((void *) &PORTA.OUT, EN1); - RegEdit_SetBit((void *) &PORTB.OUT, EN2); - RegEdit_SetBit((void *) &PORTB.OUT, EN3); - return; -} - - -void Enable_SetPinsLow() -{ - RegEdit_ClearBit((void *) &PORTA.OUT, EN1); - RegEdit_ClearBit((void *) &PORTB.OUT, EN2); - RegEdit_ClearBit((void *) &PORTB.OUT, EN3); - return; -} diff --git a/src/Enable/Enable.h b/src/Enable/Enable.h deleted file mode 100644 index 2ad78e4..0000000 --- a/src/Enable/Enable.h +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @brief PUT_TEXT_HERE - * @details This file is... - * @author username - * @date todays_date - * @copyright None - * @file ENABLE.h - */ - -#ifndef ENABLE -#define ENABLE - -#define EN1 2 -#define EN2 3 -#define EN3 2 - -/** - * Sets all the Enable pins high. - */ -void Enable_SetPinsHigh(); - -/** - * Sets all the Enable pins low. - */ -void Enable_SetPinsLow(); - - -#endif //ENABLE diff --git a/src/TriacOut/CMakeLists.txt b/src/TriacOut/CMakeLists.txt deleted file mode 100644 index 4959b70..0000000 --- a/src/TriacOut/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -add_library(TriacOut STATIC - TriacOut.c -) - -target_include_directories(TriacOut PUBLIC - ${CMAKE_CURRENT_LIST_DIR} -) - -if(UNIT_TESTING) - target_link_libraries(TriacOut - MockRegEdit - ) -else() - target_link_libraries(TriacOut - RegEdit - ) -endif() diff --git a/src/TriacOut/TriacOut.c b/src/TriacOut/TriacOut.c deleted file mode 100644 index 9e8fb06..0000000 --- a/src/TriacOut/TriacOut.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Author: username - * Date: todays_date - * filename: TriacOut.c - * description: module_purpose - */ -#ifndef __AVR_ATtiny404__ -#define __AVR_ATtiny404__ -#endif - - -#include -#include "TriacOut.h" -#include "RegEdit.h" - - -void TriacOut_InitTimerA(void) -{ - -} - -void TriacOut_SetupPins(void) -{ - RegEdit_SetBit((void *) &PORTA.DIR, G1); -} - - -void TriacOut_SetAllHigh(void) -{ - RegEdit_SetBit((void *) &PORTA.OUT, G1); -} - - - -void TriacOut_PulsePins(uint16_t pulse_time) -{ - Delay_MicroSeconds(pulse_time); - - RegEdit_ClearBit((void *) &PORTA.OUT, G1); -} diff --git a/src/TriacOut/TriacOut.h b/src/TriacOut/TriacOut.h deleted file mode 100644 index 87258c5..0000000 --- a/src/TriacOut/TriacOut.h +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @brief PUT_TEXT_HERE - * @details This file is... - * @author username - * @date todays_date - * @copyright None - * @file TriacOut.h - */ - -#ifndef TRIACOUT_H -#define TRIACOUT_H - -#include - - -#define G1 1 -#define G2 3 -#define G3 2 - -#define G1_BM (1<<1) -#define G2_BM (1<<3) -#define G3_BM (1<<2) - -extern void (*Delay_MicroSeconds)(double us); - - -/** - * A function that adds two to a number - * @param pulse_time The time in micro seconds. - * - * This function turns off G1, G2 and G3, once the passed time in micro seconds - * has elapsed the pins are all set to low. - */ -void TriacOut_PulsePins(uint16_t pulse_time); - -/** - * This sets up the G1, G2 and the G3 pins for output. - */ -void TriacOut_SetupPins(void); - -/** - * This sets G1, G2 and G3 to high on the output. - */ -void TriacOut_SetAllHigh(void); - - - -#endif //TRIACOUT_H diff --git a/src/load/CMakeLists.txt b/src/load/CMakeLists.txt deleted file mode 100644 index a61e227..0000000 --- a/src/load/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ -add_library(load STATIC - load.c -) -target_include_directories(load PUBLIC - ${CMAKE_CURRENT_LIST_DIR} -) - -if(UNIT_TESTING) - target_link_libraries(load - MockRegEdit - MockADC - ) -else() - target_link_libraries(load - RegEdit - ADC - ) -endif() diff --git a/src/load/load.c b/src/load/load.c deleted file mode 100644 index 6343875..0000000 --- a/src/load/load.c +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Author: Jake G - * Date: 2024 - * filename: load.c - * description: module_purpose - */ - -#ifndef __AVR_ATtiny404__ -#define __AVR_ATtiny404__ -#endif - - -#include -#include "load.h" - - -#ifndef UNIT_TESTING - #include "ADC.h" - #include "RegEdit.h" -#else - #include "MockADC/MockADC.h" - #include "MockRegEdit.h" -#endif - - - -void Load_HandleLoadPortA(uint8_t adc_pin, uint8_t out_pin) -{ - ADC_Init(adc_pin); - ADC_Enable(); - ADC_SetPin(adc_pin); - uint16_t val = ADC_ReadValue(adc_pin); - - ADC_Disable(); - if(val > 527 && val < 1000){ - RegEdit_SetBit((void *) &PORTA.DIR, out_pin); - RegEdit_SetBit((void *) &PORTA.OUT, out_pin); - } - else{ - RegEdit_ClearBit((void *) &PORTA.OUT, out_pin); - } -} - -void Load_HandleLoadPortB(uint8_t adc_pin, uint8_t out_pin) -{ - ADC_Init(adc_pin); - ADC_Enable(); - ADC_SetPin(adc_pin); - uint16_t val = ADC_ReadValue(adc_pin); - - ADC_Disable(); - if(val > 527 && val < 1000){ - RegEdit_SetBit((void *) &PORTB.DIR, out_pin); - RegEdit_SetBit((void *) &PORTB.OUT, out_pin); - } - else{ - RegEdit_ClearBit((void *) &PORTB.OUT, out_pin); - } -} diff --git a/src/load/load.h b/src/load/load.h deleted file mode 100644 index 1b3112f..0000000 --- a/src/load/load.h +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @brief Module for handling the ADC input from the load pins. - * @details This file holds the functions for reading the ADC values. - * @author Jake G - * @date 2024 - * @copyright None - * @file load.h - */ - -#ifndef LOAD_H -#define LOAD_H - -/** - * @brief Low Threshold - * - */ -#define LOWTHRESH 527 - -/** - * @brief High Threshold - * - */ -#define HIGHTHRESH 1000 - -void Load_HandleLoadPortA(uint8_t adc_pin, uint8_t out_pin); -void Load_HandleLoadPortB(uint8_t adc_pin, uint8_t out_pin); - -void Load_HandlePinLoads(void); - - -#endif /* LOAD_H */ - diff --git a/src/main.c b/src/main.c index f4be503..c13ad5d 100644 --- a/src/main.c +++ b/src/main.c @@ -16,8 +16,6 @@ #include "config.h" #include "RegEdit.h" -#include "zero_cross_detection.h" -#include "ADC.h" #include "timer.h" #include /* Required header file */ #include diff --git a/src/zero_cross_detection/CMakeLists.txt b/src/zero_cross_detection/CMakeLists.txt deleted file mode 100644 index e0db991..0000000 --- a/src/zero_cross_detection/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -add_library(zero_cross_detection STATIC - zero_cross_detection.c -) -target_include_directories(zero_cross_detection PUBLIC - ${CMAKE_CURRENT_LIST_DIR} -) - - -if(UNIT_TESTING) - target_link_libraries(zero_cross_detection - MockADC - ) -else() - target_link_libraries(zero_cross_detection - ADC - ) -endif() diff --git a/src/zero_cross_detection/zero_cross_detection.c b/src/zero_cross_detection/zero_cross_detection.c deleted file mode 100644 index 7b81e1e..0000000 --- a/src/zero_cross_detection/zero_cross_detection.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Author: Jake G - * Date: 2024 - * filename: zero_cross_detection.c - * description: - */ - -#include "zero_cross_detection.h" - -#define TRIGGERVAL 512 - -#ifndef UNIT_TESTING -#include "ADC.h" -#else -#include "MockADC/MockADC.h" -#endif - -#define ZCD_PIN 0x07 - -void ZCD_Setup(void) -{ - ADC_Init(ZCD_PIN); - ADC_SetPin(ZCD_PIN); - ADC_Enable(); -} - -bool ZCD_IsTriggered() -{ - uint16_t first, second; - ZCD_Setup(); - first = ADC_ReadValue(ZCD_PIN); - ADC_Disable(); - - ZCD_Setup(); - second = ADC_ReadValue(ZCD_PIN); - ADC_Disable(); - - if(second < TRIGGERVAL){ - return false; - } - if(second < first){ - return false; - } - return true; -} - -void ZCD_Poll(void) -{ - while(true){ - if(ZCD_IsTriggered()){ - break; - } - } -} diff --git a/src/zero_cross_detection/zero_cross_detection.h b/src/zero_cross_detection/zero_cross_detection.h deleted file mode 100644 index 16bf9af..0000000 --- a/src/zero_cross_detection/zero_cross_detection.h +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @file zero_cross_detection.h - * @author Jake G - * @date 16 June 2024 - * @brief File contains the zero cross detection functions - * - * This file holds all the code/functions needed to read the value of the AC - * waveform. It uses the trigger value from the `config.h` file to evaluate the - * state. - * - * This module depends on the ADC.h module to get readings from the ADC - * hardware. - */ - -#ifndef ZERO_CROSS_DETECTION -#define ZERO_CROSS_DETECTION - -#include -#include - -/** - * @brief Zero Cross Detection Setup - * - * Sets up the hardware to read the values coming from the AC input waveform. - * - */ -void ZCD_Setup(void); -//int ZCD_Setup(volatile uint8_t *ddrx, uint8_t *port, uint8_t pin); - - -/** - * @brief Checks if ZCD should trigger on value - * - * The function checks for a positive edge first using the ZCD_IsPositiveEdge - * function. If a positive edge was found, then it takes an addition set of - * samples and averages them; only triggering(returning true) in the case - * that the average is higher than the previous sample. - */ -bool ZCD_IsTriggered(void); - - -/** - * @brief Function blocks execution until ZCD is triggered. - * - */ -void ZCD_Poll(void); - - -#endif //ZERO_CROSS_DETECTION diff --git a/tests/ADC/CMakeLists.txt b/tests/ADC/CMakeLists.txt deleted file mode 100644 index 6318a53..0000000 --- a/tests/ADC/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -# TEST_RUNNER -add_library(test_ADC - test_ADC.cpp -) - -target_link_libraries(test_ADC - ${CPPUTEST_LIBRARIES}/libCppUTest.a - ${CPPUTEST_LIBRARIES}/libCppUTestExt.a - ADC - MockRegEdit -) - -#Needed for the tests to function -include_directories( - /usr/local/avr/include/avr - #/usr/lib/avr/include/avr -) diff --git a/tests/ADC/test_ADC.cpp b/tests/ADC/test_ADC.cpp deleted file mode 100644 index b9abb6a..0000000 --- a/tests/ADC/test_ADC.cpp +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Author: Jake G - * Date: 2024 - * filename: test_ADC.c - * description: module_purpose - */ - -#include "CppUTest/CommandLineTestRunner.h" -#include "CppUTestExt/MockSupport.h" -#include - -//This define allows us to dircetly include the device header without error. -#define _AVR_IO_H_ - - -extern "C" -{ -#include //ATtiny404 header fille. -#include "ADC.h" -} - -TEST_GROUP(test_ADC) -{ - void setup() - { - - } - void teardown() - { - mock().checkExpectations(); - mock().clear(); - } -}; - -TEST(test_ADC, FirstTest) -{ - CHECK(true); -} - - -TEST(test_ADC, ADC_SetupSetsRegisters) -{ - //Clears control register A for ADC0 - mock().expectOneCall("RegEdit_SetNum") - .withPointerParameter("reg", (void *) &ADC0.CTRLA) - .withUnsignedIntParameter("num", 0x00); - - //Sets The sample accumulation number to 32. - mock().expectOneCall("RegEdit_SetNum") - .withPointerParameter("reg", (void *) &ADC0.CTRLB) - .withUnsignedIntParameter("num", 0x5); - - //Sets the voltage reference to VDD or VCC. - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &ADC0.CTRLC) - .withUnsignedIntParameter("bit_num", 4); - - //Sets the pre-scalar for the adc sample rate. - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &ADC0.CTRLC) - .withUnsignedIntParameter("bit_num", 2); - - //Setup an Initalization delay. - mock().expectOneCall("RegEdit_OR_Num") - .withPointerParameter("reg", (void *) &ADC0.CTRLD) - .withUnsignedIntParameter("num", (2<<5)); - - //Set the bit for ADC variation during readings. - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &ADC0.CTRLD) - .withUnsignedIntParameter("bit_num", 4); - - ADC_Setup(); -} - -TEST(test_ADC, ADC_InitPortAPin7UsesCorrectRegisters) -{ - //Check for setting the direction to input. - mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &PORTA.DIR) - .withUnsignedIntParameter("bit_num", 7); - - //Check that the pullup is off - mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &PORTA.OUT) - .withUnsignedIntParameter("bit_num", 7); - - //Set the ISC(input sense config) to disable digital input - //buffering and reduce the noise on ADC usage. - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &PORTA.PIN7CTRL) - .withUnsignedIntParameter("bit_num", PORT_ISC_INPUT_DISABLE_gc); - - - ADC_Init(7); -} - -TEST(test_ADC, ADC_InitPortAPin0UsesCorrectRegisters) -{ - - //Check for setting the direction to input. - mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &PORTA.DIR) - .withUnsignedIntParameter("bit_num", 0); - - //Check that the pullup is off - mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &PORTA.OUT) - .withUnsignedIntParameter("bit_num", 0); - - //Set the ISC(input sense config) to disable digital input - //buffering and reduce the noise on ADC usage. - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &PORTA.PIN0CTRL) - .withUnsignedIntParameter("bit_num", PORT_ISC_INPUT_DISABLE_gc); - - - ADC_Init(0); -} - -TEST(test_ADC, ADC_InitDoesNothingOnHighPinNumbers) -{ - mock().expectNoCall("RegEdit_SetBit"); - ADC_Init(8); -} - -TEST(test_ADC, ADC_EnablePasses) -{ - - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &ADC0.CTRLA) - .withUnsignedIntParameter("bit_num", 0); - - ADC_Enable(); - -} - -TEST(test_ADC, ADC_DisablePasses) -{ - mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &ADC0.CTRLA) - .withUnsignedIntParameter("bit_num", 0); - - ADC_Disable(); -} - -TEST(test_ADC, ADC_SetPinSetsRightRegisters) -{ - //It clears existing MUXPOS register values. - mock().expectOneCall("RegEdit_ClearRegister") - .withPointerParameter("reg", (void *) &ADC0.MUXPOS); - - //It Correctly sets the pin number. - mock().expectOneCall("RegEdit_SetNum") - .withPointerParameter("reg", (void *) &ADC0.MUXPOS) - .withUnsignedIntParameter("num", 4); - - ADC_SetPin(4); -} - - -TEST(test_ADC, ADC_SetPinFailsOnInvalidPin) -{ - ADC_SetPin(8); -} - - -static uint16_t ADC_ReadValueFake(uint8_t pin_num) -{ - return 512; -} - -TEST_GROUP(test_ADCRead) -{ - void setup() - { - UT_PTR_SET(ADC_ReadValue, ADC_ReadValueFake); - } - - void teardown() - { - - } -}; - -TEST(test_ADCRead, FunctionPointerSwapWorks) -{ - uint16_t value = ADC_ReadValue(0); - - LONGS_EQUAL(512, value); -} - diff --git a/tests/AllTests.cpp b/tests/AllTests.cpp index 8c7a1c9..f760a18 100644 --- a/tests/AllTests.cpp +++ b/tests/AllTests.cpp @@ -3,9 +3,7 @@ //ImportTestGroups IMPORT_TEST_GROUP(simple_test); -IMPORT_TEST_GROUP(test_ADC); IMPORT_TEST_GROUP(test_RegEdit); -IMPORT_TEST_GROUP(test_Enable); //START: main diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b3ff326..90d9c38 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,16 +2,13 @@ project(Tests) # TEST_DIRS add_subdirectory(timer) -add_subdirectory(Enable) #add_subdirectory(usart) -add_subdirectory(MockADC) -add_subdirectory(ADC) add_subdirectory(MockRegEdit) add_subdirectory(RegEdit) add_subdirectory(simple_test) -add_subdirectory(zero_cross_detection) -add_subdirectory(TriacOut) -add_subdirectory(load) + + + # TEST_RUNNER @@ -24,8 +21,6 @@ target_link_libraries(AllTests ${CPPUTEST_LIBRARIES}/libCppUTestExt.a # TEST_LINKS test_timer - test_Enable - test_ADC test_RegEdit simple_test ) @@ -39,18 +34,4 @@ target_link_libraries(Mock_Tests ${CPPUTEST_LIBRARIES}/libCppUTest.a ${CPPUTEST_LIBRARIES}/libCppUTestExt.a test_MockRegEdit - test_MockADC - test_zero_cross_detection - test_load -) - - -add_executable(TriacTests - TriacTests.cpp -) - -target_link_libraries(TriacTests - ${CPPUTEST_LIBRARIES}/libCppUTest.a - ${CPPUTEST_LIBRARIES}/libCppUTestExt.a - test_TriacOut ) diff --git a/tests/Enable/CMakeLists.txt b/tests/Enable/CMakeLists.txt deleted file mode 100644 index 4a57728..0000000 --- a/tests/Enable/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -# TEST_RUNNER -add_library(test_Enable - test_Enable.cpp -) - -target_link_libraries(test_Enable - ${CPPUTEST_LIBRARIES}/libCppUTest.a - ${CPPUTEST_LIBRARIES}/libCppUTestExt.a - MockRegEdit - Enable -) diff --git a/tests/Enable/test_Enable.cpp b/tests/Enable/test_Enable.cpp deleted file mode 100644 index 2856986..0000000 --- a/tests/Enable/test_Enable.cpp +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Author: username - * Date: todays_date - * filename: test_Enable.c - * description: module_purpose - */ - - - -#include "CppUTest/CommandLineTestRunner.h" -#include "CppUTestExt/MockSupport.h" - -//This define allows us to dircetly include the device header without error. -#define _AVR_IO_H_ - -extern "C" -{ -#include -#include "Enable.h" -#include "MockRegEdit.h" -} - -TEST_GROUP(test_Enable) -{ - void setup() - { - - } - void teardown() - { - mock().checkExpectations(); - mock().clear(); - } -}; - - -TEST(test_Enable, SetEnablePinsHighCallsCorrectFuncs) -{ - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &PORTA.DIR) - .withUnsignedIntParameter("bit_num", EN1); - - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &PORTB.DIR) - .withUnsignedIntParameter("bit_num", EN2); - - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &PORTB.DIR) - .withUnsignedIntParameter("bit_num", EN3); - - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &PORTA.OUT) - .withUnsignedIntParameter("bit_num", EN1); - - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &PORTB.OUT) - .withUnsignedIntParameter("bit_num", EN2); - - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &PORTB.OUT) - .withUnsignedIntParameter("bit_num", EN3); - - Enable_SetPinsHigh(); -} - -TEST(test_Enable, SetEnablePinsLow) -{ - - mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &PORTA.OUT) - .withUnsignedIntParameter("bit_num", EN1); - - mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &PORTB.OUT) - .withUnsignedIntParameter("bit_num", EN2); - - mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &PORTB.OUT) - .withUnsignedIntParameter("bit_num", EN3); - - Enable_SetPinsLow(); -} - - diff --git a/tests/MockADC/CMakeLists.txt b/tests/MockADC/CMakeLists.txt deleted file mode 100644 index cd51613..0000000 --- a/tests/MockADC/CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ -# TEST_RUNNER -add_library(test_MockADC - test_MockADC.cpp -) - -target_link_libraries(test_MockADC - ${CPPUTEST_LIBRARIES}/libCppUTest.a - ${CPPUTEST_LIBRARIES}/libCppUTestExt.a - MockADC -) diff --git a/tests/MockADC/test_MockADC.cpp b/tests/MockADC/test_MockADC.cpp deleted file mode 100644 index 8b0b5ee..0000000 --- a/tests/MockADC/test_MockADC.cpp +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Author: Jake G - * Date: 2024 - * filename: test_MockADC.c - * description: - */ - -#include "CppUTest/CommandLineTestRunner.h" -#include "CppUTestExt/MockSupport.h" -#include - -extern "C" -{ -#include "MockADC.h" -} - -TEST_GROUP(test_MockADC) -{ - void setup() - { - - } - void teardown() - { - mock().checkExpectations(); - mock().clear(); - } -}; - -TEST(test_MockADC, ADC_InitExpects) -{ - mock().expectOneCall("ADC_Init") - .withUnsignedIntParameter("pin_num", 7); - - ADC_Init(7); -} - -TEST(test_MockADC, ADC_EnableExpects) -{ - mock().expectOneCall("ADC_Enable"); - - ADC_Enable(); -} - - -TEST(test_MockADC, ADC_DisableExpect) -{ - mock().expectOneCall("ADC_Disable"); - - ADC_Disable(); -} - -TEST(test_MockADC, ADC_ReadValue) -{ - MockADC_ZeroIndex(); - MockADC_PushValue(512); - - mock().expectOneCall("ADC_ReadValue_Impl") - .withUnsignedIntParameter("pin_num", 0x2); - - uint16_t val = ADC_ReadValue(0x2); - LONGS_EQUAL(512, val); - -} - -TEST(test_MockADC, ADC_ReadValueReturnsZeroOnEmptyBuffer) -{ - MockADC_ZeroIndex(); - - mock().expectOneCall("ADC_ReadValue_Impl") - .withUnsignedIntParameter("pin_num", 0x2) - .andReturnValue(0x0000); - - uint16_t val = ADC_ReadValue(0x2); - LONGS_EQUAL(0, val); -} - -TEST(test_MockADC, MockADC_PushValueDoesntOverflowArray) -{ - MockADC_ZeroIndex(); - for(int i = 0; i < 257; i++){ - MockADC_PushValue(512+i); - CHECK_TRUE(MockADC_GetIndex() <= 255); - } -} - -TEST(test_MockADC, MockADC_SetupSetsGlobal) -{ - CHECK_FALSE(MockADC_IsSetup()); - - ADC_Setup(); - - CHECK_TRUE(MockADC_IsSetup()); -} diff --git a/tests/MockTests.cpp b/tests/MockTests.cpp index ff2ebee..d2085ad 100644 --- a/tests/MockTests.cpp +++ b/tests/MockTests.cpp @@ -3,9 +3,6 @@ //ImportTestGroups IMPORT_TEST_GROUP(test_MockRegEdit); -IMPORT_TEST_GROUP(test_MockADC); -IMPORT_TEST_GROUP(test_zero_cross_detection); -IMPORT_TEST_GROUP(test_load); //START: main int main(int argc, char** argv) diff --git a/tests/TriacOut/CMakeLists.txt b/tests/TriacOut/CMakeLists.txt deleted file mode 100644 index 40442bf..0000000 --- a/tests/TriacOut/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -# TEST_RUNNER -add_library(test_TriacOut - test_TriacOut.cpp -) - -target_link_libraries(test_TriacOut - ${CPPUTEST_LIBRARIES}/libCppUTest.a - ${CPPUTEST_LIBRARIES}/libCppUTestExt.a - MockRegEdit - TriacOut -) - diff --git a/tests/TriacOut/test_TriacOut.cpp b/tests/TriacOut/test_TriacOut.cpp deleted file mode 100644 index 4e85ba3..0000000 --- a/tests/TriacOut/test_TriacOut.cpp +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Author: username - * Date: todays_date - * filename: test_TriacOut.c - * description: module_purpose - */ - -#include "CppUTest/CommandLineTestRunner.h" -#include "CppUTestExt/MockSupport.h" - -//This define allows us to dircetly include the device header without error. -#define _AVR_IO_H_ - -extern "C" -{ -#include -#include "TriacOut.h" -#include "MockRegEdit.h" -} - - -void FakeDelay(double us) -{ - //do Nothing. -} - -void (*Delay_MicroSeconds)(double us) = FakeDelay; - - -TEST_GROUP(test_TriacOut) -{ - void setup() - { - //UT_PTR_SET(Delay_MicroSeconds, FakeDelay); - } - void teardown() - { - mock().checkExpectations(); - mock().clear(); - } -}; - -TEST(test_TriacOut, FirstTest) -{ - //FAIL("Fail me!"); - CHECK(true); -} - -TEST(test_TriacOut, TriacOut_SetupPins) -{ - //Expect that pin PA1 is set to output - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &PORTA.DIR) - .withUnsignedIntParameter("bit_num", G1); - - - TriacOut_SetupPins(); -} - - -TEST(test_TriacOut, TriacOut_SetAllHigh) -{ - //Expect that pin PA1 is set to output - mock().expectOneCall("RegEdit_SetBit") - .withPointerParameter("reg", (void *) &PORTA.OUT) - .withUnsignedIntParameter("bit_num", G1); - - TriacOut_SetAllHigh(); -} - -TEST(test_TriacOut, TriacOut_PulsePins) -{ - - //Expect that pin PA1 is set to output - mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &PORTA.OUT) - .withUnsignedIntParameter("bit_num", G1); - - TriacOut_PulsePins(1000); -} diff --git a/tests/TriacTests.cpp b/tests/TriacTests.cpp deleted file mode 100644 index 6d54b12..0000000 --- a/tests/TriacTests.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "CppUTest/CommandLineTestRunner.h" - -IMPORT_TEST_GROUP(test_TriacOut); - - -//START: main -int main(int argc, char** argv) -{ - return RUN_ALL_TESTS(argc, argv); -} -//END: main diff --git a/tests/load/CMakeLists.txt b/tests/load/CMakeLists.txt deleted file mode 100644 index f33cce9..0000000 --- a/tests/load/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -# TEST_RUNNER -add_library(test_load - test_load.cpp -) - -target_link_libraries(test_load - ${CPPUTEST_LIBRARIES}/libCppUTest.a - ${CPPUTEST_LIBRARIES}/libCppUTestExt.a - load - MockADC - MockRegEdit -) diff --git a/tests/load/test_load.cpp b/tests/load/test_load.cpp deleted file mode 100644 index 72fd3a9..0000000 --- a/tests/load/test_load.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Author: Jake G - * Date: 2024 - * filename: test_load.cpp - * description: - */ - -#include "CppUTest/CommandLineTestRunner.h" -#include "CppUTestExt/MockSupport.h" -#include - - -//This define allows us to dircetly include the device header without error. -#define _AVR_IO_H_ - -extern "C" -{ -#include //ATtiny404 header fille. -#include "load.h" -#include "MockADC.h" -#include "MockADC.h" -} - -TEST_GROUP(test_load) -{ - void setup() - { - - } - void teardown() - { - mock().checkExpectations(); - mock().clear(); - } -}; - -TEST(test_load, LoadPass) -{ - CHECK_TRUE(true); -} - -TEST(test_load, PortAHandlerSuccess) -{ - mock().expectOneCall("ADC_Init") - .withUnsignedIntParameter("pin_num", 4); - - mock().expectOneCall("ADC_Enable"); - mock().expectOneCall("ADC_ReadValue_Impl") - .withUnsignedIntParameter("pin_num", 4); - mock().expectOneCall("ADC_Disable"); - mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &PORTA.OUT) - .withUnsignedIntParameter("bit_num", 7); - - Load_HandleLoadPortA(4, 7); -} diff --git a/tests/zero_cross_detection/CMakeLists.txt b/tests/zero_cross_detection/CMakeLists.txt deleted file mode 100644 index c9ab4a3..0000000 --- a/tests/zero_cross_detection/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -# TEST_RUNNER -add_library(test_zero_cross_detection - test_zero_cross_detection.cpp -) - -target_link_libraries(test_zero_cross_detection - ${CPPUTEST_LIBRARIES}/libCppUTest.a - ${CPPUTEST_LIBRARIES}/libCppUTestExt.a - zero_cross_detection - MockADC -) diff --git a/tests/zero_cross_detection/test_zero_cross_detection.cpp b/tests/zero_cross_detection/test_zero_cross_detection.cpp deleted file mode 100644 index 2b7d6e5..0000000 --- a/tests/zero_cross_detection/test_zero_cross_detection.cpp +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Author: username - * Date: todays_date - * filename: test_zero_cross_detection.c - * description: module_purpose - */ - -#include "CppUTest/CommandLineTestRunner.h" -#include "CppUTest/TestFailure.h" -#include "CppUTest/TestPlugin.h" -#include "CppUTest/UtestMacros.h" -#include "CppUTestExt/MockSupport.h" -#include - -extern "C" -{ -#include "MockADC.h" -#include "zero_cross_detection.h" -} - -TEST_GROUP(test_zero_cross_detection) -{ - - void setup() - { - - } - void teardown() - { - mock().checkExpectations(); - mock().clear(); - } -}; - - -static void ZCDSetupExpectations(void) -{ - mock().expectOneCall("ADC_Init") - .withUnsignedIntParameter("pin_num", 7); - - mock().expectOneCall("ADC_Enable"); -} - - -static void PollIterationExpectations(void) -{ - ZCDSetupExpectations(); - - mock().expectOneCall("ADC_ReadValue_Impl") - .withUnsignedIntParameter("pin_num", 7) - .ignoreOtherParameters(); - - mock().expectOneCall("ADC_Disable"); - - ZCDSetupExpectations(); - - mock().expectOneCall("ADC_ReadValue_Impl") - .withUnsignedIntParameter("pin_num", 7) - .ignoreOtherParameters(); - - mock().expectOneCall("ADC_Disable"); -} - - -TEST(test_zero_cross_detection, ZCD_SetupCallsCorrectFuncs) -{ - ZCDSetupExpectations(); - - ZCD_Setup(); -} - - -TEST(test_zero_cross_detection, ZCD_IsTriggeredCallsCorrectFunctions) -{ - MockADC_ZeroIndex(); - - PollIterationExpectations(); - - CHECK_FALSE(ZCD_IsTriggered()); -} - - -TEST(test_zero_cross_detection, ZCD_IsTriggerdTrueWhenRising) -{ - MockADC_ZeroIndex(); - - MockADC_PushValue(512); - MockADC_PushValue(450); - - PollIterationExpectations(); - - CHECK_TRUE(ZCD_IsTriggered()); -} - - -TEST(test_zero_cross_detection, ZCD_PollWorksAfterCalls) -{ - MockADC_ZeroIndex(); - - MockADC_PushValue(512); - MockADC_PushValue(450); - MockADC_PushValue(50); - MockADC_PushValue(50); - - PollIterationExpectations(); - PollIterationExpectations(); - - ZCD_Poll(); -} - -