Skip to content

Commit

Permalink
Fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickKa committed Sep 22, 2024
1 parent 30e8bce commit 72db7b8
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 19 deletions.
8 changes: 8 additions & 0 deletions Sts1CobcSw/CobcSoftware/SpiStartupTestAndSupervisorThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@
#include <Sts1CobcSw/Utility/Debug.hpp>
#include <Sts1CobcSw/Utility/ErrorDetectionAndCorrection.hpp>
#include <Sts1CobcSw/Utility/Time.hpp>
#include <Sts1CobcSw/Utility/TimeTypes.hpp>

#include <strong_type/affine_point.hpp>
#include <strong_type/difference.hpp>
#include <strong_type/ordered.hpp>
#include <strong_type/type.hpp>

#include <rodos_no_using_namespace.h>

#include <compare>


namespace sts1cobcsw
{
Expand Down
2 changes: 2 additions & 0 deletions Sts1CobcSw/FileSystem/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <Sts1CobcSw/Serial/Byte.hpp>
#include <Sts1CobcSw/Utility/Time.hpp>

#include <strong_type/difference.hpp>

#include <rodos_no_using_namespace.h>

#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion Sts1CobcSw/FileSystem/LfsFlash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <Sts1CobcSw/Serial/Byte.hpp>
#include <Sts1CobcSw/Utility/Time.hpp>

#include <rodos_no_using_namespace.h>
#include <strong_type/difference.hpp>

#include <algorithm>
#include <span>
Expand Down
3 changes: 1 addition & 2 deletions Sts1CobcSw/FramSections/PersistentVariables.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
#include <Sts1CobcSw/FramSections/Section.hpp>
#include <Sts1CobcSw/FramSections/Subsections.hpp>
#include <Sts1CobcSw/Periphery/Fram.hpp>
#include <Sts1CobcSw/Utility/TimeTypes.hpp>

#include <rodos/api/rodos-semaphore.h>
#include <rodos/api/timemodel.h>

#include <optional>

#include "Sts1CobcSw/Utility/TimeTypes.hpp"


namespace sts1cobcsw
{
Expand Down
2 changes: 2 additions & 0 deletions Sts1CobcSw/Hal/Spi.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <Sts1CobcSw/Hal/IoNames.hpp>
#include <Sts1CobcSw/Hal/Spi.hpp>

#include <strong_type/affine_point.hpp>

#include <rodos_no_using_namespace.h>

#include <etl/vector.h>
Expand Down
1 change: 0 additions & 1 deletion Sts1CobcSw/Hal/Spi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include <cstddef>
#include <cstdint>
#include <memory>
#include <span>


Expand Down
2 changes: 1 addition & 1 deletion Sts1CobcSw/Periphery/Eps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <Sts1CobcSw/Utility/Span.hpp>
#include <Sts1CobcSw/Utility/Time.hpp>

#include <rodos_no_using_namespace.h>
#include <strong_type/difference.hpp>

#include <bit>
#include <cstddef>
Expand Down
5 changes: 4 additions & 1 deletion Sts1CobcSw/Periphery/Flash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
#include <Sts1CobcSw/Utility/Span.hpp>
#include <Sts1CobcSw/Utility/Time.hpp>

#include <rodos_no_using_namespace.h>
#include <strong_type/affine_point.hpp>
#include <strong_type/difference.hpp>
#include <strong_type/ordered.hpp>

#include <array>
#include <bit>
#include <compare>


namespace sts1cobcsw
Expand Down
8 changes: 2 additions & 6 deletions Sts1CobcSw/Periphery/FlashMock.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#include <Sts1CobcSw/Outcome/Outcome.hpp>
#include <Sts1CobcSw/Periphery/FlashMock.hpp>
#include <Sts1CobcSw/Utility/Time.hpp>

#include <strong_type/type.hpp>

#include <cstring>


namespace sts1cobcsw::flash
Expand Down Expand Up @@ -181,4 +177,4 @@ auto DoActualBaudRate() -> std::int32_t
return 0;
}
}
}
}
7 changes: 1 addition & 6 deletions Sts1CobcSw/Periphery/FlashMock.hpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
#pragma once


#include <Sts1CobcSw/Hal/Spi.hpp>
#include <Sts1CobcSw/Outcome/Outcome.hpp>
#include <Sts1CobcSw/Periphery/Flash.hpp>
#include <Sts1CobcSw/Serial/Byte.hpp>
#include <Sts1CobcSw/Utility/Time.hpp>
#include <Sts1CobcSw/Utility/TimeTypes.hpp>

#include <array>
#include <cstddef>
#include <cstdint>
#include <span>


namespace sts1cobcsw::flash
Expand Down
2 changes: 1 addition & 1 deletion Sts1CobcSw/Periphery/Rf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <Sts1CobcSw/Utility/Span.hpp>
#include <Sts1CobcSw/Utility/Time.hpp>

#include <rodos_no_using_namespace.h>
#include <strong_type/difference.hpp>

#include <array>
#include <bit>
Expand Down
5 changes: 5 additions & 0 deletions Tests/HardwareTests/Flash.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
#include <Sts1CobcSw/Periphery/Flash.hpp>
#include <Sts1CobcSw/Serial/Byte.hpp>
#include <Sts1CobcSw/Utility/Time.hpp>
#include <Sts1CobcSw/Utility/TimeTypes.hpp>

#include <strong_type/affine_point.hpp>
#include <strong_type/difference.hpp>
#include <strong_type/type.hpp>

#include <rodos_no_using_namespace.h>

Expand Down
1 change: 1 addition & 0 deletions Tests/HardwareTests/Fram.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <Sts1CobcSw/Utility/Span.hpp>
#include <Sts1CobcSw/Utility/TimeTypes.hpp>

#include <strong_type/difference.hpp>
#include <strong_type/type.hpp>

#include <rodos/support/support-libs/random.h>
Expand Down
2 changes: 2 additions & 0 deletions Tests/HardwareTests/SpiSupervisor.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <Sts1CobcSw/Utility/Span.hpp>
#include <Sts1CobcSw/Utility/Time.hpp>

#include <strong_type/difference.hpp>

#include <rodos/support/support-libs/random.h>
#include <rodos_no_using_namespace.h>

Expand Down
2 changes: 2 additions & 0 deletions Tests/UnitTests/Fram.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_adapters.hpp>
#include <catch2/generators/catch_generators_random.hpp>
#include <strong_type/difference.hpp>
#include <strong_type/type.hpp>

#include <algorithm>
#include <array>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions Tests/UnitTests/PersistentVariables.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <strong_type/difference.hpp>
#include <strong_type/type.hpp>

#include <algorithm>
#include <array>
#include <cstdint>
#include <type_traits>
Expand Down

0 comments on commit 72db7b8

Please sign in to comment.