Skip to content

Commit 886bf5b

Browse files
authored
Merge pull request #26 from tomcombriat/fix_SAMD
Fix samd
2 parents da09166 + 00b290b commit 886bf5b

3 files changed

Lines changed: 33 additions & 3 deletions

File tree

.github/workflows/compile_examples.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,36 @@ jobs:
6363
- name: STMicroelectronics:stm32
6464
source-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
6565
internalid: stm32_official
66+
- fqbn: esp8266:esp8266:huzzah
67+
type: 8266
68+
platforms: |
69+
- name: esp8266:esp8266
70+
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
71+
internalid: esp8266
72+
- fqbn: arduino:mbed_giga:giga
73+
platforms: |
74+
- name: arduino:mbed_giga
75+
internalid: arduino_giga
76+
- fqbn: rp2040:rp2040:rpipico
77+
type: rp2040
78+
platforms: |
79+
- name: rp2040:rp2040
80+
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
81+
internalid: rp2040
82+
- fqbn: arduino:renesas_uno:minima
83+
platforms: |
84+
- name: arduino:renesas_uno
85+
internalid: arduino_unor4
86+
- fqbn: teensy:avr:teensy36
87+
platforms: |
88+
- name: teensy:avr
89+
source-url: https://www.pjrc.com/teensy/package_teensy_index.json
90+
internalid: teensy36
91+
- fqbn: teensy:avr:teensy41
92+
platforms: |
93+
- name: teensy:avr
94+
source-url: https://www.pjrc.com/teensy/package_teensy_index.json
95+
internalid: teensy41
6696

6797
steps:
6898
- name: Checkout repository

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=FixMath
2-
version=1.0.8
2+
version=1.0.9
33
author=Thomas Combriat and Thomas Friedrichsmeier
44
maintainer=Thomas Combriat <tomcombriat@live.fr>
55
sentence=Fixed Point Arithmetics for Arduino and others

src/FixMath_Autotests.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
*
99
*/
1010

11-
#if (defined(__GNUC__) && (__GNUC__ < 10)) || (__cplusplus >= 202002L)
11+
#if (defined(__GNUC__) && (__GNUC__ < 12) && !defined(ESP8266)) && !defined(ARDUINO_ARCH_SAMD) || (__cplusplus >= 202002L)
1212
// Bit-shifting negative number has not been formally defined behavior before C++ 2020, but rather technically "implementation defined". It thus
1313
// could not be used in constexpr statements (although working quite fine, at runtime).
1414
// At the time of this writing (07/2024), we do not have a c++ 2020 compiler running in our automated test workflow. However, older versions of GCC
15-
// are less pedantic, and will regard at least the case of shift by 0 bits (-1 << 0) as defined. We leverage this fact to compile as many checks as possible.
15+
// are less pedantic, at least on some platforms (not ESP8266 and SAMD apparently), and will regard at least the case of shift by 0 bits (-1 << 0) as defined. We leverage this fact to compile as many checks as possible.
1616
#define SHIFT_NEGATIVE_BY_ZERO_DEFINED 1
1717
#else
1818
#define SHIFT_NEGATIVE_BY_ZERO_DEFINED 0

0 commit comments

Comments
 (0)