A low-cost frequency relay implemented in a soft-core processor with FreeRTOS.