I'm trying to come up to speed, so to speak, on how clocks work with the ATSAM processors. I made a board using the SAME51. I am using a 32.748 kHz crystal to create my CPU clock. This is my settings in Atmel Start:
The problem I am having is that when I use the delay_ms() function, the actual delay is 3x the length of what I asked for. For example, if I say delay_ms(1000), the actual delay is about 3 seconds. What am I missing?