diff options
author | Jean-François Milants <jf@codingfield.com> | 2021-08-28 15:09:16 +0200 |
---|---|---|
committer | Jean-François Milants <jf@codingfield.com> | 2021-08-28 15:09:16 +0200 |
commit | f895da8634f2843b9c2da330f07c94d2da8b4ec1 (patch) | |
tree | da7aeddc1188e6a6b96be01c7b19552c54659988 /src/main.cpp | |
parent | 969de9a8bccfa97da29de2eac61be9325dd2fdaa (diff) | |
parent | 45e7638fc23c260fa743a04e78873b22189e0597 (diff) |
Merge branch 'Riksu9000-twimaster_rework' into develop
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 768389e3..79e2ad86 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -84,8 +84,7 @@ Pinetime::Drivers::SpiNorFlash spiNorFlash {flashSpi}; // respecting correct timings. According to erratas heet, this magic value makes it run // at ~390Khz with correct timings. static constexpr uint32_t MaxTwiFrequencyWithoutHardwareBug {0x06200000}; -Pinetime::Drivers::TwiMaster twiMaster {Pinetime::Drivers::TwiMaster::Modules::TWIM1, - Pinetime::Drivers::TwiMaster::Parameters {MaxTwiFrequencyWithoutHardwareBug, pinTwiSda, pinTwiScl}}; +Pinetime::Drivers::TwiMaster twiMaster {NRF_TWIM1, MaxTwiFrequencyWithoutHardwareBug, pinTwiSda, pinTwiScl}; Pinetime::Drivers::Cst816S touchPanel {twiMaster, touchPanelTwiAddress}; #ifdef PINETIME_IS_RECOVERY static constexpr bool isFactory = true; |