This is a part of a set of fixes for the bugs and typos tridge discovered and shared inside earlier commits for setting up tonealarm.
ToneAlarm is setup for Beaglebone Black using pwm, toneAlarm thread runs on second last priority.