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.
pull/1/head
D.R.racer 2021-04-15 08:27:21 +02:00
parent d189d9c4cf
commit 2c8f4cb13c
2 changed files with 22 additions and 0 deletions

10
src/hal/avr/cpu.cpp Normal file
View File

@ -0,0 +1,10 @@
#include "../cpu.h"
namespace hal {
namespace CPU {
void Init() {
}
} // namespace CPU
} // namespace hal

12
src/hal/cpu.h Normal file
View File

@ -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