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

71 Commits

Author SHA1 Message Date
Bogdan Marinescu
dadbc85bfc documentation updated. phew :) 2008-09-02 10:55:35 +00:00
Bogdan Marinescu
95e5875b82 getting ready for 0.4 2008-09-01 20:32:43 +00:00
Bogdan Marinescu
e0ae30c61e moved the files from examples in the ROM file system 2008-09-01 16:26:20 +00:00
Bogdan Marinescu
9bac0ecef5 changed ignore property for the new inc/romfiles.h file that replaces the previous inc/luatest.h file 2008-09-01 16:03:33 +00:00
Bogdan Marinescu
fc70505266 renamed files to romfs, now it's much less confusing hopefully 2008-09-01 13:32:05 +00:00
Bogdan Marinescu
0c6731db5b modified the build system. Also removed the 'mem' command from the shell, as it was very confusing 2008-09-01 13:21:06 +00:00
Bogdan Marinescu
86ecb7bbe2 reverted some changes 2008-08-28 19:44:16 +00:00
Bogdan Marinescu
4ef9235006 - platform_pio_op can now return an error (for operations like pullup, pulldown, nopull) which will be translated by the PIO module to a Lua error
- fixed an error in the "pio_pin_get" function from the PIO module
- fixed an error in the platform_pio_op implementation of AT91SAM7X
2008-08-28 19:41:58 +00:00
Bogdan Marinescu
4adda7ddaa piano.lua with correct line endings 2008-08-27 20:09:13 +00:00
Bogdan Marinescu
b5f59efa8e - added "board" as a compile time parameter, it will specify a name for the board on which eLua works. This helps if the same CPU is used on more than one board with different
I/O setup. 
- the pd() module has a new method (board) and gets it CPU, platform and board name directly from the build system (command line macros). It's much easier to work like this.
- the samples (examples/) were updated to check pd.board() rather than pd.platform()/pd.cpu(), which is a much more logical way to do things, since it ties the sample to a 
  specific I/O configuration, not with a CPU.
- updated PWM code for AT91SAM7X, now the "piano" example works for both LM3Sxxxx and AT91SAM7X256.
- added 3 new methods to the PIO module: pullup(), pulldown(), ad nopullup(), their meaning is obvious.
2008-08-27 20:05:09 +00:00
Bogdan Marinescu
a5e453854d call the correct version of mallinfo() 2008-08-27 13:48:28 +00:00
Bogdan Marinescu
b6e7ade77c - malloc.c/.h are now dlmalloc.c/.h
- new shell command: mem
- new module: bit (for bit operations)
- removed UARTx, TMRx, SPIx, PWMx constants from the respectives modules, as they only waste memory space. But now the same
  modules will return an error (via luaL_error) if an invalid resource ID is used. Note that this does not apply to PIO, since
  PIO uses special encodings for ports/pins.
