Update AS5040.cpp

changed to c99 declarations.