diff options
| author | JF <jf@codingfield.com> | 2020-08-22 15:59:59 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-08-22 15:59:59 (GMT) |
| commit | f7e40b1b5879242b4ce59854dbbadb44fe5f75e4 (patch) | |
| tree | c90d927a985d1b13f48af1d6e9aeb6d4c0e7cc0f /src/drivers/SpiMaster.cpp | |
| parent | ecbbeb6283178696ae36891225e086d3154e8a8a (diff) | |
Re-implement sleep/wakeup for touch panel, display, NOR Flash, SPI and TWI.
Diffstat (limited to 'src/drivers/SpiMaster.cpp')
| -rw-r--r-- | src/drivers/SpiMaster.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/SpiMaster.cpp b/src/drivers/SpiMaster.cpp index 8d36b9c..2e5852a 100644 --- a/src/drivers/SpiMaster.cpp +++ b/src/drivers/SpiMaster.cpp @@ -4,6 +4,7 @@ #include "SpiMaster.h" #include <algorithm> #include <task.h> +#include <nrfx_log.h> using namespace Pinetime::Drivers; @@ -231,10 +232,13 @@ void SpiMaster::Sleep() { nrf_gpio_cfg_default(params.pinSCK); nrf_gpio_cfg_default(params.pinMOSI); nrf_gpio_cfg_default(params.pinMISO); + + NRF_LOG_INFO("[SPIMASTER] sleep") } void SpiMaster::Wakeup() { Init(); + NRF_LOG_INFO("[SPIMASTER] Wakeup"); } bool SpiMaster::WriteCmdAndBuffer(uint8_t pinCsn, const uint8_t *cmd, size_t cmdSize, const uint8_t *data, size_t dataSize) { |
