File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ constexpr inline static uint64_t _calculate_pulse_count(uint32_t frequency, uint
104
104
// range for frequency == [20..25000],
105
105
// range for duration == [ 1..0xFFFF_FFFF]
106
106
// so range of result == [ 1..0x18_FFFF_FFE7] (requires 37 bits)
107
- static_assert (sizeof (unsigned long long ) >= sizeof (uint64_t ));
108
107
return
109
108
(duration == 0 ) ?
110
109
0 :
@@ -174,9 +173,6 @@ inline static int _bits_used(unsigned long long x) {
174
173
*/
175
174
void tone (uint8_t pin, unsigned int frequency, unsigned long duration)
176
175
{
177
- static_assert (sizeof (unsigned long int ) <= sizeof (uint32_t ));
178
- static_assert (sizeof (unsigned int ) <= sizeof (uint32_t ));
179
-
180
176
// Used only to protect calls against simultaneous multiple calls to tone().
181
177
// Using a function-local static to avoid accidental reference from ISR or elsewhere,
182
178
// and to simplify ensuring the semaphore gets initialized.
You can’t perform that action at this time.
0 commit comments