zephyr/samples/nfc/nfc_hello
Kumar Gala a1b77fd589 zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-06-08 08:23:57 -05:00
..
src zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
CMakeLists.txt samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
prj.conf samples: nfc_hello: Add CONFIG_SERIAL=y to project conf 2017-04-14 05:56:53 -05:00
README.txt samples: nfc: update README 2018-01-11 12:50:14 -05:00
sample.yaml samples: add test identifier 2019-03-29 17:44:11 -04:00

NFC Sample App
--------------

This is a simple application to test an elementary signal-through
with NFC module connected to the second UART.


Build and run
-------------

To test the serial line routines, open a terminal window and type:

	nc -l 8888

Open another terminal window and type:

For QEMU x86:
	mkdir build; cd build
	cmake -DBOARD=qemu_x86 ..
	make run

For QEMU ARM:
	mkdir build; cd build
	cmake -DBOARD=qemu_cortex_m3 ..
	make run


Sample output
-------------

Write some random text on the nc terminal window. The terminal
window running qemu must display:

For QEMU x86:

[QEMU] CPU: qemu32
Sample app running on: x86
uart1_init() done
uart1_isr: 61 73 64 73 61 64 73 0a (8 bytes)

For QEMU ARM:

[QEMU] CPU: cortex-m3
Sample app running on: arm
uart1_init() done
uart1_isr: 61 (1 bytes)
uart1_isr: 73 (1 bytes)
uart1_isr: 64 (1 bytes)
uart1_isr: 73 (1 bytes)
uart1_isr: 61 (1 bytes)
uart1_isr: 0a (1 bytes)
uart1_isr: 73 (1 bytes)
uart1_isr: 73 (1 bytes)