eLua - Embedded Lua
Language:
eLua project
Overview
What is eLua?
Features
Audience
Authors
Contacts
License
Community
Lists
Forums
User Labs
Credits
News
Status
Supported platforms
Modules per platform table
Modules overview status
Roadmap
Using eLua
Downloads
Binaries
Source code
Official releases
Bleeding edge (SVN)
Developers
Old versions
0.6
0.5
0.4.1
0.4
0.3
0.2
0.1
Version history
Generic info
Using eLua
Over UART
Over TCP/IP
On PC
The shell
Cross-compiling
LuaRPC
Code examples
FAQ
eLua file systems
Read-Only FS in MCU Flash
R/W FAT FS in SD/MMC Cards
Building eLua
Building eLua in Linux
Building eLua in Windows
Platform info
AT91SAM7x
AVR32
i386
LM3S
LPC2888
STR7
STR9
STM32
LPC2468
eLua internals
Overview
eLua's Architecture
Common code
Interface architecture
Booting eLua
Platforms and ports
Adding a new port
Platform interface
ADC
Overview
Functions
platform_adc_exists
platform_adc_op
platform_adc_check_timer_id
CPU
Overview
Functions
platform_cpu_enable_interrupts
platform_cpu_disable_interrupts
platform_cpu_get_frequency
Ethernet
Overview
Functions
platform_eth_send_packet
platform_eth_get_packet_nb
platform_eth_force_interrupt
platform_eth_get_elapsed_time
Low-level
Overview
Data structures
Status codes
Functions
platform_init
platform_get_last_free_ram
platform_get_last_free_ram
PIO
Overview
Data structures
PIO operations
PIO data type
Functions
platform_pio_has_port
platform_pio_has_pin
platform_pio_get_prefix
platform_pio_op
PWM
Overview
Data structures
PWM operations
Functions
platform_pwm_exists
platform_pwm_setup
platform_pwm_op
SPI
Overview
Data structures
Chip select
SPI mode
SPI data type
Functions
platform_spi_exists
platform_spi_setup
platform_spi_send_recv
platform_spi_select
Timers
Overview
Data structures
Timer data type
Timer operations
Functions
platform_timer_exists
platform_timer_delay
platform_s_timer_delay
platform_timer_op
platform_s_timer_op
platform_timer_get_diff_us
Virtual timers
UART
Overview
Data structures
UART parity
UART stop bits
UART timeout
Functions
platform_uart_exists
platform_uart_setup
platform_uart_send
platform_uart_recv
platform_s_uart_recv
More information
Consoles and terminals
TCP/IP in eLua
LTR (Lua Tiny RAM) in eLua
EGC (Emergency GC) in eLua
Booting on a PC
Booting from a PenDrive
Using OpenOCD
eLua toolchains
Building toolchains
ARM7 and ARM9
ARM Cortex-M3
i386
eLua coding style
Reference Manual
Generic modules
adc
Overview
Functions
adc.sample
adc.getsample
adc.getsamples
adc.insertsamples
adc.maxval
adc.setclock
adc.isdone
adc.setblocking
adc.setsmoothing
bit
Overview
Functions
bit.bit
bit.isset
bit.isclear
bit.set
bit.clear
bit.bnot
bit.band
bit.bor
bit.bxor
bit.lshift
bit.rshift
bit.arshift
can
Overview
Data structures
CAN ID types
Functions
can.setup
can.send
can.recv
cpu
Overview
Data structures
CPU constants
Functions
cpu.w32
cpu.r32
cpu.w16
cpu.r16
cpu.w8
cpu.r8
cpu.cli
cpu.sei
cpu.clock
elua
Overview
Functions
elua.egc_setup
net
Overview
Data structures
Error codes
Functions
net.packip
net.packip
net.unpackip
net.unpackip
net.lookup
net.socket
net.close
net.connect
net.accept
net.send
net.recv
pack
Overview
Functions
pack.pack
pack.unpack
pd
Overview
Functions
pd.platform
pd.cpu
pd.board
pio
Overview
Functions
pio.pin.setdir
pio.pin.setpull
pio.pin.setval
pio.pin.getval
pio.pin.sethigh
pio.pin.setlow
pio.port.setdir
pio.port.setpull
pio.port.setval
pio.port.getval
pio.port.sethigh
pio.port.setlow
pwm
Overview
Functions
pwm.setup
pwm.start
pwm.stop
pwm.setclock
pwm.getclock
rpc
Overview
Functions
rpc.connect
rpc.close
rpc.server
rpc.on_error
rpc.listen
rpc.peek
rpc.dispatch
spi
Overview
Functions
spi.setup
spi.sson
spi.ssoff
spi.write
spi.readwrite
term
Overview
Functions
term.clrscr
term.clreol
term.moveto
term.moveup
term.movedown
term.moveleft
term.moveright
term.getlines
term.getcols
term.print
term.getcx
term.getcy
term.getchar
tmr
Overview
Functions
tmr.delay
tmr.read
tmr.start
tmr.gettimediff
tmr.getmindelay
tmr.getmaxdelay
tmr.setclock
tmr.getclock
uart
Overview
Functions
uart.setup
uart.write
uart.getchar
uart.read
Platform modules
lm3s
disp
Overview
Functions
lm3s.disp.init
lm3s.disp.enable
lm3s.disp.disable
lm3s.disp.on
lm3s.disp.off
lm3s.disp.clear
lm3s.disp.print
lm3s.disp.draw
str9
pio
Overview
Functions
str9.pio.setpin
Reference manual - LM3S platform dependent modules
This paragraph presents all the modules specific to the
LM3S
platform.