[ion] In device display, avoid current leaking

Change-Id: Ief0d25a377ce6a39a759d7321d06a34667b33050
This commit is contained in:
Émilie Feral
2017-04-12 15:13:38 +02:00
parent 3f246d8b72
commit a0b054e2ec
2 changed files with 3 additions and 4 deletions

View File

@@ -136,9 +136,8 @@ void shutdownGPIO() {
g.group().PUPDR()->setPull(g.pin(), GPIO::PUPDR::Pull::None);
}
// Set to true : sleep consumption = 154 uA
// Set to false : sleep consumption = 92 uA
ResetPin.group().ODR()->set(ResetPin.pin(), false);
ResetPin.group().MODER()->setMode(ResetPin.pin(), GPIO::MODER::Mode::Analog);
ResetPin.group().PUPDR()->setPull(ResetPin.pin(), GPIO::PUPDR::Pull::None);
PowerPin.group().MODER()->setMode(PowerPin.pin(), GPIO::MODER::Mode::Analog);
PowerPin.group().PUPDR()->setPull(PowerPin.pin(), GPIO::PUPDR::Pull::None);

View File

@@ -2,9 +2,9 @@
#include "regs/regs.h"
#include "battery.h"
#include "device.h"
#include "display.h"
#include "keyboard.h"
#include "led.h"
#include "display.h"
#include "usb.h"
void Ion::Power::suspend() {