Arduino Giga and capacitive sensor issue

Hello,
I would like to make a capacitive sensor by using the CapacitiveSensor library GitHub - PaulStoffregen/CapacitiveSensor: Detect touch or proximity by capacitve sensing
Unfortunately I have an error during the build :
CapacitiveSensor.h:221:2: error: 'IO_REG_TYPE' does not name a type IO_REG_TYPE sBit; // send pin's ports and bitmask

I think it's because this library is not compatible with STM32.
Do somebody has a solution to use this library or another one to make a capacitive sensor with arduino GIGA ?

Regards.