Nut/OS Examples
From Nutwiki
Contents
Quick Start
- Nut/OS 5.1.0 installation on Debian Jessie (example with ARM target)
- Nut/OS installation on Linux (Debain)
AVR-CPU based
ARM-CPU based
For Ethernut 5 you should check this page.
Basic
- Hello World!
- Output Format Specifiers
- Input Format Specifiers
- Floating Point Input and Ouput
- Floating Point Mathematics
- Random Numbers
- Converting Strings to Numerical Values
- Converting Strings to Floating Point Values
- Printing to Strings
- How to use strchr
- Standard String Functions
- Character Types
- Multithreading
- Time and Date
- Heap Memory
- Local Variables
- Environment Variables
- Non-Volatile Memory
- Banked Memory
- Data in Program Space
- Determine Versions
- Input Line Editor
Hardware Control
- Low level port I/O
- AT91SAM7X-EK Port I/O
- Аппаратные порты ввода/вывода
- Blinking LED
- Generic Port Access
- Watchdog Demo
- System Reset
- Digital Input Interrupt
- Timer and Counter Interrupts
- Text Output on LCD
- Text Output on Medianut LCD
- Analog Input
- SPI
- I2C
- UART Hardware Handshake
- RS485 Communication
- Advanced UART Functions
Periphery
Filesystem
- Reading UROM Files
- Writing PHAT Files
- Reading PHAT Files
- Reading PHAT Directories
- Random File Access
- Flash MP3 Player
- MMC MP3 Player
- XML Parser
Network
- Network Configuration
- Domain Name Service
- Network Time Protocol
- Basic TCP Server
- Basic TCP Client
- Receive-only TCP Client
- Basic UDP Server
- Basic UDP Client
- Socket Timeouts
- Dynamic Server Threads
- Processing HTML Forms Using the POST Method
- Sending syslog Messages
- Serial Port Monitor
Cryptography
Lua Scripts
Debugging
- How to use NUTDEBUG
- How to use NUTTRACER
- Tracing Interrupts
- ARM Exceptions
- Performance Analysis
Programmable Logic
Distributed Application Samples
Several sample applications are included in Nut/OS distributions. Care has been taken, that they compile and link to executable binaries on all supported boards. However, not all functions may be available on all targets. In worst case a sample may simply print out an error message on the console.
Portability
Nut/OS supports several different targets. Typically application development will start for a specific platform, but it is a good idea to keep your code as portable as possible. This will give you the freedom to move to another hardware with minimal effort.