mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
add SW reset (#107)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user