1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

398 Commits

Author SHA1 Message Date
James Snyder
51221f8b4c Merge 0.7 changes to trunk. 2010-01-25 23:43:05 +00:00
James Snyder
d3e1ba98a8 Timer support for LPC17xx (MBED). 2010-01-06 06:27:27 +00:00
James Snyder
9c6062a632 Initial basic mbed (LPC1768) support. 2010-01-05 03:40:12 +00:00
James Snyder
b00c7e1d7e Google Analytics tracking code, extra meta tags. 2009-12-17 03:55:14 +00:00
Bogdan Marinescu
42ec61613b pio.port.setval bugfix (thanks, Teo! :)) 2009-12-16 19:43:34 +00:00
Dado Sutter
fd2379c07e Pong (game) enhancements 2009-12-12 04:12:18 +00:00
Dado Sutter
67be234b32 eLua platform specific disp module, added to LM3S aux setup Lua modules.
This helps apps to treat natively-supported LM3S OLED RIT display as just another onboard device.
Doc will be enhanced to give examples on these modules' usages.
2009-12-11 06:38:45 +00:00
Dado Sutter
d29ac7a556 eLua Icon instantiation, to show up in browsers' URL textbox, tabs, bookmarks .... 2009-12-11 06:32:51 +00:00
James Snyder
f6699a9355 RPC enabled for lpc24xx platform. 2009-12-10 20:38:57 +00:00
James Snyder
b935af43c7 Additional remote -> rpc touch-ups. 2009-12-10 20:38:48 +00:00
James Snyder
c85e3a1d2d Starting Cleanup of LuaRPC for 0.7 release.
- added some more documentation (not yet done)
- alternate uarts can be selected (boot mode defaults to console uarts)
- renamed "remote" references to "rpc" (may as well keep the original name)
- switch default error handler to luaL_error (presumably wasn't available for
  old 4.x LuaRPC)
- tweaks to exception handling to make things more consistent (hopefully)
2009-12-04 01:46:47 +00:00
James Snyder
26c81b4d2b Formatting touch-ups in STM32 platform. 2009-12-03 22:08:28 +00:00
Bogdan Marinescu
e935ae52e7 mostly cosmetic changes for the new romfs compress/compile feature 2009-12-03 11:29:33 +00:00
James Snyder
d215353e2f Fix for STM32 timer clocks. 2009-12-03 01:15:36 +00:00
James Snyder
df1ab9e534 Fixes for experimental "compress" mode for romfs. 2009-12-02 21:22:41 +00:00
Bogdan Marinescu
26361ea4cd EXPERIMENTAL FEATURE: romfs compression/precompilation.
Added another "romfs" parameter to SConstruct. It can take one of 3 values:

