Teste semf
Kontakt

Power

General

The main purpose of Power class is to handle different power modes like standby, sleep and stop modes of the microcontroller. The class also can be used to execute a software reset of the microcontroller. This class is an abstract interface and the implementation depends on the hardware.

Initialization and Usage

#include "HardwareAbstraction/Stm32/stm32f4power.h"
#include "main.h"

semf::Stm32f4Power powerModes;

while(1)
{
  powerModes.sleep();

  if (/*something*/ true)
    powerModes.restart();
}

zurück zur Dokumentation