SimpleFOClibrary support for ESP32 boards

Then, another strange thing happens with this setup:
depending on the motor position when starting to calibrate, the ESP32 goes into a reset infinite loop like this:
MOT: Monitor enabled!
MOT: Init pins.
MOT: PWM config.
MOT: Enable.
MOT: Align sensor.
Guru Meditation Error: Core 1 panic’ed (Coprocessor exception)
Core 1 register dump:
PC : 0x400d27e9 PS : 0x00060031 A0 : 0x800d10cd A1 : 0x3ffbeb50
A2 : 0x3ffc1444 A3 : 0x00000001 A4 : 0xfffffffb A5 : 0x00000000
A6 : 0x00000008 A7 : 0x00000001 A8 : 0xfffffffd A9 : 0x3ffbebf0
A10 : 0xfffffffb A11 : 0x00000000 A12 : 0x00000000 A13 : 0x3ffc1de8
A14 : 0x00000003 A15 : 0x00000000 SAR : 0x00000005 EXCCAUSE: 0x00000004
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Core 1 was running in ISR context:
EPC1 : 0x400d27e9 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x40083835

ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000

Backtrace: 0x400d27e9:0x3ffbeb50 0x400d10ca:0x3ffbec40 0x40080f79:0x3ffbec60 0x40081715:0x3ffbec80 0x401059af:0x3ffbc5a0 0x400d87c7:0x3ffbc5c0 0x400915f5:0x3ffbc5e0 0x40090079:0x3ffbc600

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10864
load:0x40080400,len:6432
entry 0x400806b8
MOT: Monitor enabled!
MOT: Init pins.
MOT: PWM config.
MOT: Enable.
MOT: Align sensor.
Guru Meditation Error: Core  1 panic'ed (Coprocessor exception)
Core 1 register dump:
PC      : 0x400d27e9  PS      : 0x00060031  A0      : 0x800d10cd  A1      : 0x3ffbeb50  
A2      : 0x3ffc1444  A3      : 0x00000001  A4      : 0xfffffffb  A5      : 0x00000000  
A6      : 0x00000008  A7      : 0x00000001  A8      : 0xfffffffd  A9      : 0x3ffbebf0  
A10     : 0xfffffffb  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x3ffc1de8  
A14     : 0x00000003  A15     : 0x00000000  SAR     : 0x00000005  EXCCAUSE: 0x00000004  
EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000  
Core 1 was running in ISR context:
EPC1    : 0x400d27e9  EPC2    : 0x00000000  EPC3    : 0x00000000  EPC4    : 0x40083835

ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000

Backtrace: 0x400d27e9:0x3ffbeb50 0x400d10ca:0x3ffbec40 0x40080f79:0x3ffbec60 0x40081715:0x3ffbec80 0x401059af:0x3ffbc5a0 0x400d87c7:0x3ffbc5c0 0x400915f5:0x3ffbc5e0 0x40090079:0x3ffbc600

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10864
load:0x40080400,len:6432
entry 0x400806b8
MOT: Monitor enabled!
MOT: Init pins.
MOT: PWM config.
MOT: Enable.
MOT: Align sensor.

until i slightly turn the motor by hand changing the starting position, then the calibration goes as expected…