The 2 functions below, either Delay() or Sleep() should compile:
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
PIOB->PIO_ODSR ^= PIO_ODSR_P27;
//Delay(1000);
Sleep(1000);
}
void Delay(int num)
{
volatile float f = 1.0f;
for (volatile int i = 0; i < 1024 * num; ++i )
f *= 1.1f;
}