Moxa W321-LX [65/80] Buzzer

Moxa W321-LX [65/80] Buzzer
W321/341 Linux Programmer's Guide
6-2
Flash Memory Map
Partition sizes are hard coded into the kernel binary. To change the partition sizes, you will need to rebuild the
kernel. The flash memory map is shown in the following table.
NOTE
1.
The default Moxa file system only enables the network. It lets users recover the user file system when it
fails.
2.
The user file system is a complete file system. Users can create and delete directories and files (including
source code and executable files) as needed.
3.
Users can create the user file system on the PC host or target platform, and then copy it to the W321/341
.
4.
To improve system performance, we strongly recommend that you install your application programs on the
on-board flash. However, since the on-board fl
ash has a fixed amount of free memory space, you must not
over-write it, and instead use an external storage card, such as an SD for the data log.
Device API
The W321/341 support control devices with the ioctl system API. You will need to include <moxadevice.h>,
and use the following ioctl function.
int ioctl(int d, int request,…);
Input: int d - open device node return file handle
int request – argument in or out
Use the desktop Linux’s man page for detailed documentation:
#man ioctl
RTC (Real Time Clock)
The device node is located at /dev/rtc. The W321/341 support Linux standard simple RTC control. You must
include <linux/rtc.h>.
1. Function: RTC_RD_TIME
int ioctl(fd, RTC_RD_TIME, struct rtc_time *time);
Description: read time information from RTC. It will return the value on argument 3.
2. Function: RTC_SET_TIME
int ioctl(fd, RTC_SET_TIME, struct rtc_time *time);
Description: set RTC time. Argument 3 will be passed to RTC.
Buzzer
The device node is located at /dev/console. The W321/341 support Linux standard buzzer control, with the
W321/341’s buzzer running at a fixed frequency of 100 Hz. You must include <sys/kd. h>.
Address
Size
Contents
0x80000000
0x80040000
256KB
Boot LoaderRead ONLY
0x800400000x80200000
1.75 MB
Kernel object codeRead ONLY
0x802000000x80a00000
8 MB
Root file system (JFFS2) Read ONLY
0x80a000000x81000000
6MB
User root file system (JFFS2) Read/Write

Содержание

Похожие устройства

Скачать
Случайные обсуждения