add SW reset (#107)

This commit is contained in:
tomaszduda23
2022-09-12 11:53:52 +02:00
committed by GitHub
parent ce43938d28
commit 615863a848
7 changed files with 106 additions and 3 deletions

View File

@@ -26,6 +26,7 @@
#include "usb/mouse-absolute-stm32.h"
#include "usb/mouse-relative-stm32.h"
#include "backup-register.h"
#include "board-stm32.h"
#ifndef __STM32F1__
# error "Only STM32F1 is supported"
@@ -72,4 +73,14 @@ namespace DRIVERS {
return new Storage(DRIVERS::DUMMY);
}
}
Board* Factory::makeBoard(type _type) {
switch (_type) {
case BOARD:
return new BoardStm32();
default:
return new Board(DRIVERS::DUMMY);
}
}
}