The macro used to convert the reset period to Freertos ticks has type conversion issues, thus calculating a wrong period value.