Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Implement stub version of the Wii AV Encoder #10863

Draft
wants to merge 34 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a84cd15
Implement stub version of the Wii AV Encoder
Pokechu22 Jul 16, 2022
76767fc
WII_IPC: Correct comment
Pokechu22 Jul 27, 2022
143e4a8
Handle dir behavior better
Pokechu22 Jul 28, 2022
0f4dd96
Update GPIO constants
Pokechu22 Jul 28, 2022
25e31d1
More accurate I2C handling
Pokechu22 Aug 9, 2022
2ef84a4
Unindent
Pokechu22 Aug 9, 2022
08d973b
Specialized logging
Pokechu22 Aug 9, 2022
b53f6b0
Enhance Common::Flags
Pokechu22 Aug 9, 2022
7cea5b9
Use enhanced Common::Flags
Pokechu22 Aug 9, 2022
8a03b9f
One more enhance
Pokechu22 Aug 9, 2022
4135f4c
Start of reads
Pokechu22 Aug 10, 2022
6cff4c9
Refactoring
Pokechu22 Aug 26, 2022
156040b
More refactoring - no need for i2c_state in I2CBus functions
Pokechu22 Aug 26, 2022
3cbd4e2
A bit more refactoring
Pokechu22 Aug 27, 2022
7bb449d
Temp
Pokechu22 Aug 27, 2022
81b15a1
Adjust comment
Pokechu22 Aug 27, 2022
91574e0
Adjust comment further
Pokechu22 Aug 27, 2022
a45f21e
Still a WIP, but writes again work
Pokechu22 Aug 28, 2022
74f1ed4
Even more refactoring
Pokechu22 Aug 28, 2022
1ef7d90
Full implementation of reads and writes
Pokechu22 Aug 29, 2022
5f96484
Create Common/I2C
Pokechu22 Aug 30, 2022
669cff6
Move I2CBus logic into I2C.cpp (without refactoring for devices)
Pokechu22 Sep 3, 2022
6b21b41
Restructure device some
Pokechu22 Sep 4, 2022
89a5108
Actually use the device
Pokechu22 Sep 4, 2022
206b633
Temp, doesn't build
Pokechu22 Sep 6, 2022
63afdec
Revert "Temp, doesn't build"
Pokechu22 Sep 6, 2022
fb27428
More WIP reworking
Pokechu22 Sep 6, 2022
5893ea9
Mostly refactored again
Pokechu22 Sep 6, 2022
c553cd5
Refactoring finished; AVE working again
Pokechu22 Sep 6, 2022
0658170
Fix reads
Pokechu22 Sep 6, 2022
28b082f
One more fix
Pokechu22 Sep 6, 2022
e2defde
It builds!
Pokechu22 Sep 7, 2022
798c982
Typos
Pokechu22 Oct 4, 2022
612ed10
Build fix
Pokechu22 Sep 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Source/Core/Common/BitUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,26 @@ class Flags
{
public:
constexpr Flags() = default;
constexpr ~Flags() = default;
constexpr Flags(const Flags<T>& other) = default;
constexpr Flags(Flags<T>&& other) noexcept = default;
constexpr Flags<T>& operator=(const Flags<T>& other) = default;
constexpr Flags<T>& operator=(Flags<T>&& other) noexcept = default;

constexpr Flags(std::initializer_list<T> bits)
{
for (auto bit : bits)
{
m_hex |= static_cast<std::underlying_type_t<T>>(bit);
}
}
constexpr Flags(std::underlying_type_t<T> hex) : m_hex(hex) {}

FlagBit<T> operator[](T bit) { return FlagBit(m_hex, bit); }
constexpr bool operator[](T bit) const
{
return (m_hex & static_cast<std::underlying_type_t<T>>(bit)) != 0;
}

std::underlying_type_t<T> m_hex = 0;
};
Expand Down
2 changes: 2 additions & 0 deletions Source/Core/Common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ add_library(common
HostDisassembler.h
HttpRequest.cpp
HttpRequest.h
I2C.cpp
I2C.h
Image.cpp
Image.h
IniFile.cpp
Expand Down
Loading