Skip to content

Commit 53819e5

Browse files
committed
More removal of noexcept markings
1 parent 5f3d871 commit 53819e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/nRF5/Tone.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ inline static bool _is_pwm_enabled(NRF_PWM_Type const * pwm_instance) {
9393
See https://gist.github.com/henrygab/6b570ebd51354bf247633c72b8dc383b
9494
for code that compares the new lambdas to the old calculations.
9595
*/
96-
constexpr inline static uint16_t _calculate_time_period(uint32_t frequency) throw() {
96+
constexpr inline static uint16_t _calculate_time_period(uint32_t frequency) {
9797
// range for frequency == [20..25000],
9898
// so range of result == [ 5..62500]
9999
// which fits in 16 bits.
100100
return 125000 / frequency;
101101
};
102-
constexpr inline static uint64_t _calculate_pulse_count(uint32_t frequency, uint32_t duration) throw() {
102+
constexpr inline static uint64_t _calculate_pulse_count(uint32_t frequency, uint32_t duration) {
103103
// range for frequency == [20..25000],
104104
// range for duration == [ 1..0xFFFF_FFFF]
105105
// so range of result == [ 1..0x18_FFFF_FFE7] (requires 37 bits)
@@ -176,7 +176,7 @@ void tone(uint8_t pin, unsigned int frequency, unsigned long duration)
176176
// Using a function-local static to avoid accidental reference from ISR or elsewhere,
177177
// and to simplify ensuring the semaphore gets initialized.
178178
static StaticSemaphore_t _tone_semaphore_allocation;
179-
static auto init_semaphore = [] () throw() { //< use a lambda to both initialize AND give the mutex
179+
static auto init_semaphore = [] () { //< use a lambda to both initialize AND give the mutex
180180
SemaphoreHandle_t handle = xSemaphoreCreateMutexStatic(&_tone_semaphore_allocation);
181181
auto mustSucceed = xSemaphoreGive(handle);
182182
(void)mustSucceed;

0 commit comments

Comments
 (0)