- new methods in pio: port and pin to return the port/pin encoded in a pio value.
2008-08-27 13:39:10 +00:00
Bogdan Marinescu
f657e55b02 Now the shell can receive and execute both source code and compiled chunks. Also a small fix in the term module 2008-08-25 21:42:54 +00:00
Bogdan Marinescu
71bbc1e7e0 piano.lua added to repository 2008-08-25 20:19:15 +00:00
Bogdan Marinescu
edf326cffd added the piano example (so far only for LM3S8962) and modified the term interface a bit 2008-08-25 20:18:50 +00:00
Bogdan Marinescu
86386ae363 fixed a few unsigned->signed overflows 2008-08-19 20:21:10 +00:00
Bogdan Marinescu
38be9bec88 preliminary support for PWM on AT91SAM7X256/AT91SAM7X512 2008-08-19 19:23:47 +00:00
Bogdan Marinescu
7537414c3f added a TVBGone implementation using the PWM module, currently it only works on the LM3S platform 2008-08-18 21:00:40 +00:00
Bogdan Marinescu
3379b15660 added LHF's lpack module 2008-08-18 17:43:26 +00:00
Bogdan Marinescu
3ce5487a73 added the PWM module, so far supported only on LM3S 2008-08-18 16:29:09 +00:00
Bogdan Marinescu
b38e258040 fixed an obsolete comment in stubs.c 2008-08-16 22:29:11 +00:00
Bogdan Marinescu
7f7315adfd Finally added support for multiple memory spaces (preliminary). It works on my
LPC2888 board. The allocator used is dlmalloc, just as in Newlib, but it's a 
newer version than can handle non-contiguous memory spaces (2.8.3, as opposed
to 2.6.4 in Newlib 1.16.0, I really have no idea why they're using such an
ancient version of dlmalloc). To use it add "allocator=multiple" to your scons
command line (default for LPC2888).
2008-08-16 22:27:02 +00:00
Bogdan Marinescu
660418c23d Tried two different TLSF implementations, none of them works properly. Will try to
use a different dlmalloc version for multiple memory spaces. In any case, TLSF is
OUT.
2008-08-16 15:50:16 +00:00
Bogdan Marinescu
75311aec51 TLSF allocator from rtportal, not working properly 2008-08-14 07:38:30 +00:00
Bogdan Marinescu
09ac410a02 Added support for multiple RAM spaces using the TLSF allocator.
This takes care of my LPC2888 board (any many other board out there)
that have RAM both on the CPU itself and on a separate chip.
To use it add "allocator=tlsf" to your scons build command.
Even though the code for all the platform was modified, the new code
should not modify the "old" allocator behaviour.
Also added a new "mem" command to the shell, it gives information about
the current RAM state (total, used, free).
NOT YET TESTED !!! So use with care.
2008-08-13 13:42:57 +00:00
Bogdan Marinescu
4901305cb9 first working version on LPC2888 2008-08-12 22:29:50 +00:00
Bogdan Marinescu
3406a06f4d LPC2888 port mostly functional, still working on it 2008-08-12 20:00:05 +00:00
Bogdan Marinescu
5efc3cb2ac Adding the new LPC2888 platform 2008-08-11 13:34:59 +00:00
Frédéric Thomas
417e46f0d1 No need to #define LUA_NUMBER_INTEGRAL twice in the same file: 2008-08-09 15:37:22 +00:00
Frédéric Thomas
0fa7dda2cb Detect math error in hangman & use consistent/clear error messaging 2008-08-09 15:36:11 +00:00
Bogdan Marinescu
db2c6ed4d9 corrected errors in some examples 2008-08-09 11:15:39 +00:00
Bogdan Marinescu
b17bb7b007 updated CHANGELOG and LICENSE for the new release 2008-08-09 11:03:35 +00:00
Bogdan Marinescu
7a8ea9d2db removed obsolete 'name' method from the pd module 2008-08-09 10:46:23 +00:00
Bogdan Marinescu
0ec2230e8e bumped version number 2008-08-09 09:56:08 +00:00
Bogdan Marinescu
8d4416853c updated dependencies in docs 2008-08-08 15:56:43 +00:00
Bogdan Marinescu
88dc0a59fa updated UART module documentation (send_buf is now sendstr and it can take more than one argument) 2008-08-08 15:55:03 +00:00
Bogdan Marinescu
8d8b39b600 now the recv() buffer is only allocated when doing a recv. This way we don't keep a relatively large (4k) memory area blocked all the time 2008-08-08 14:25:56 +00:00
Bogdan Marinescu
5975df54b6 documentation updated 2008-08-08 12:56:29 +00:00
Bogdan Marinescu
1e080a2b61 enabled shell for i386 2008-08-07 20:02:24 +00:00
Bogdan Marinescu
cc0bff47fd small changes to various platform ports 2008-08-07 16:46:15 +00:00
Bogdan Marinescu
d34924b018 added *.elf and *.bin to svn:ignore 2008-08-07 16:10:39 +00:00
Bogdan Marinescu
821635ecee added timeouts in term_translate to handle terminal escape sequences properly 2008-08-07 11:46:34 +00:00
Bogdan Marinescu
f52fc32230 added ESC to term keys 2008-08-07 11:45:43 +00:00
Bogdan Marinescu
664842e04c few bugfixes, added ESC to exit game 2008-08-07 11:45:26 +00:00
Bogdan Marinescu
f723f9f795 eLua examples are now part of the repository 2008-08-06 15:26:25 +00:00
Frédéric Thomas
05122bca58 Add support for lm3s6965. 2008-08-06 08:57:26 +00:00
Frédéric Thomas
7d89c33c67 Update doc - remove code extract no longer valid 2008-08-06 08:56:07 +00:00
Bogdan Marinescu
a3b3d3f7dc added term module to Lua, various fixes 2008-08-05 19:58:19 +00:00
Frédéric Thomas
ff3b4a3544 Minimize (textual) differences with standard Lua and Lualong (removing extra white space, etc). 2008-08-05 14:26:28 +00:00
Frédéric Thomas
d247f3dd69 Fix warning about parenthesis in operands of == 2008-08-05 10:07:08 +00:00