machine: add Device constant

This field contains the microcontroller name that we're compiling for,
or "generic" if we're not running on a microcontroller.
This commit is contained in:
Ayke van Laethem
2021-11-29 23:13:53 +01:00
committed by Ron Evans
parent 6b0f2cd697
commit 3d73ee77d3
16 changed files with 41 additions and 0 deletions
+2
View File
@@ -4,6 +4,8 @@ package machine
// Dummy machine package that calls out to external functions.
const deviceName = "generic"
var (
UART0 = &UART{0}
USB = &UART{100}