From 57bc5a802b1901eae3a03f5fe6624df5d6800089 Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Thu, 15 Apr 2021 08:27:21 +0200 Subject: [PATCH] Add cpu.h/cpp, avr subdir The idea is to have a separate implementation of the HAL interface for each CPU. So far we only have the AVR. --- src/hal/avr/cpu.cpp | 10 ++++++++++ src/hal/cpu.h | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/hal/avr/cpu.cpp create mode 100644 src/hal/cpu.h diff --git a/src/hal/avr/cpu.cpp b/src/hal/avr/cpu.cpp new file mode 100644 index 0000000..de23c60 --- /dev/null +++ b/src/hal/avr/cpu.cpp @@ -0,0 +1,10 @@ +#include "../cpu.h" + +namespace hal { +namespace CPU { + + void Init() { + } + +} // namespace CPU +} // namespace hal diff --git a/src/hal/cpu.h b/src/hal/cpu.h new file mode 100644 index 0000000..1f7e2c0 --- /dev/null +++ b/src/hal/cpu.h @@ -0,0 +1,12 @@ +#pragma once + +/// Hardware Abstraction Layer for the CPU + +namespace hal { +namespace CPU { + + /// CPU init routines (not really necessary for the AVR) + void Init(); + +} // namespace CPU +} // namespace hal