Exemplo n.º 1
0
void baseHardwareInit(void) {
	// looks like this holds a random value on start? Let's set a nice clean zero
        DWT->CYCCNT = 0;

    /**
     * BOR (Brown Out Reset) is a way to reset microcontroller if target voltage is below voltage we set. When this happens, MCU is in reset state until voltage comes above selected voltage.
     */
	BOR_Set(BOR_Level_1); // one step above default value
}
Exemplo n.º 2
0
void baseHardwareInit(void) {
	// looks like this holds a random value on start? Let's set a nice clean zero
        DWT->CYCCNT = 0;

	BOR_Set(BOR_Level_1); // one step above default value
}
Exemplo n.º 3
0
void setBor(int borValue) {
	scheduleMsg(sharedLogger, "setting BOR to %d", borValue);
	BOR_Set((BOR_Level_t)borValue);
	showBor();
}