Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2019-12-10 16:06:55 +0300
committerDavid Crocker <dcrocker@eschertech.com>2019-12-10 16:06:55 +0300
commitd4342a41d2972c20892c793f2ce015e6eafc70ed (patch)
treed0919e8a6c435e221918605792edbc9e9c6a31f9 /src/Hardware/I2C.cpp
parente5b1d6c6ede08f2d3246e237a4c868656a71d347 (diff)
More noexcept specifiers
Diffstat (limited to 'src/Hardware/I2C.cpp')
-rw-r--r--src/Hardware/I2C.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Hardware/I2C.cpp b/src/Hardware/I2C.cpp
index c9369f0b..aca1c810 100644
--- a/src/Hardware/I2C.cpp
+++ b/src/Hardware/I2C.cpp
@@ -13,7 +13,7 @@ static bool i2cInitialised = false;
#endif
// Initialise the I2C interface, if not already done
-void I2C::Init()
+void I2C::Init() noexcept
{
#if defined(I2C_IFACE)
if (!i2cInitialised)
@@ -46,7 +46,7 @@ extern "C" void WIRE_ISR_HANDLER() noexcept
}
}
-uint32_t I2C::statusWaitFunc(Twi *twi, uint32_t bitsToWaitFor)
+uint32_t I2C::statusWaitFunc(Twi *twi, uint32_t bitsToWaitFor) noexcept
{
uint32_t sr = twi->TWI_SR;
if ((sr & bitsToWaitFor) == 0)