towerprime-freertos: add ivory wrappers, start implementing guard correctly