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

1120 Commits

Author SHA1 Message Date
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
Bogdan Marinescu
449716c477 LPC288x platform conversion + other changes
- LPC288x platform converted to the new build system
- changed generation for the 'extmem' attribute
- added combined attributes (validated against two or more possible types)
2012-07-14 16:46:31 +03:00
Bogdan Marinescu
5cf6f2b8f3 Moved platform 'at91sam7x' to the new build system
Also, a small fix in the timer interrupt handling code.
2012-07-14 14:48:09 +03:00
Bogdan Marinescu
97d9cac313 Merge branch 'luabuild' of vps.eluaproject.net:elua into luabuild 2012-07-14 13:53:47 +03:00
Bogdan Marinescu
8af2c5d088 str7 platform converted to the new build system 2012-07-14 13:18:29 +03:00
Bogdan Marinescu
cb93117f42 switched the lpc24xx platform to the new build configuration 2012-07-13 12:09:11 +03:00
Bogdan Marinescu
a26d5423e1 Multiple changes
- platform 'sim' switched to the new build system
- fixed a few macro definitions
2012-07-12 14:07:59 +03:00
Bogdan Marinescu
dd12c470a7 Switched STM3210E-EVAL to the new build system 2012-07-12 13:47:29 +03:00
Bogdan Marinescu
aa529adf9b et-stm32 board description file DONE + other fixes/improvements 2012-07-12 01:50:38 +03:00
Bogdan Marinescu
86465389fb RO string bug fix
Fixed bug reported by Tim Van der Hulst:

-------------------------------------------------------------------------------
dofile('/mmc/test.lua') -- OK
require('test') -- Fail!!

-------------
/mmc
test.txt                       5 bytes
gprs.lua                       2910 bytes
util.lua                       385 bytes
test.lua                       385 bytes

Total on /mmc: 3685 bytes

-------------

Error: [string "xmodem"]:23: module 'test' not found:
        no field package.preload['test']
        no file '/mmc/test.lua;/mmc/test.lc;/rom/test.lua;/rom/test.lc'
        no file '/mmc/test.lc;/rom/test.lua;/rom/test.lc'
        no file '/rom/test.lua;/rom/test.lc'
        no file '/rom/test.lc'
-------------------------------------------------------------------------------

The problem was actually in the way read-only strings were created. If a read-only
string creation call specified a size which was different than the actual (C) size
of the string, the string didn't get null-terminated, which in turn led to some
interesting errors (like the one above).
2012-07-10 13:41:34 +03:00
Bogdan Marinescu
224ca8e27b fixed conflicts (weird) 2012-07-01 21:05:37 +03:00
Bogdan Marinescu
5ce6a8aef6 Multiple changes
- more build configuration attributes (allocator, target)
- more sanity checks
- more color in the builder
- 'romfs' is now a separate builder target, not a function being called separately
- added mappings for the configurator attributes
2012-07-01 20:59:55 +03:00
Bogdan Marinescu
e713e9866d More work on the configurator
- more logical generator for 'shell'
- added TCP/IP component and validation for TCP/IP data
- added 'needs' as a basic way to specify dependencies
2012-07-01 20:50:47 +03:00
Bogdan Marinescu
6a94e9a924 gettin better and better 2012-07-01 12:19:19 +03:00
Bogdan Marinescu
59beff6b99 working on the new build configurator. starting to get shape 2012-07-01 01:07:59 +03:00
Bogdan Marinescu
fff5754d3b working on components/attributes/configs/refactoring various platforms 2012-06-28 17:42:21 +03:00
Bogdan Marinescu
00a3fec2a9 initial builder souce base 2012-06-28 02:41:21 +03:00
Bogdan Marinescu
f791ee22c5 LM3S platform changes
1. Flash configuration is described in a file named flash_conf.h.
   This helps keeping things less confusing with WOFS.
2. WOFS enabled for LM3S9D92
2012-06-27 21:20:21 +03:00
Bogdan Marinescu
97c8821301 Merge branch 'master' of github.com:elua/elua 2012-06-27 21:12:27 +03:00
Bogdan Marinescu
a4cb128366 Bumped CPU frequency to 80MHz for LM3S9B92/LM3S9D92 2012-06-27 20:59:33 +03:00
Martin Guy
1ba7839a93 Use canonical Mizar32 web page URL 2012-06-27 14:36:16 +02:00
Bogdan Marinescu
d190763c7c added board EK-LM3S9D92 from TI (LM3S9D92) 2012-06-27 00:45:04 +03:00
Bogdan Marinescu
5a26274a6e WOFS documentation, last part + another style change 2012-06-27 00:34:58 +03:00
Bogdan Marinescu
df85a35a44 WOFS documentation, part II + a small style change 2012-06-26 13:27:15 +03:00
Bogdan Marinescu
c5f3033fb2 WOFS documentation, part I 2012-06-26 01:13:26 +03:00
Bogdan Marinescu
b705904ecd fixed compilation when BUILD_WOFS is not defined 2012-06-26 01:00:56 +03:00
Bogdan Marinescu
6877890892 renamed INTERNAL_FLASH_BLK_SIZE to INTERNAL_FLASH_UNIT_SIZE 2012-06-26 01:00:32 +03:00
Bogdan Marinescu
c2227a7645 fixed check for remaining size on WOFS 2012-06-26 00:57:55 +03:00
Bogdan Marinescu
a9ebeac525 WOFS fix: at most one file opened in write mode
Due to the nature of WOFS, at most one file can be opened on WOFS
in write mode at any given time.
2012-06-25 20:32:29 +03:00
Bogdan Marinescu
e35df54fda Fixed WOFS compilation on sim (Linux) 2012-06-25 10:50:32 +03:00
Bogdan Marinescu
e9a24cac11 Added WOFS + other stuff
This should really be more than one commit, but I wrote everything in one
shot and I don't feel like arranging the changes logically into different
commits. So, these are the changes:

- added WOFS (Write Once File System). This is a writeable file system that
  exists in the MCU's internal Flash memory and allows files to be written,
  but only once, in a single shot. More details to follow.
- the platform interface has a new MCU flash access interface.
- added WOFS "reference implementations" for two CPUs: LM3S8962 and
  STM32F103RE. They are easily extendable to other CPUs in the same platform
  and can be taken as a model for other platforms.
- the ROMFS file layout in memory was slightly changed.
- the simulator (src/platform/sim) got a new function (lseek).
- shell: now each shell command receives its arguments in a C-main-style
  (argc, argv) pair. This was originally Marcelo's idea and it finally
  made it to the master (although this particular implementation is mine),
  after I got fed up with all the argument parsing in the shell functions.
- new shell command: wofmt ("formats" a WOFS, effectively clearing it).
- a couple of small fixes in the shell code
2012-06-24 23:07:32 +03:00
Bogdan Marinescu
a378b8943e shell: multiple fixes
1. the filename for 'recv <filename>' was not set correctly
2. error messages for 'cp' were not always correct
3. check for copy errors and issue a message accordingly
2012-06-21 00:20:58 +03:00