- "verbatim" (default): copy all the files from the eLua romfs/ directory to the binary image (exactly what happened until now)
- "compress": use LuaSrcDiet (http://luaforge.net/projects/luasrcdiet, now included in the eLua distribution) to "compress" the source code by using different tricks (shorter identifiers, removing comments and EOLS, and so on). The output is still a compilable Lua file (although in most case it looks completely different from the original) which is copied in the eLua binary image instead of the original Lua file. The compression obtained by using this method seems to be very good in practice, thus it will save flash when needed.
- "compile": use the eLua cross compiler (that must be built first by running 'scons -f cross-lua.py') to precompile the Lua files to bytecode, and write the bytecode to the image instead of the source file. This way, one can save both time (the scripts don't need to be compiled anymore) and RAM (for the same reason, especially since the Lua parser uses the stack a lot, which can lead to very nasty and hard to diagnose stack overflow bugs). It will be even more useful in the future, when (hopefully) more and more Lua bytecode data structures will be available directly from Flash (without having to copy them RAM as it happens now). It might also decrease the romfs memory footprint, but then again, it might not; it pretty much depends on the Lua programs included in the romfs.
2009-12-02 19:33:03 +00:00
James Snyder
908b3f5d8d Fixes for STM32 from mmc branch. 2009-12-01 00:08:53 +00:00
Dado Sutter
1d24679cc3 Snake game refinements (by Téo Benjamin) 2009-11-29 03:25:32 +00:00
Dado Sutter
19705b7ef4 cat shell cmd usage text refined. 2009-11-25 19:21:48 +00:00
Dado Sutter
633b98a9d0 cat shell cmd now supports multiple arguments
cat (or type) prints file contents one after another, just like Linux cat
command line lenght is currently limited, not too long (can be extended if needed)
2009-11-25 19:20:03 +00:00
Dado Sutter
dcf68b033b An eLua Icon for the URL box, Tabs, Bookmarks, ...., on the browsers.
Tks Pedro !
The icon deserves some refinement but on 16x16 we can't expect too much.
I'll add the ref to buildall.lua when I have my two eyes opened.
2009-11-25 04:13:27 +00:00
Dado Sutter
4ac9f2d645 PT-BR fixes 2009-11-25 04:06:41 +00:00
Dado Sutter
02588db95c Minor eLua Examples fix.
dualpwm.lua runs on the STM32 board too.
2009-11-25 04:00:36 +00:00
James Snyder
4125feab53 Minor cleanup in LuaRPC. 2009-11-24 21:21:17 +00:00
Dado Sutter
344e68869e Instructions for the doc/site generation included in an added README.TXT file in /doc 2009-11-24 14:24:52 +00:00
Dado Sutter
2ecc8d1eca PT doc revisions
Minor doc fixes
Preparing news and doc for future v0.7
2009-11-24 01:58:23 +00:00
Dado Sutter
77b6c6ca68 cat/type command cosmetic refactoring 2009-11-23 20:05:28 +00:00
Dado Sutter
a70beaf857 A new shell command for eLua.
cat or type, takes one path+filename as it's argument and prints it's text content.
Code revision and testing are apreciated.
2009-11-23 19:38:56 +00:00
Dado Sutter
ac5859d332 Removing source code download option form the binaries table.
Revisions in the pt_br version.
2009-11-23 10:58:13 +00:00
Dado Sutter
c2b214c364 Fixing the snake file format committed, sorry (GCode got me this time :) 2009-11-20 12:32:20 +00:00
Dado Sutter
6172f55b76 Snake added to SConstruct ROMFS build table.
It was NOT added to the default builds of the LM3S boards.
2009-11-20 12:15:20 +00:00
Dado Sutter
167cb2a514 New game added to eLua ROMFS. Snake runs on LM3S boards with RIT OLED Display.
Small changes on Pong, another game for the same platform above.
2009-11-20 12:12:20 +00:00
Dado Sutter
a15ff9a29b Minor syntax error, fixed. 2009-11-20 12:09:40 +00:00
James Snyder
78e30a4479 - add initial LuaRPC reference
- comment cleanup in luarpc.c
- prepend doc pages with "eLua -" (google link to our main page is just
  "News")
2009-11-14 22:56:47 +00:00
James Snyder
b9fde89e98 Formatting tweaks for LuaRPC. 2009-11-14 22:56:35 +00:00
James Snyder
d04fb2b2bb Add initial refman entry for can module. 2009-11-14 22:56:23 +00:00
Dado Sutter
2812e9eef3 Randomize seed on start now depends on user time delay
Longer screen power off delay at the end
2009-11-08 01:03:37 +00:00
James Snyder
a66a9fed6d Add hard fault handler for STM32 that dumps register contents to aid in
debugging.

Might be nice to have a generalized form of something like this to help in
pointing in the right direction when one doesn't have a JTAG debugger.
2009-11-07 00:24:02 +00:00
Bogdan Marinescu
4d724fd5f9 integrated Robert's EGC fixes 2009-11-06 13:51:28 +00:00
Bogdan Marinescu
126cd5bece integrated Robert's EGC fix for eLua 2009-11-05 21:11:12 +00:00
Bogdan Marinescu
be9288e0aa svn:ignore updated on doc/ 2009-11-04 20:48:19 +00:00
Bogdan Marinescu
1ad9c02807 fixing merge error on doc/, part III (and probably the last one) 2009-11-04 20:47:03 +00:00
Bogdan Marinescu
7e145db554 fixing merge error on doc/, part II 2009-11-04 20:42:59 +00:00
Bogdan Marinescu
9c15b8e0b0 fixing merge error on doc/, part I 2009-11-04 20:42:27 +00:00
Bogdan Marinescu
872fcf1fde manual disambiguation for uart.write 2009-11-04 20:14:14 +00:00
Bogdan Marinescu
8f2e76b3c8 UART bug fix 2009-11-04 18:47:30 +00:00
Dado Sutter
22dc664737 - Scontruct: autorun.lua file, if found in /romfs, is now included in eLua builds for
any platform. No need to specify it in the file_list table.
- minor comments added to SConstruct
- LM3S platform specific modules commented
- Minor comments in Pong
- Debugging prints removed from Tetrives
2009-11-02 17:44:35 +00:00
Bogdan Marinescu
f1d8594ea2 added PWM to the LPC24xx platform (and also pwmled.lua) 2009-10-31 16:52:40 +00:00
Bogdan Marinescu
b2087c7d51 added interrupt support for LPC24xx (and virtual timers to illustrate it :) ) 2009-10-31 14:06:29 +00:00
Bogdan Marinescu
8476b93446 merged branch lpc24xx (r492:507) to trunk 2009-10-31 11:41:34 +00:00