conditional compiles for BARE_METAL_PTP