eLua - Embedded Lua
Language:
eLua project
Overview
What is eLua?
Features
Audience
Authors
Contacts
License
Community
Discussion Lists
Forums
IRC
Twitter
Wiki
Credits
Donations
News
Media
eLua Wiki
eLua Web builder
eLua bug tracker
Status
Supported platforms
Modules per platform table
Modules overview status
Roadmap
Using eLua
Downloads
Binaries
Source code
Official releases
Bleeding edge (Git)
Developers
Old versions
0.7
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
Linenoise
Cross-compiling
LuaRPC
The serial multiplexer
Code examples
FAQ
eLua file systems
Read-Only FS in MCU Flash
R/W FAT FS in SD/MMC Cards
Remote file system (RFS)
eLua interrupt handlers
In Lua
In C
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
Implementing interrupts
Interrupt list
Platform interface
ADC
Overview
Functions
platform_adc_exists
platform_adc_op
platform_adc_check_timer_id
CAN
Overview
Data structures
CAN ID types
Functions
platform_can_exists
platform_can_setup
platform_can_send
platform_can_recv
CPU
Overview
Functions
platform_cpu_set_global_interrupts
platform_cpu_get_global_interrupts
platform_cpu_set_interrupt
platform_cpu_get_interrupt
platform_cpu_get_interrupt_flag
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
I2C
Overview
Data structures
I2C speed
I2C transfer direction
Functions
platform_i2c_exists
platform_i2c_setup
platform_i2c_send_start
platform_i2c_send_stop
platform_i2c_send_address
platform_i2c_send_byte
platform_i2c_recv_byte
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
platform_timer_set_match_int
Virtual timers
UART
Overview
Data structures
UART parity
UART stop bits
UART timeout
Virtual UART IDs
Flow control type
Functions
platform_uart_exists
platform_uart_setup
platform_uart_send
platform_s_uart_send
platform_uart_recv
platform_s_uart_recv
platform_uart_set_buffer
platform_uart_set_flow_control
platform_s_uart_set_flow_control
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
cpu.set_int_handler
cpu.get_int_handler
cpu.get_int_flag
elua
Overview
Functions
elua.egc_setup
elua.save_history
elua.version
i2c
Overview
Functions
i2c.setup
i2c.start
i2c.stop
i2c.address
i2c.write
i2c.read
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
tmr.set_match_int
uart
Overview
Data structures
UART constants
Functions
uart.setup
uart.write
uart.getchar
uart.read
uart.set_buffer
uart.set_flow_control
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
rtc
Overview
Functions
str9.rtc.settime
str9.rtc.gettime
str9.rtc.setdate
str9.rtc.getdate
mbed
pio
Overview
Functions
mbed.pio.configpin
eLua Frequently Asked Questions
eLua
has a list of frequently asked questions maintained by the community in the
eLua Wiki
at
wiki.eluaproject.net/FAQ