i want to translate this function of arduino to vhdl, "OS" is a called to another function.
VHDL is a hardware description language, you can't map a C function to VHDL to synthesize for FPGA/ASIC