stm32 rtems_counter_delay_nanoseconds() longer

Jython googcheng at gmail.com
Mon Jul 8 06:51:25 UTC 2019


>
> 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_ticks wrong?


On Mon, Jul 8, 2019 at 9:33 AM Jython <googcheng at gmail.com> wrote:

> 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 <chrisj at rtems.org> 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 of the user
>> manual. The tick entry is ...
>>
>>
>> https://docs.rtems.org/branches/master/c-user/configuring_a_system.html#configure-microseconds-per-tick
>>
>> If this entry is not clear please let us know or even better send us a
>> patch to
>> the documentation.
>>
>> Thanks
>> Chris
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190708/932fd21d/attachment-0002.html>


More information about the users mailing list