zephyr/tests
Paul Sokolovsky b7f6aaaa72 tests: uart_basic_api: Don't assume we can drink from IRQ firehose.
There're (at least) 2 UART TX interrupt causes: "tx fifo has more
room" and "transmission of tx fifo complete". Zephyr API has only
one function to enable TX interrupts, uart_irq_tx_enable(), so it's
fair to assume it enables interrupt for both conditions. But then
immediately after enabling TX IRQ, it will be fired with "tx fifo
has more room" cause. If ISR doesn't do anything to fill FIFO, on
some architectures, immediately after return from ISR, it will be
fired again (with no instruction progress in the main application
thread). That's exactly the situation with this test, and on ARM,
it leads to inifnite IRQ loop.

So, instead move call to uart_fifo_fill() inside ISR, and be sure
to disable TX IRQ after we transmitted enough characters.

Change-Id: Ibbd05acf96b01fdb128f08054819fd104d6dfae8
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2017-05-02 09:31:36 -04:00
..
benchmarks x86: exception-assisted panic/oops support 2017-04-22 10:31:49 -04:00
bluetooth Bluetooth: shell: Don't attempt to reuse channel 2017-04-29 11:39:13 -04:00
booting/stub
compliance
crypto tests: crypto: reduce high timeout value 2017-05-01 09:37:34 -04:00
drivers tests: uart_basic_api: Don't assume we can drink from IRQ firehose. 2017-05-02 09:31:36 -04:00
include tests: convert to using newly introduced integer sized types 2017-04-21 09:53:49 -05:00
kernel boards: Add support for the CC3220SF_LAUNCHXL board 2017-04-28 15:06:41 -05:00
lib/json Introduce new sized integer typedefs 2017-04-20 16:07:08 +00:00
net tests: net: set reasonable timeout on dns test 2017-05-01 09:37:34 -04:00
power samples: power: Time is passed as milliseconds in tickless kernel 2017-04-27 13:46:35 +00:00
subsys tests/ztest: rename assert macros to be zephyr specific 2017-04-13 21:17:33 +00:00
unit tests: convert to using newly introduced integer sized types 2017-04-21 09:53:49 -05:00
ztest kernel: expose struct k_thread implementation 2017-04-26 16:29:06 +00:00
defaults.tc
Kconfig
Makefile
Makefile.test