mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
@@ -23,16 +23,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "board.h"
|
||||
#include <libmaple/iwdg.h>
|
||||
|
||||
|
||||
namespace DRIVERS {
|
||||
class BoardStm32 : public Board {
|
||||
public:
|
||||
BoardStm32() : Board(BOARD){
|
||||
//2 sec timeout
|
||||
iwdg_init(IWDG_PRE_16, 0xFFF);
|
||||
}
|
||||
|
||||
void reset() override {
|
||||
nvic_sys_reset();
|
||||
}
|
||||
|
||||
void periodic() {
|
||||
iwdg_feed();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user