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

1201 Commits

Author SHA1 Message Date
Bogdan Marinescu
31e42f6891 updated cross compilation docs 2013-01-22 01:30:43 +02:00
Bogdan Marinescu
16b5967b64 Merge branch 'shellfs' 2013-01-22 01:10:31 +02:00
Bogdan Marinescu
12a5f2d908 fix scons compilation with the new shell 2013-01-22 01:07:05 +02:00
Bogdan Marinescu
ea6f7db347 fixed to shell code in TCP/IP mode 2013-01-22 00:56:49 +02:00
Bogdan Marinescu
c0171595a1 remove BUILD_DIR from cross-lua.lua too 2013-01-20 20:10:01 +02:00
Bogdan Marinescu
947bdeba96 removed the (mostly useless) BUILD_DIR option from the Lua based builder 2013-01-20 19:46:39 +02:00
Bogdan Marinescu
d2a43f2741 added documentation about the advanced shell 2013-01-16 02:31:34 +02:00
Bogdan Marinescu
ee737d717e improved file type reporting 2013-01-16 01:54:34 +02:00
Bogdan Marinescu
0afbbecc17 Working on the documentation for the new shell commands
- "using.html" converted to AsciiDoc mode
- the shell documentation was split in a separate file and divided into
  two parts: docs for the simple shell and for the advanced shell
  (yet to be written)
2013-01-16 01:52:21 +02:00
Bogdan Marinescu
6b2add7141 fixed potential double dm_closedir calls 2013-01-14 22:22:51 +02:00
Bogdan Marinescu
af77642dd8 small style changes 2013-01-14 21:42:55 +02:00
Bogdan Marinescu
800c126882 fixed invalid return value in cmn_fs_get_type 2013-01-13 18:50:24 +02:00
Bogdan Marinescu
b2a6598d69 don't include cmn_fs* functions in basic shell mode 2013-01-09 23:00:04 +02:00
Bogdan Marinescu
1d01226d35 updated documentation about multiple SD card support 2013-01-07 23:49:10 +02:00
Bogdan Marinescu
82eab855dd Style changes
- remove stray printf
- use a consistent naming scheme for MMCFS_NUM_CARDS
2013-01-07 23:31:13 +02:00
Bogdan Marinescu
1d8f66faed Added support for multiple SD cards
The MMCFS implementation can now handle more than one MMC card. To
use this feature, define these macros in platform_conf.h:

MMCFS_NUM_CARDS - the total number of cards
MMCFS_CS_PORT_ARRAY - array of CS ports
MMCFS_CS_PIN_ARRAY - array of CS pins
MMCFS_SPI_NUM_ARRAY - array of SPI port numbers

For example:
 #define MMCFS_NUM_CARDS          2
 #define MMCFS_CS_PORT_ARRAY      { 7, 2 }
 #define MMCFS_CS_PIN_ARRAY       { 0, 5 }
 #define MMCFS_SPI_NUM_ARRAY      { 0, 0 }

defines a system with 2 MMC cards. The first one uses SPI0 and has its
CS on PG0. The second one also uses SPI0 (this is perfectly possible)
but has its CS on PC5. This was the configuration used to test this
feature on a EK-LM3S8962 board.
2013-01-07 23:30:28 +02:00
Bogdan Marinescu
5d97e95489 Shell commands are now callable from the 'elua' module
Simply use 'elua.shell( <command> )', for example:

elua.shell( "ls /rom" )

In called like this, "lua" and "exit" are disallowed.
2012-11-14 00:00:24 +02:00
Bogdan Marinescu
d05a3ae0e9 Lua-based build system improvements
The build system now accepts a single C file as a target and compiles that
file only. For example:

$ lua build_elua.lua board=ek-lm3s8962 src/main.c

Two other switches were added to the build sysem (both of which work only
with the single file target shown above):

"-E": preprocess file instead of compiling it
"-S": generate assembler source for the file instead of compiling it
2012-10-28 20:53:14 +02:00
Bogdan Marinescu
b38a1fb40e Small memory optimization in Lua strings
Get rid of the "reserved" byte in the TString data type. Might actually
save more than one byte, depdending on the compiler structure alignment
rules (and the architecture). Tested with the Lua 5.1 test suite.
2012-10-28 20:06:07 +02:00
Bogdan Marinescu
2d21dc3617 More changes to the build system
1. Added board_config_file (specify the board configuration file directly)
2. Added skip_conf (skip configuration step, use previously generated header)

Also, code refactgoring.
2012-10-17 00:22:47 +03:00
Bogdan Marinescu
480290bf86 Build system changes
1. Respect the value of build_dir
2. Added romfs_dir (specify ROMFS directory location)
3. Added output_dir (specify the location of the final executable and
   associated (bin, hex) files)
