zephyr/include
Vinayak Kariappa Chettimada c7d2734455 kernel: Improve precision of ticks and ms conversions
The following 2 improvements are contained in this patch:

- When converting from ms to ticks, instead of using hardware cycles
  per tick, use hardware cycles per second. This ensures that the
  multiplication is done before the division, increasing precision.
- When converting from ticks to ms, instead of using cycles per tick
  and cycles per sec, use ticks per sec. This too increases the
  precision.

The concept is to make the dividend as large as possible compared to the
divisor in order to lose as little precision as possible.

Fixes #8898
Fixes #9459
Fixes #9466
Fixes #9468

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2018-08-31 11:14:39 -04:00
..
app_memory userspace: compartmentalized app memory organization 2018-07-25 12:02:01 -07:00
arch kernel: Enable interrupts for MULTITHREADING=n on supported arch's 2018-08-27 16:15:10 -04:00
audio drivers: dmic: APIs for digital microphones 2018-08-19 11:05:19 -07:00
bluetooth doc: fix misspellings in API documentation 2018-08-28 13:58:22 -04:00
cmsis_rtos_v1 lib/cmsis_rtos_v1: Implement support for Signal Event APIs 2018-08-13 13:08:07 -07:00
crypto
debug obj_tracing: Declare object trace list for queue 2018-07-27 07:51:26 -04:00
dfu
display
drivers kernel: Disable tick handling when !MULTITHREADING 2018-08-30 16:14:50 -04:00
dt-bindings include: dt-bindings: pinctrl: stm32-pinctrlf1.h complete stm32f1 header 2018-08-20 05:51:52 -07:00
fs
linker linker: Re-implement {APP,KERNEL}_INPUT_SECTION 2018-08-16 20:15:52 -07:00
logging doc: fix misspellings in API documentation 2018-08-28 13:58:22 -04:00
mgmt doc: fix misspellings in API docs 2018-08-08 01:47:51 -05:00
misc misc: mempool: Fix bit mask value 2018-08-30 19:46:28 -04:00
net doc: fix misspellings in API documentation 2018-08-28 13:58:22 -04:00
nvs subsys: fs/nvs: Rewrite for improved robustness 2018-08-10 14:16:06 -07:00
posix posix: add pthread_key and pthread_once APIs 2018-07-19 08:46:33 -04:00
random
settings settings: fix typo in header file 2018-06-12 22:49:12 -04:00
shell
toolchain toolchain: gcc: check if __weak is defined 2018-06-28 09:13:17 -05:00
usb subsys: usb: class: hid: Add OUT interrupt endpoint 2018-08-27 18:59:58 -04:00
zephyr
adc.h drivers: adc: Introduce reworked API 2018-08-29 13:46:57 -04:00
aio_comparator.h
atomic.h
base64.h
cache.h
can.h
clock_control.h
console.h include: console: Include kernel.h for struct k_fifo 2018-08-20 09:05:08 -07:00
counter.h
crc8.h
crc16.h
crc32.h lib/crc: Add CRC32 support 2018-07-18 10:00:12 -04:00
device.h
disk_access.h
dma.h
entropy.h drivers: entropy: Introduce ISR-specific entropy function 2018-05-24 15:13:13 -07:00
exc_handle.h arch: introduce exc_handle.h 2018-07-31 07:47:15 -07:00
fcb.h
flash_map.h
flash.h
fs.h
gpio.h doc: fix early closing of GPIO doxygen defgroup 2018-06-04 10:55:37 -04:00
i2c.h doc: fix misspellings in API docs 2018-08-08 01:47:51 -05:00
i2s.h i2s: expose i2s APIs to user mode 2018-08-13 16:44:09 -07:00
init.h
ipm.h
irq_nextlevel.h
irq_offload.h
irq.h
json.h lib: json: add helper macro for array of array 2018-07-06 19:17:07 -04:00
kernel_includes.h Fix compile errors related to errno.h 2018-07-25 23:38:13 -04:00
kernel_version.h
kernel.h kernel: Improve precision of ticks and ms conversions 2018-08-31 11:14:39 -04:00
led_strip.h
led.h
pinmux.h
power.h
ptp_clock.h driver: ptp_clock: PTP clock driver definition 2018-06-26 12:37:28 +03:00
pwm.h
ring_buffer.h
rtc.h
sched_priq.h kernel: Add the old "multi queue" scheduler algorithm as an option 2018-07-03 17:09:15 -04:00
sensor.h
shared_irq.h
spi.h
spinlock.h
stats.h
sw_isr_table.h
sys_clock.h kernel: Deprecate sys_clock_us_per_tick variable. 2018-07-20 00:03:52 -04:00
sys_io.h
syscall.h cmake: Deprecate the 2 symbols _SYSCALL_{LIMIT,BAD} 2018-08-15 11:46:51 -07:00
toolchain.h
tracing.h systemview: add support natively using tracing hooks 2018-08-21 05:45:47 -07:00
uart.h drivers: uart: Allow to pass arbitrary user data to irq callback 2018-08-02 19:20:12 +02:00
watchdog.h api: watchdog: fix wdt_install_timeout doxygen comment 2018-06-05 08:04:45 -04:00
zephyr.h