From 6433f4d6f9c1fd0af4eb5689fe1e363584bb9d38 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sat, 5 Apr 2014 01:24:14 -0400 Subject: added an "Update" method to update all hardware --- src/core/src/hw/hw.cpp | 7 +++++++ src/core/src/hw/hw.h | 3 +++ 2 files changed, 10 insertions(+) (limited to 'src/core') 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 @@ #include "log.h" #include "hw/hw.h" +#include "hw/hw_lcd.h" namespace HW { @@ -49,8 +50,14 @@ template void Write(u32 addr, const u32 data); template void Write(u32 addr, const u16 data); template void Write(u32 addr, const u8 data); +/// Update hardware +void Update() { + LCD::Update(); +} + /// Initialize hardware void Init() { + LCD::Init(); NOTICE_LOG(HW, "Hardware initialized OK"); } 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); template inline void Write(u32 addr, const T data); +/// Update hardware +void Update(); + /// Initialize hardware void Init(); -- cgit v1.2.3