zephyr/include
Benjamin Walsh 456c6daa9f unified: initial unified kernel implementation
Summary of what this includes:

    initialization:

    Copy from nano_init.c, with the following changes:

    - the main thread is the continuation of the init thread, but an idle
      thread is created as well

    - _main() initializes threads in groups and starts the EXE group

    - the ready queues are initialized

    - the main thread is marked as non-essential once the system init is
      done

    - a weak main() symbol is provided if the application does not provide a
      main() function

    scheduler:

    Not an exhaustive list, but basically provide primitives for:

    - adding/removing a thread to/from a wait queue
    - adding/removing a thread to/from the ready queue
    - marking thread as ready
    - locking/unlocking the scheduler
      - instead of locking interrupts
    - getting/setting thread priority
      - checking what state (coop/preempt) a thread is currenlty running in
    - rescheduling threads
    - finding what thread is the next to run
    - yielding/sleeping/aborting sleep
    - finding the current thread

    threads:

    - Add operationns on threads, such as creating and starting them.

    standardized handling of kernel object return codes:

    - Kernel objects now cause _Swap() to return the following values:
         0      => operation successful
        -EAGAIN => operation timed out
        -Exxxxx => operation failed for another reason

    - The thread's swap_data field can be used to return any additional
    information required to complete the operation, such as the actual
    result of a successful operation.

    timeouts:

    - same as nano timeouts, renamed to simply 'timeouts'
    - the kernel is still tick-based, but objects take timeout values in
      ms for forward compatibility with a tickless kernel.

    semaphores:

      - Port of the nanokernel semaphores, which have the same basic behaviour
      as the microkernel ones. Semaphore groups are not yet implemented.

      - These semaphores are enhanced in that they accept an initial count and a
      count limit. This allows configuring them as binary semaphores, and also
      provisioning them without having to "give" the semaphore multiple times
      before using them.

    mutexes:

    - Straight port of the microkernel mutexes. An init function is added to
    allow defining them at runtime.

    pipes:

    - straight port

    timers:

    - amalgamation of nano and micro timers, with all functionalities
      intact.

    events:

    - re-implementation, using semaphores and workqueues.

    mailboxes:

    - straight port

    message queues:

    - straight port of  microkernel FIFOs

    memory maps:

    - straight port

    workqueues:

    - Basically, have all APIs follow the k_ naming rule, and use the _timeout
    subsystem from the unified kernel directory, and not the _nano_timeout
    one.

    stacks:

    - Port of the nanokernel stacks. They can now have multiple threads
    pending on them and threads can wait with a timeout.

    LIFOs:

    - Straight port of the nanokernel LIFOs.

    FIFOs:

    - Straight port of the nanokernel FIFOs.

Work by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com>
         Peter Mitsis <peter.mitsis@windriver.com>
         Allan Stephens <allan.stephens@windriver.com>
         Benjamin Walsh <benjamin.walsh@windriver.com>

Change-Id: Id3cadb3694484ab2ca467889cfb029be3cd3a7d6
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-09-13 17:12:55 -04:00
..
arch unified/x86: add unified kernel support for x86 arch 2016-09-13 17:12:55 -04:00
bluetooth Bluetooth: RFCOMM: Implement TX flow control 2016-09-07 07:22:32 +00:00
display
drivers unified/sys_timer: guard microkernel announce with !KERNEL_V2 2016-09-13 17:12:55 -04:00
fs fs: Adds the glue layer for the Fat FS module 2016-08-01 16:47:33 -07:00
microkernel microkernel: remove deprecated task IRQs 2016-09-06 16:15:59 +00:00
misc unified/object_tracing: disable object tracing in unified kernel 2016-09-13 17:12:55 -04:00
net net: Fix net_send return value documentation 2016-09-12 02:19:57 +00:00
toolchain kernel: abolish FUNC_NO_FP 2016-09-09 21:13:30 +00:00
usb usb: Add Bluetooth class codes definitions 2016-08-10 15:27:35 +00:00
adc.h
aio_comparator.h
atomic.h atomic: fix bug in ATOMIC_INIT() 2016-09-13 17:12:55 -04:00
cache.h
clock_control.h
counter.h doc: counter should be under device driver 2016-04-15 18:42:17 +00:00
device.h unified: include kernel.h via major top-level header files 2016-09-13 17:12:55 -04:00
dma.h doc: fix warnings about undefined ref and group without end. 2016-06-22 16:44:20 -05:00
eth.h driver: ENC28J60 Ethernet SPI module 2016-08-05 20:36:44 +00:00
flash.h flash: update API documentation 2016-05-25 13:30:41 +00:00
fs.h doc: Fixes a typo in the file system documentation 2016-08-05 23:14:25 +00:00
gpio.h gpio: add device config helpers 2016-06-22 16:47:16 +00:00
i2c.h i2c: Fix restart flag in burst read 2016-09-07 14:40:20 +00:00
init.h init: document SYS_INIT and SYS_INIT_PM 2016-09-08 17:15:11 +00:00
ipm.h doc: Fix terminology in Kconfig files for 'platform' 2016-08-18 21:17:29 +00:00
irq.h zephyr: remove deprecated dynamic interrupt API 2016-09-06 16:16:00 +00:00
irq_offload.h
kernel.h unified: initial unified kernel implementation 2016-09-13 17:12:55 -04:00
kernel_version.h
legacy.h unified: initial unified kernel implementation 2016-09-13 17:12:55 -04:00
linker-defs.h nanokernel: move dataCopy() and bssZero() to common code 2016-07-08 18:23:11 +00:00
linker-tool-gcc.h nios2: basic build, non-functional 2016-05-03 23:18:45 +00:00
linker-tool.h
microkernel.h unified: include kernel.h via major top-level header files 2016-09-13 17:12:55 -04:00
nanokernel.h unified: include kernel.h via major top-level header files 2016-09-13 17:12:55 -04:00
pinmux.h doc: fix "WARNING: Error in type declaration." in callback typedefs 2016-06-16 13:11:06 -07:00
power.h doc: power_mgmt: Added Power Management documentation 2016-04-27 00:57:53 +00:00
pwm.h drivers: pwm_shim: correct api argument inconsistency 2016-08-25 14:24:03 -07:00
rtc.h
section_tags.h
sections.h
sensor.h doc: revert unnamed union/struct workaround in favour of known-issues 2016-07-01 21:53:45 +00:00
shared_irq.h
spi.h drivers: spi: Update comment for spi config parameter 2016-08-10 15:06:23 +00:00
sw_isr_table.h nios2: add static interrupt handling code 2016-06-22 16:42:21 +00:00
sys_clock.h
sys_io.h
toolchain.h doc: revert unnamed union/struct workaround in favour of known-issues 2016-07-01 21:53:45 +00:00
uart.h uart.h: fix path to PCI headers 2016-08-12 22:57:57 +00:00
watchdog.h
zephyr.h unified: include kernel.h via major top-level header files 2016-09-13 17:12:55 -04:00