2012-10-15 23:45:25 +03:00
Bogdan Marinescu
1b5294736b shell fix for shell_recv 2012-10-11 21:46:48 +03:00
Bogdan Marinescu
e42b88561a 'mv' command and shell code refactoring
There is a new command in the shell ('mv' - move/rename files).
Also, the shell code was refactored into its own directory (src/shell).
The 'help' command in the shell was updated and supports 'help <command>'.
There is a new BUILD_ADVANCED_SHELL build time macro that enables the
advanced shell features (currently 'cp' with recursion (and other improvements),
'mv' and 'rm').
2012-10-07 23:54:28 +03:00
Bogdan Marinescu
2402627a10 Adding rm and rmdir commands to the shell (WIP) 2012-10-03 02:52:39 +03:00
Bogdan Marinescu
7923ad6188 added MMCFS emulation under the simulator 2012-10-03 02:51:55 +03:00
Bogdan Marinescu
4b710c1031 added MMCFS emulation under the simulator 2012-10-01 00:30:59 +03:00
Bogdan Marinescu
389ce9b41a More improvements to the shell (WIP)
- file masks ('*' and '?' are now accepted)
- recursive operations for ls/cp
- new FS-specific functions (src/common_fs.c)
2012-09-19 00:09:39 +03:00
Bogdan Marinescu
9e7f1ab4cd Preliminary directory support
- For now only supported for MMCFS
- 'dir' function in shell augmented to show directories and
  to traverse a path recursively if requested
- new command 'mkdir' in shell
2012-09-10 19:12:15 +03:00
Bogdan Marinescu
070e59e55b converted LM3S to the new build system + other fixes
Added 'board' and 'cpu' arguments to backend configuration functions.
2012-09-09 02:43:49 +03:00
James Snyder
402bc4c6c0 fix handling of rotables in luarpc 2012-09-05 16:16:19 -05:00
Bogdan Marinescu
030e8d7ef4 Merge pull request #12 from molnarkares/master
stext and etex fix (tracker #44)
2012-08-24 10:24:32 -07:00
molnarkares
ae99eab04d stext and etext fix 2012-08-24 16:56:24 +02:00
Bogdan Marinescu
e96a926df3 Added proper platform modules handling 2012-08-19 18:43:11 +03:00
Bogdan Marinescu
7603cc05f2 LM3S platform specific PIO fixes
Changed the LM3S platform specific PIO module to be consistent with
the generic PIO module's API.
2012-08-17 20:27:40 +03:00
Bogdan Marinescu
6b7116caf0 added explicit GPIO mappings for UART 2012-08-17 20:27:22 +03:00
Bogdan Marinescu
53f5807cee LM3S platform fixes
1. fixed "uart_setup" function
2. enabled UART buffering
3. changed invalid keys in lm3s.pio
2012-08-15 21:55:13 +03:00
Bogdan Marinescu
26989d4bb8 LM3S: timer interrupt support 2012-08-08 20:38:51 +03:00
Bogdan Marinescu
135146eef6 removed debugging printf statements 2012-08-06 23:57:13 +03:00
Bogdan Marinescu
b5e32d4334 GPIO interrupt support on LM3S + systimer fix on 9B92/9D92 2012-08-06 23:52:41 +03:00
Bogdan Marinescu
da8510601f fixed compilation issue when INT_TMR_MATCH is not declared 2012-08-06 23:52:11 +03:00
Bogdan Marinescu
9f894fd937 LM3S platform specific PIO module
New module on the LM3S platform which deals with platform
specific PIO setup functionality.
2012-08-01 00:18:27 +03:00
Bogdan Marinescu
89f16dc601 Fixed integer-only Newlib stubs
Newer Newlib versions use different functions to implement integer-only versions
of printf/scanf. Our stubs were modified to take advantage of these changes and
keep the code size low in integer-only versions of eLua.
2012-07-29 13:11:13 +03:00
Bogdan Marinescu
d09bea3273 Platform conversion + other changes
- AVR32 platform converted to use the new build system
- new section in configuration: 'build'. Used to set predefined
  build parameters (such as allocator, target, boot mode...)
2012-07-20 23:30:25 +03:00
Bogdan Marinescu
84f4d68e06 Merge branch 'master' of github.com:elua/elua into luabuild 2012-07-18 18:32:43 +03:00
Martin Guy
0e1db09385 Revert "Fixed the configuration file in order to work with the web
builder"

This reverts commit fc57957f7ac5fdf0ceebfd7acf300a8325569d44 which was
meant to be applied to the web-builder branch but ended up in the master
branch by mistake.
See https://github.com/elua/elua/commit/fc57957f#commitcomment-1552828
2012-07-18 12:06:10 +02:00
Bogdan Marinescu
0aac4509eb Changed flash sector sizes to 32 bits 2012-07-16 17:32:55 +03:00
Bogdan Marinescu
5a498011c8 i386 platform converted to the new build system 2012-07-15 02:21:53 +03:00
Bogdan Marinescu
767b9243f9 changed module selection mechanism 2012-07-15 00:50:12 +03:00
Bogdan Marinescu
37e20330e7 LPC17xx modified for the new build system + other changes
- more flexible specification of the RAM structure in the build configuration file
- fix for allocator choice in build_elua.lua
2012-07-14 20:00:54 +03:00
Bogdan Marinescu
f4eeedf162 STR9 converted to the new build system 2012-07-14 18:27:37 +03:00