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

1131 Commits

Author SHA1 Message Date
Bogdan Marinescu
01835325d9 Merge pull request #21 from tcoram/master
Fixed "lua: attempt to call a string value" when loading platform libraries
2013-06-12 12:20:47 -07:00
Todd Coram
4761e7a49a platform lib init fixed 2013-06-12 10:57:47 -04:00
Bogdan Marinescu
a65b60c078 Switched to the new build system and configurator 2013-05-27 11:28:19 +03:00
Bogdan Marinescu
96fcd19e7c Added more components to the simulator
Also, I should really document the simulator at some point. Not after
a week-end of writing and updating docs though.
2013-05-26 21:34:28 +03:00
Bogdan Marinescu
89acc4910b Various fixes
- build_release.lua changed to use the new build system
- checked for proper compilation of all known configurations (boards/known/)
- fixed various small issues in the builder/utils library
- added 'disp_mode=minimal'
2013-05-25 19:52:36 +03:00
Bogdan Marinescu
c08e1ae7b0 Documentation updates
- deleting references to the old build system
- arch_newport switched to AsciiDoc and updated with the new build system/configurator
- added 'source-highlighter' as a dependency to the doc builder
2013-05-25 16:52:14 +03:00
Bogdan Marinescu
4aff229c68 Documentation updates
- Updated docs about generating CPU constants
- Fixed errors in the configurator documentation
2013-05-25 14:43:23 +03:00
Bogdan Marinescu
400ab5bee5 Support for multiple SD cards added in the configurator
Documentation updated.
2013-05-25 14:18:32 +03:00
Bogdan Marinescu
a9da3f816b Documentation updated
- (mostly) finished configurator docs
- arch_overview conterted to AsciiDoc and updated
- 'adc' parameters updates in all configuration files
- added 'config_only' option to the build system
2013-05-25 01:30:08 +03:00
Bogdan Marinescu
e5b64a46fe More work on the configurator
- started on the docs
- added the 'autoenable' attribute to some components
- moved LM3S ADC-specific configuration data to the LM3S backend
2013-05-24 12:21:16 +03:00
James Snyder
f86cfd345b Adjust parser to not malloc when a thrown error might preventing allocations from beeing freed 2013-05-20 17:39:42 -05:00
Bogdan Marinescu
958f357257 Working on the new build system
- Deleted the Python build files
- Main documentation updated with information about how to use build_elua
- CSS updated to provide a bit of free space at the top of <h2> headings.
- Added rpc-lua.lua
- Fixed cross-compilation errors

References to scons still exist in the docs, they'll have to be removed.
2013-05-19 15:57:18 +03:00
Martin Guy
b8de3631b0 Allow BUILD_SHELL without BUILD_TERM
The only thing the shell uses from "term" is its getchar()
substitute, which ends up in platform_uart_getchar() on every
platform except i386. So if TERM is present, use its getchar()
redirector, and if it isn't, use platform_uart() directly.
2013-05-15 17:17:32 +02:00
Martin Guy
9a52067a40 Mizar32: Make inclusion of term.*() Lua module depend on BUILD_TERM
Just a config dependency change so that undefining BUILD_TERM
automatically disables the "term" module.
2013-05-15 17:15:57 +02:00
Martin Guy
63fbfb68c5 Make table of available RAM regions static
Instead of constructing them on the stack at runtime in every call to
platform_get_{first,last}_free_ram().
When there was is only one RAM region this makes no difference, as the
whole thing is optimised out. However, when there are more than one
region, this improves both size and speed, especially in the simple
allocator, which calls these functions twice each at every call to
malloc().
2013-05-07 17:57:07 +02:00
Martin Guy
ed9b7df41a Fix compiler warming about unused variable in dlmalloc when !HAVE_MMAP 2013-05-07 17:32:16 +02:00
Martin Guy
66272c725b Add 2 missing lines of the EGC patch
These two lines are in the Emergency Garbage Collector patches but
seem to have got lost in transit.
The case it handles (exceeding MEMLIMIT) is pretty rare.
2013-05-07 17:15:58 +02:00
Martin Guy
93db286103 Fix compiler warning for type of luai_ipow()
The Lua VM's luai_ipow() function is reused in lmathlib to provide
an integer version of the pow() function. However luai_ipow's
declaration in luac is only for LUA_CORE, whereas lmathlib.c is LUA_LIB.
The least invasive fix is just to redeclare it in lmathlib.c
2013-05-07 17:05:26 +02:00
Martin Guy
b54e29c09a Make inclusion of elua.shell() conditional on BUILD_SHELL
Compilation failed if te elua Lua module was included but
BIULD_SHELL was not defined. This fixes that case.
2013-05-03 14:22:50 +02:00
Bogdan Marinescu
463f0bceda Merge branch 'master' into luabuild
Conflicts:
	.gitignore
	src/common_tmr.c
	src/platform/lm3s/platform.c
	src/platform/lm3s/platform_conf.h
	src/platform/sim/platform_conf.h
	src/platform/stm32/platform_conf.h
	src/platform/str9/platform_conf.h
  utils/build.lua

Also fixed some minor issues in the builder.
2013-04-25 16:55:29 +03:00
Bogdan Marinescu
803cac6df4 set the date of release to 04.04.2013 v0.9 2013-04-02 00:30:40 +03:00
Bogdan Marinescu
1d43a6e905 updated version.h for consistency 2013-04-01 23:10:36 +03:00
Bogdan Marinescu
8a14d53859 fixed TODO in the WOFS documentation 2013-04-01 22:25:23 +03:00
Bogdan Marinescu
e9748cedd6 make toolchain docs obsolete 2013-04-01 01:41:50 +03:00
Thiago Naves
e9b78af1cc Merge branch 'master' of github.com:elua/elua 2013-03-12 14:19:00 -07:00
Thiago Naves
a09721890f Added SD Card support to STR-E912 board (note: set the card_cs_sel jumper to the position closer to the JTAG) 2013-03-12 14:18:35 -07:00
Bogdan Marinescu
e3c30e5b2d updated status with the new SolderCore port 2013-03-05 01:59:47 +02:00
Bogdan Marinescu
162bae6bf9 MMC fix in sim mode 2013-02-27 00:27:35 +02:00
Bogdan Marinescu
2d97e43542 added CHANGELOG for the new version 2013-02-27 00:09:08 +02:00
Bogdan Marinescu
a662751b1a Updated ROMFS documentation
- ROMFS doc file switched to AsciiDoc
- changed ROMFS documentation to match the current implementation
2013-01-22 01:54:07 +02:00
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