No description
Find a file
Marcus Shawcroft 1bc999cb8d drivers/uart: Refactor UART input hook.
This refactor is in preparation for making driver API structures
const.

The console driver provides a mechanism to install an input and an
output hook function.  These are primarily used by the onboard
gdb-server.  The output hook is entirely implemented within the
console driver.

The input hook is partially implemented in the top of the uart driver
and within the console driver.  The hook function itself is installed
in the uart API structure, but is invoked only by the console driver.

Installing the hook function directly into the uart API structure
prevents the API structure being const.  There are two approaches to
fixing this:

1) Implement setting of the input hook in the same way as
uart_irq_callback_set().

2) Move the input hook entirely to the console driver.

We implement the latter.  This approach has two benefits, first it
removes the need for every uart driver to implement the behaviour and
second, the current placement of the callback function in the uart API
seems odd given that the callback is only invoked by the console
driver, never by a uart driver.

Change-Id: I258b312d3055df1c2bdeb896bd4f4f39c40838f7
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2016-10-25 11:31:08 +00:00
.known-issues known-issues: update rule for TCF summary line 2016-09-16 11:31:27 -07:00
arch build: refactor kernel hex build to be common 2016-10-24 10:59:22 -05:00
boards board: organize boards based on architecture 2016-10-24 19:59:42 +00:00
doc unified/doc: Add heap memory pool section to Kernel Primer 2016-10-25 00:10:35 +00:00
drivers drivers/uart: Refactor UART input hook. 2016-10-25 11:31:08 +00:00
ext ext qmsi: Update to QMSI 1.2 release 2016-10-18 23:26:01 +00:00
fs fs: Add file system API to flush cache of an open file 2016-09-23 00:06:32 +00:00
include drivers/uart: Refactor UART input hook. 2016-10-25 11:31:08 +00:00
kernel unified: Support heap memory pool 2016-10-25 00:10:34 +00:00
lib iot/zoap: Fix comparing pointers of different signedness 2016-10-04 12:29:07 +00:00
misc drivers/uart: Refactor UART input hook. 2016-10-25 11:31:08 +00:00
net Bluetooth: Fix build with unified kernel 2016-10-21 07:47:31 +03:00
samples samples/soc_flash_nrf5: test non-word aligned writes 2016-10-25 00:34:29 +00:00
scripts unified: Support heap memory pool 2016-10-25 00:10:34 +00:00
tests sensor/th02: Add missing build_all test. 2016-10-25 11:31:08 +00:00
usb usb: do not assert on a variable we do not have 2016-09-24 08:12:35 -04:00
.checkpatch.conf checkpatch: do not check for min_t/max_t 2016-09-13 17:12:55 -04:00
.gitattributes First commit 2015-04-10 16:44:37 -07:00
.gitignore testcases: instruct git to ignore *log and outdir-* 2016-06-14 22:01:34 +00:00
.gitreview Add a .gitreview file 2016-02-20 14:25:01 +00:00
.mailmap mailmap: update with new emails 2016-10-07 16:15:24 +00:00
defaults.tc testcases: catch all fatal faults as failures 2016-10-19 15:05:47 +00:00
Kbuild unified/build: adapt Kbuild for unified kernel 2016-09-13 17:12:55 -04:00
Kconfig kconfig: Do not put architecture in the title 2016-03-14 16:50:51 -04:00
Kconfig.zephyr board: organize boards based on architecture 2016-10-24 19:59:42 +00:00
LICENSE add top level Apache 2.0 license file 2016-02-05 20:24:37 -05:00
MAINTAINERS board: organize boards based on architecture 2016-10-24 19:59:42 +00:00
Makefile board: organize boards based on architecture 2016-10-24 19:59:42 +00:00
Makefile.inc board: organize boards based on architecture 2016-10-24 19:59:42 +00:00
zephyr-env.sh win-build: corrects scripts_path for windows build. 2016-10-15 15:09:54 +00:00