#define GPIU 5
uint32_t Freq =0;

void setup() {
  pinMode(GPIU, OUTPUT);
  Serial.begin(115200);
  Freq = getCpuFrequencyMhz();
  Serial.print(("Cpu Freq = "));
  Serial.println(Freq);
  Serial.println(" MHz");
  Freq = getXtalFrequencyMhz();
  Serial.print("Xtal Freq =");
  Serial.println(Freq);
  Serial.println(" MHz");
  Freq = getApbFrequency();
  Serial.print("Apb Freq = ");
  Serial.println(Freq);
  Serial.println(" MHz");
}

void loop() {
  digitalWrite(GPIU,1);
  digitalWrite(GPIU,0);
}