From 5e8e628da03121323351e54e6866826288e4c4bd Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 4 May 2018 18:27:12 +0200 Subject: Implement most of basic HAL Oscillator: The oscillator is configured correctly. Interrupts: RX uart interrupts work. The global interrupt vector table is enabled. UART: RX features work. --- hal/hwconfig.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 hal/hwconfig.hpp (limited to 'hal/hwconfig.hpp') diff --git a/hal/hwconfig.hpp b/hal/hwconfig.hpp new file mode 100644 index 0000000..0cd38ac --- /dev/null +++ b/hal/hwconfig.hpp @@ -0,0 +1,22 @@ +#ifndef HWCONFIG_HPP +#define HWCONFIG_HPP + +#define _XTAL_FREQ 8000000UL + +namespace hw +{ + void reglock(); + void regunlock(); +} + +namespace osc +{ + void initialize(); +} + +namespace interrupts +{ + void initialize(); +} + +#endif \ No newline at end of file -- cgit v1.2.1