From: Simon Wright <simon@pushface.org>
Subject: Cortex GNAT RTS: BBC micro:bit tick rate
Date: Tue, 24 Jul 2018 12:44:18 +0100
Date: 2018-07-24T12:44:18+01:00 [thread overview]
Message-ID: <lyk1pkrh7x.fsf@pushface.org> (raw)
As announced recently, Cortex GNAT RTS now supports the BBC micro:bit.
Because the nRF51822 MCU doesn't support SysTick, it has to be simulated
using the RTC peripheral, which runs at 32,768 Hz.
At first I thought it wouldn't generate interrupts faster than 100 Hz
anyway, but this turns out to be because I was disabling/enabling
interrupts every time. It will go much faster than that (I don't know
how much time is left for the CPU to do anything else, though).
So, the question: is there any problem with having Ada.Real_Time.Tick be
1/1024 second? (with GNAT, it's usually/always a decimal fraction).
reply other threads:[~2018-07-24 11:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox