nuttx/include/nuttx
Xiang Xiao 6d69439f58 Call xxx_timer_initialize from clock subsystem
Call xxx_timer_initialize from clock subsystem to make timer ready for use as soon as possiblei and revert the workaround:

commit 0863e771a9
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Apr 26 07:24:57 2019 -0600

    Revert "sched/clock/clock_initialize.c:  clock_inittime() needs to be done with CONFIG_SCHED_TICKLESS and clock_initialize should skip clock_inittime() for external RTC case since the RTC isn't ready yet."

    This reverts commit 2bc709d4b9.

    Commit 2bc709d4b9 was intended to handle the case where up_timer_gettime may not start from zero case.  However, this change has the side-effect of breaking every implementation of tickless mode:  After this change the tickless timer structures are used before they are initialized in clock_inittime().  Initialization happens later when up_initialize is called() when arm_timer_initialize().

    Since the tickless mode timer is very special, one solution might be to

    1. Rename xxx_timer_initialize to up_timer_initialize
    2  Move up_timer_initialize to include/nuttx/arch.h
    3.  Call it from clock subsystem instead up_initialize

    Basically, this change make timer initialization almost same as rtc initialization(up_rtc_initialize).

    For now, however, we just need to revert the change.
2020-02-08 07:40:06 -06:00
..
1wire
analog Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
audio Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
binfmt ELF64 support (#220) 2020-02-07 17:10:23 -06:00
can Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
contactless Merged in raiden00/nuttx_l0f0 (pull request #848) 2019-04-05 15:49:45 +00:00
crypto Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
drivers Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
eeprom Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
fs Remove psock_send and sockfd_socket from net/socket/socket.h 2020-01-31 13:45:15 -06:00
i2c include/nuttx/i2c/i2c_master.h: Fix a small typo. 2018-12-07 18:53:57 -06:00
input Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
ioexpander include/nuttx/ioexpander/gpio.h: Add guards so that file content will not compile unless CONFIG_DEV_GPIO is selected. 2019-11-03 19:46:56 -06:00
lcd Ensure all source code end with one and only one newline 2020-02-08 07:25:56 -06:00
leds drivers/timers/pwm.c: Move the pwm/pwm.c driver to timers/pwm.c, The drivers/pwm contained only one .c file (pwm.c), so to avoid the proliferation of sub-directories inside drivers/ is better to move the pwm.c driver to drivers/timers. The pwm.h header was moved to include/nuttx/timers to keep consistency, so all files referencing it need to be updated. 2019-09-02 07:57:10 -06:00
lib ELF64 support (#220) 2020-02-07 17:10:23 -06:00
mbox This commit brings in the drivers needed to support OpenAMP. These changes were ported from https://github.com/FishsemiCode/nuttx. The current state: Most drivers do now compile but are not yet verfied. 2019-11-02 11:30:33 -06:00
mm Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
modem Merged in alinjerpelea/nuttx (pull request #1056) 2019-10-21 14:14:33 +00:00
mtd Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
net Kinetis renamed TJA1100 to TJA110X registers 2020-02-07 10:04:48 +01:00
nx Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
power Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
rf drivers/rf/dat-31r5-sp.c: dd support to the DAT-31R5-SP+ digital attenuator. Creates a the new device driver directory drivers/rf/ to support drivers related to RF peripherals. It also adds support for the DAT-31R5-SP+ digital attenuator. 2019-09-05 13:28:28 -06:00
rptun Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
sensors Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
serial Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
spi Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
syslog Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
timers Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
usb Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
video Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
wireless Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
.gitignore
addrenv.h Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
arch.h Call xxx_timer_initialize from clock subsystem 2020-02-08 07:40:06 -06:00
ascii.h
b2c.h This commit brings in the drivers needed to support OpenAMP. These changes were ported from https://github.com/FishsemiCode/nuttx. The current state: Most drivers do now compile but are not yet verfied. 2019-11-02 11:30:33 -06:00
board.h Fix typos in comments. 2019-08-21 09:32:59 -06:00
cache.h arch/: Unify the cache interface for all architectures 2019-03-19 10:37:13 -06:00
cancelpt.h
clock.h sched/pthread, Documentation: fix pthread_key_delete, pthread_self and pthread_yield documentation and some comments. 2019-10-17 11:04:17 -06:00
compiler.h include/nuttx/compiler.h: Changes that go along with commit 0002258f17 2019-10-31 18:11:28 -06:00
elf.h ELF64 support (#220) 2020-02-07 17:10:23 -06:00
environ.h All function pointer types should be prefaced by the qualifier CODE (unless the callable function is known to reside in RAM, then it should be FAR). 2019-08-26 17:31:29 -06:00
envpath.h binfmt/ and libs/libc: Make exepath_*() more common: 2018-11-08 07:27:14 -06:00
init.h libs/libc/unistd/lib_getcwd.c: remove stray sched_unlock(). Also fixes several typos. 2019-09-20 06:23:48 -06:00
irq.h include/nuttx/irq.h: Fix enter_critical_section/spin_lock_irqsave macro typo error and remove the duplicated inclusion of arch/irq.h 2019-01-27 11:21:03 -06:00
kmalloc.h
kthread.h
list.h include/nuttx/list.h: fix typos 2020-01-18 21:44:07 -06:00
mmcsd.h
module.h
mqueue.h Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
mutex.h Fix a few minor typos 2019-09-08 15:59:14 -06:00
nuttx.h
page.h All function pointer types should be prefaced by the qualifier CODE (unless the callable function is known to reside in RAM, then it should be FAR). 2019-08-26 17:31:29 -06:00
pgalloc.h
progmem.h
pthread.h
random.h
sched.h Re-implements reverted commit 344f7bc9f6 in a way that should not have the undesired side-effect. include/nuttx/sched.h: Add a bit to the TCB flags to indicat the thread is a user thread in a syscall. sched/nuttx/nxsig_dispatch.c: Delay dispatching to signal handlers if within a system call. In all syscall implementations: Process delayed signal handling when exiting system call. 2019-11-28 12:47:36 -06:00
sched_note.h Fix various typos and spelling errors. 2019-12-12 07:41:51 -06:00
scsi.h Fix use of undefined pp-token #errror, other typos. 2019-09-19 18:19:18 -06:00
sdio.h drivers/mmcsd: Added support for MMC(eMMC) bigger than 2 GB (Tested with IMXRT1050EVKB and samsung eMMC 16GB). arch/arm/src/imxrt: IMXRT uSDHC driver cmd line reset logic modified. 2019-08-21 09:23:29 -06:00
semaphore.h Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
signal.h Fix minor typo / copy-paste. 'cancellaction point'->'cancellation point' 2019-08-23 11:57:35 -06:00
spawn.h syscall/ and related: Fix an error found in build testing. Inconsistent conditional compilation led to link errors in certain configurations. 2019-08-27 16:41:07 -06:00
spinlock.h sched/semaphore/spinlock.c: spin_trylock handle memory barrier and instrumentation correctly. 2019-11-03 19:40:58 -06:00
streams.h drivers/syslog: syslog_force does not set errno so do not test against it. Some changes to comments. 2019-09-16 07:48:48 -06:00
symtab.h Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
time.h Remove TIME_EXTENDED option to more conform C standard 2020-01-23 08:17:22 -06:00
tls.h
tree.h
userspace.h Squashed commit of the following: 2019-04-29 14:52:05 -06:00
vt100.h
wdog.h Cosmetic updates. 2019-08-28 15:14:27 -06:00
wqueue.h Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
zoneinfo.h