We provide the following example codes:
- hello world
- crypto device
- rtc
- watchdog
- moxa-gpio-control
- moxa-dio-control
- moxa-uart-control
- moxa-led-control
- moxa-push-button
Click the link to see the example codes.
We provide Makefile for all examples.
On Moxa UC devices, you can build example codes easily by using make
.
Install build-essential for make
tool:
# apt-get install build-essential
Build codes:
# make
If you want to cross compile on a x86 computer, just add parameters when using make
:
# make CC=arm-linux-gnueabihf-gcc