summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2014-04-05 01:24:14 -0400
committerGravatar bunnei2014-04-05 01:24:14 -0400
commit6433f4d6f9c1fd0af4eb5689fe1e363584bb9d38 (patch)
treec0d561b08bceefe2e1006c7fc4576177cfd02435 /src
parentadded a module for interfacing to hardware LCD (diff)
downloadyuzu-6433f4d6f9c1fd0af4eb5689fe1e363584bb9d38.tar.gz
yuzu-6433f4d6f9c1fd0af4eb5689fe1e363584bb9d38.tar.xz
yuzu-6433f4d6f9c1fd0af4eb5689fe1e363584bb9d38.zip
added an "Update" method to update all hardware
Diffstat (limited to 'src')
-rw-r--r--src/core/src/hw/hw.cpp7
-rw-r--r--src/core/src/hw/hw.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/src/hw/hw.cpp b/src/core/src/hw/hw.cpp
index 3e4f2c435..50001c87a 100644
--- a/src/core/src/hw/hw.cpp
+++ b/src/core/src/hw/hw.cpp
@@ -24,6 +24,7 @@
24 24
25#include "log.h" 25#include "log.h"
26#include "hw/hw.h" 26#include "hw/hw.h"
27#include "hw/hw_lcd.h"
27 28
28namespace HW { 29namespace HW {
29 30
@@ -49,8 +50,14 @@ template void Write<const u32>(u32 addr, const u32 data);
49template void Write<const u16>(u32 addr, const u16 data); 50template void Write<const u16>(u32 addr, const u16 data);
50template void Write<const u8>(u32 addr, const u8 data); 51template void Write<const u8>(u32 addr, const u8 data);
51 52
53/// Update hardware
54void Update() {
55 LCD::Update();
56}
57
52/// Initialize hardware 58/// Initialize hardware
53void Init() { 59void Init() {
60 LCD::Init();
54 NOTICE_LOG(HW, "Hardware initialized OK"); 61 NOTICE_LOG(HW, "Hardware initialized OK");
55} 62}
56 63
diff --git a/src/core/src/hw/hw.h b/src/core/src/hw/hw.h
index c69d6525f..245822423 100644
--- a/src/core/src/hw/hw.h
+++ b/src/core/src/hw/hw.h
@@ -32,6 +32,9 @@ inline void Read(T &var, const u32 addr);
32template <typename T> 32template <typename T>
33inline void Write(u32 addr, const T data); 33inline void Write(u32 addr, const T data);
34 34
35/// Update hardware
36void Update();
37
35/// Initialize hardware 38/// Initialize hardware
36void Init(); 39void Init();
37 40