Commit Graph

77 Commits (d8c2c6f97fe419d682cdc11d859a4ce2952ca23d)

Author SHA1 Message Date
Christopher Haster c0951c9035 NCS36510: Fixed drift in ticker interrupt
The NCS36510 is limited to 16bit timers. Construction of larger
intervals is performed in software by counting the number of 16bit
intervals that pass.

Either this counting takes a bit of time, or there is a math error
somewhere (maybe a long critical section?), because there is a
roughly ~1us delay between when the interrupt occurs and the ticker
progresses onto the next 16bit interval. This is normally a completely
reasonable error, except that the error accumulates. After a while,
the equeue tests find themselves with tens of milliseconds of error.
To make matters worse, this error is random because of other interrupts
occuring in the system, making the exact issue quite a bit difficult
to track down.

This fix drops the software counter in favor of just recalculating
the next delay interval from the target time and value of the running
timer. The running timer used to calculate the current tick is left to
overflow in hardware and doesn't have this drift.
2017-02-15 10:59:52 -06:00
0xc0170 2898199ccd ncs36510: lp ticker - remove unused header file inclusion (sleep) 2017-02-13 13:17:05 +00:00
pradeep-gr 48a78c554d NCS36510: spi_format function bug fix 2017-02-08 18:26:49 +05:30
0xc0170 3384572f14 ncs36510: fix sleep/deepslep name - add prefix hal_
This resolves an error that sleep is already defined.
2017-01-31 12:00:02 +00:00
0xc0170 86d136074c ncs36510: fix sleep header private file
This private header should have unique name, that does not collide with
generic names like sleep.h
2017-01-31 11:59:00 +00:00
Radhika 3d23ec0904 Formatting changes as per guidelines 2016-11-29 16:58:33 +05:30
Radhika 08ae38b3a0 Register map changes for RevG 2016-11-18 13:41:53 +05:30
Radhika d637f6d3ad Modified user trim default values. 2016-11-09 17:12:35 +05:30
Radhika eaf7265aa6 User trim added.
Astyle and pylint run on code.
2016-10-28 15:02:52 +05:30
Martin Kojtal 6eac2b008a Merge pull request #3009 from pradeep-gr/master
TRNG enabled. TRNG APIs implemented. REV A/B/C/D flags removed. Warnings removed
2016-10-28 10:13:50 +02:00
Martin Kojtal b826d1bb1a Merge pull request #3022 from hasnainvirk/ncs36510_fixes
OnSemi RAM usage fix
2016-10-27 10:04:31 +02:00
pradeep-gr bb824c6f91 mbed-os-tests-mbedtls-selftest issue fixed 2016-10-26 16:49:29 +05:30
pradeep-gr 99bd584070 Conflict resolved 2016-10-26 15:07:52 +05:30
pradeep-gr 4e4823053a To resolve conflict 2016-10-26 15:00:19 +05:30
Martin Kojtal 2175009bc5 Merge pull request #2938 from radhika-raghavendran/master
InterruptIn changes in NCS36510 HAL.
2016-10-25 11:58:39 +02:00
Radhika 7598b0572b Enable not checking against 0 or 1. 2016-10-19 14:11:49 +05:30
Radhika 1573405135 IRQ enable code moved out. 2016-10-19 13:44:10 +05:30
Radhika 17ed9e9777 Reverting Clock GPIO code to previous implementation of the gpio_api.c and gpio_irq_api.c 2016-10-19 09:52:12 +05:30
Radhika a3bccfdda7 gpio is connected API 2016-10-17 14:18:38 +05:30
Hasnain Virk 1b6f3cdbf6 OnSemi RAM usage fix
Previous code base had been wasting almost 4K of precious RAM.

* Main stack allocation reduced from 4K to 1K
* Un-necessary breakdown of RAM regions is removed. This gives us back 2K of RAM.
2016-10-17 11:37:53 +03:00
maclobdell e1657f13a0 add macros for NCS36510 IAR IDE building 2016-10-14 15:38:36 -05:00
Radhika b0265244a4 Fixed automerge problems. 2016-10-14 18:16:23 +05:30
Radhika 20e6a05bb8 Serial printf and InterruptIn changes 2016-10-13 17:36:23 +05:30
pradeep-gr 324dbaf0a1 Low power timer fine tuned for smaller duration 2016-10-12 19:09:57 +05:30
Laurent MEUNIER 22c50d32d2 cmsis to device changes 2016-10-12 14:54:43 +05:30
Christopher Haster 26ced98734 restructure - Restructured cmsis directory
targets/cmsis -> cmsis
targets/cmsis/TARGET_* -> targets/TARGET_*/device
targets/cmsis/TARGET_*/mbed_rtx.h -> targets/TARGET_*/mbed_rtx.h
2016-10-04 17:51:44 -05:00
Christopher Haster 0bad622a16 restructure - Moved targets out to top level
hal/targets -> targets
hal/targets.json -> targets/targets.json
2016-09-30 19:18:09 -05:00