User`s manual
Getting Started With Linux on the LPC3250 OEM Board Page 38
Copyright 2009 © Embedded Artists AB Rev A
usb 1-1: new full speed USB device using usb-ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access SanDisk Cruzer 8.02 PQ:
0 ANSI: 0 CCS
sd 0:0:0:0: [sda] 15704063 512-byte hardware sectors (8040 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 15704063 512-byte hardware sectors (8040 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
scsi 0:0:0:1: CD-ROM SanDisk Cruzer 8.02 PQ:
0 ANSI: 0
2. As can be seen in the log the USB memory stick is available on sda1, more specifically
/dev/sda1
.
3. Mount the memory stick.
# mount –t vfat /dev/sda1 /mnt/rwfs
4. You can now access the file system.
# cd /mnt/rwfs
# ls
5.7 LEDs and Buttons
5.7.1 Hardware
Most of the LEDs and buttons on the base board are connected to the PCA9532 device. The NXP
Semiconductor PCA9532 device is a 16-bit I
2
C I/O Expander.
5.7.2 Device Driver and Configuration
The driver for the PCA9532 is located here in the source tree:
/drivers/i2c/chips/pca9532.c
.
The following configuration options are related to the I2C and PCA9532 functionality.
Configuration
Description
CONFIG_I2C Enable I2C support in the kernel
CONFIG_I2C_PNX Enable the LPC3250 I2C interface
CONFIG_MACH_LPC32XX_I2C0_ENABLE
Enable I2C0
CONFIG_SENSORS_PCA9532 Enable support for the PCA9532 I2C device
5.7.3 Usage
The PCA9532 has a number of files exposed at the following location in the file system:
/sys/bus/i2c/devices/0-0060/
. The files in the list below are accessible and each file
represent a register in the PCA9532.
File
Description