>
> printf("one tick has us %u\n",
> rtems_configuration_get_microseconds_per_tick());
> rtems_counter_ticks ticks = rtems_counter_nanoseconds_to_ticks(1000);
> printf("delay 1000ns ticks_cnt %u\n", ticks);
one tick has us 1000
delay 1000ns ticks_cnt 1000
is rtems_counter_nanoseconds_to_
ok, thanks! i have read it, then im not sure CPU_Counter_ticks is system
tick ?
On Mon, Jul 8, 2019 at 8:53 AM Chris Johns wrote:
> On 8/7/19 10:49 am, Jython wrote:
> > hi, the size of tick is |CONFIGURE_MICROSECONDS_PER_TICK| ?
>
> I suggest you take a moment and read the configuration section
On 8/7/19 10:49 am, Jython wrote:
> hi, the size of tick is |CONFIGURE_MICROSECONDS_PER_TICK| ?
I suggest you take a moment and read the configuration section of the user
manual. The tick entry is ...
https://docs.rtems.org/branches/master/c-user/configuring_a_system.html#configure-microseconds-p
hi, the size of tick is CONFIGURE_MICROSECONDS_PER_TICK ?
On Sat, Jul 6, 2019 at 12:22 AM Gedare Bloom wrote:
> On Thu, Jul 4, 2019 at 2:45 AM Jython wrote:
> >
> > is there someone could help me
> >
> I can give you some guesses.
>
> > On Sun, Jun 30, 2019 at 2:36 PM Jython wrote:
> >>
> >> a
On Thu, Jul 4, 2019 at 2:45 AM Jython wrote:
>
> is there someone could help me
>
I can give you some guesses.
> On Sun, Jun 30, 2019 at 2:36 PM Jython wrote:
>>
>> a 21ms counter in fact more than 10s, see log , my rtc 10s wake up
>>
>> static void Delay_ms(x)
>> {
>> #if 0
... // delete no
is there someone could help me
On Sun, Jun 30, 2019 at 2:36 PM Jython wrote:
> a 21ms counter in fact more than 10s, see log , my rtc 10s wake up
>
> static void Delay_ms(x)
> {
> #if 0
> int int_num = 0;
>
> if(x % 10 == 0)
> {
> int_num = x / 10;
> }
> else
>
a 21ms counter in fact more than 10s, see log , my rtc 10s wake up
static void Delay_ms(x)
{
#if 0
int int_num = 0;
if(x % 10 == 0)
{
int_num = x / 10;
}
else
{
int_num = x / 10 + 1;
}
//printf("delay x %d int_num %d\n", x, int_num);
rtems_t