Skip to content

Commit 08a85e5

Browse files
author
Richard Unger
committed
fixing compile errors on esp32
1 parent a4cfda8 commit 08a85e5

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/ccpp.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
- arduino:sam:arduino_due_x # arduino due
1212
- arduino:samd:nano_33_iot # samd21
1313
- adafruit:samd:adafruit_metro_m4 # samd51
14-
- esp32:esp32:esp32doit-devkit-v1 # esm32
14+
- esp32:esp32:esp32 # esp32
15+
- esp32:esp32:esp32s2 # esp32s2
1516
- STM32:stm32:GenF1:pnum=BLUEPILL_F103C8 # stm32 bluepill
1617
- STM32:stm32:Nucleo_64:pnum=NUCLEO_F411RE # stm32 nucleo
1718
- arduino:mbed_rp2040:pico # rpi pico

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# SimpleFOC Driver and Support Library
22

33
![Library Compile](https://github.com/simplefoc/Arduino-FOC-drivers/workflows/Library%20Compile/badge.svg)
4+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5+
46

57
This library contains an assortment of drivers and supporting code for SimpleFOC.
68

src/encoders/as5145/MagneticSensorAS5145.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
#ifndef __MAGNETIC_SENSOR_AS5145_H__
33
#define __MAGNETIC_SENSOR_AS5145_H__
44

5+
#include "Arduino.h"
56
#include "SPI.h"
67
#include "common/base_classes/Sensor.h"
78

9+
#ifndef MSBFIRST
10+
#define MSBFIRST BitOrder::MSBFIRST
11+
#endif
812

913
#define AS5145_BITORDER MSBFIRST
1014
#define AS5145_CPR 4096.0f

0 commit comments

Comments
 (0)