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

438 Commits

Author SHA1 Message Date
Bogdan Marinescu
fecde22502 docs: added section about ROMFS, consoles and terminals, fixed some links 2009-03-11 21:30:18 +00:00
Bogdan Marinescu
f60ec8b87b forgot to add the LTR page to the repository :) 2009-03-11 13:58:57 +00:00
Bogdan Marinescu
27ffc016b7 added a page about LTR in the docs; other pages updated with links to this new LTR patch 2009-03-11 13:58:20 +00:00
Bogdan Marinescu
00ee06e90f generic stdio fix: now you should be able to use your terminal emulator with any kind of line endings on send (previously it only accepted CR+LF line endings) 2009-03-10 20:39:51 +00:00
Bogdan Marinescu
b80087c7e5 - added "Architecture" page (probably needs more work) and "coding style" page. Behold, my image map in all its glory :)
- changed structure
2009-03-09 21:58:28 +00:00
James Snyder
8c454b1295 Enabled hangman for ET-STM32, term seems to work. 2009-03-09 18:54:37 +00:00
James Snyder
a31daebc0a Added option CON_CR_TO_LF to enable using console without having to change
settings of terminal software to use CR+LF on send.
2009-03-07 23:37:28 +00:00
James Snyder
922d70c12b ADC buffer resizing now stops pending activity if needed.
ADC Buffer flushing changed to zero out buffer using Duff's device
UART software buffer disabled on LM3S by default.
2009-03-06 20:38:41 +00:00
James Snyder
1f2ffb2bfd Minor rearrangements for ADC.
Removed flush function.  Setting smoothing will now flush the buffers.
2009-03-06 20:38:26 +00:00
Bogdan Marinescu
6bafdfe9b2 reformatted and updated faq.html 2009-03-06 19:18:50 +00:00
James Snyder
303d97561d Make devkitarm an alias to arm-eabi-gcc. 2009-03-05 22:48:08 +00:00
James Snyder
041701045c Add devkitarm toolchain option. devkitarm seems to generate somewhat larger
code than the other toolchains I have experimented with.
2009-03-05 22:47:58 +00:00
Bogdan Marinescu
68e3750e61 - Updated "using.html" with (updated) instructions on cross-compiling.
- Removed the QR code from the navigation frame :) I like it, but it just doesn't fit there.
- Some more (hopefully final) fixes for AT91SAM interrupt handlers.
2009-03-05 22:44:06 +00:00
Bogdan Marinescu
8990038fa1 working on the docs 2009-03-05 12:46:04 +00:00
James Snyder
b4290c4aa4 Added timer compatibility check.
Smoothing resize checks that no operations are pending.
2009-03-05 07:06:59 +00:00
James Snyder
c05a00f643 Update comments.. 2009-03-05 07:06:39 +00:00
James Snyder
f1feb1e113 Name change, makes more sense as prepchannel rather than primechannel. 2009-03-05 07:06:16 +00:00
Bogdan Marinescu
7049cf999b OK, now I actually remembered to _add_ the STM32 page to SVN :) 2009-03-03 17:20:17 +00:00
James Snyder
ef653f7731 Update refman to describe changes to ADC. 2009-03-03 05:11:39 +00:00
Dado Sutter
6a920f3dee Minor editions and adjustments 2009-03-03 03:53:19 +00:00
Dado Sutter
84e71be504 Same as last commit but done right this time :)
Sorry, I commited a wrong test file.

wb_build.lua now supports the logo_onclick_link parameter, of wb_usr.lua
It defines an URL to be opened in a blank target windows.
Helpfull to bring navigation back to a "homepage".
2009-03-03 03:37:44 +00:00
Dado Sutter
cee498aaf8 wb build now supports the new wb_usr parameter logo_onclick_link.
As expected, it opens the URL in a new window target.
Usefull to go back to a "homepage".
2009-03-03 03:27:02 +00:00
James Snyder
3fc868b534 ADC Changes
- removed getsmoothing, setfreerunning, samplesready
- isdone has returned so that one can check if the reason why the buffer is
  dry is because no more samples are being collected
- smoothing should support fairly large lengths now (as long as you have the
  memory)
- added support to adc.sample to take a table as the first argument so that a
  set of channels can be started at closer to the same time.
    example:
    adcchannels = {0,1,2,3}
    adc.sample(adcchannels,8)

    this should collect samples on all 4 channels starting nearly at the same
    time.

- more comments added to elua_adc.c to describe behavior.

Misc
- remove rndpow2, not being used
2009-03-03 01:23:45 +00:00
Bogdan Marinescu
50407379bd added 'installing on stm32' page 2009-03-02 19:31:45 +00:00
Bogdan Marinescu
41641f657a added timers support for STM32 (and enabled XMODEM) plus a few more minor changes 2009-02-28 21:55:20 +00:00
Dado Sutter
947379c750 List Items identation problem partially fixed but I could not figure out yet
what is wrong with the html :(
2009-02-28 05:46:39 +00:00
Dado Sutter
736bdf4f50 stringdraw renamed to print on disp module
imagedraw renamed to draw on disp module
overall functionality maintained for now
Minor comments edited on SConstruct, for romfs building system
2009-02-27 10:57:58 +00:00
Dado Sutter
7dc75fd807 Menu tree rebuilt to correct Platform Dependent entry (now points to refman#anchor)
platdependent.html file no more needed (all content in refman.html)
pre style css edited to correct disp.draw memory layout table
Minor corrections on refman (disp module only)
other files rebuilt by webbook
2009-02-27 10:54:12 +00:00
Dado Sutter
d22dd6a314 Minor typo corrections and formating
Cosmin back to credits
Very small formatting corrections
2009-02-27 03:59:03 +00:00
Dado Sutter
0e988f4a0d Minor mistyped corrections
Strong (bold) style on all eLua instances
License text updated to MIT (may deserve some more text...)
2009-02-27 03:27:59 +00:00
Bogdan Marinescu
fc98d482a7 - Added "installing on AVR32" page
- Minor changes to the other "installing" pages
2009-02-26 14:54:28 +00:00
James Snyder
1e2e05ee55 Fix limitation that prevented smoothing lengths longer than 64. 2009-02-26 02:36:46 +00:00
Bogdan Marinescu
6e1b46d3d7 - Added per-board "using eLua" documentation from the old site (with some additions). Still have to work on the AVR32 and STM32 docs.
- The Eagle 100 binary image now starts at 0x2000 by default (instead of the regular 0x0) to allow users to take advantage of the provided Ethernet bootloader.
- deleted the old docs/ directory. The "real" documentation is in the doc/ directory
2009-02-25 21:29:40 +00:00
James Snyder
db043887b0 Fix for syntax error. 2009-02-25 00:25:22 +00:00
James Snyder
64655356e7 Updated notes on adc functions. 2009-02-24 22:23:58 +00:00
Bogdan Marinescu
d0657f08ff More work on the docs:
- "building" page completely rewritten
- a new page about the toolchains used in eLua
- a graphical representation of the system architecture (doc/wb_img/elua_arch.png) that will be used in a soon to come page about the eLua architecture

Also:

- validate.h updated with some new tests (still needs more work)
- "arm-gcc-eabi" toolchain name changed to "codesourcery", since this is obviously way more intuitive :)
2009-02-24 22:09:22 +00:00
James Snyder
cc4842284d Clean up word HTML in refman.html. Still looks computer generated, but
improved.

If someone else has been editing this doc elsewhere, I can merge your changes
if you like.  I wanted to update the ADC docs, but wanted to clear out the
MS Word formatting first :-)

This commit includes NO TEXTUAL EDITS.  I did this intentionally because it
would otherwise be difficult to figure out what content has changed from diffs
alone.
2009-02-24 21:10:59 +00:00
James Snyder
554dd7126b ADC can now run in freerunning mode (keep collecting samples after ring buffer
is full). Clock and sampling frequency have been moved to a separate function
from burst.  There is now one function to initiate sampling called sample
which takes a channel and count.  setclock takes a channel, clock_id, and
frequency.  Adjustments should be made to make channel groupings somewhat
cleaner, but this is functional.

Suggestions are welcome for simplification :-)

I'll try and make some doc updates in the coming day or so to reflect
finalized adjustments.
2009-02-24 07:58:10 +00:00
Bogdan Marinescu
e858416784 The Nabble forum-like interface can now be viewed directly in the main page of the site (as an option). Gotta love this thing :) 2009-02-23 22:31:49 +00:00
Bogdan Marinescu
246c2c73bb Finalizing the docs (WIP) 2009-02-23 21:58:02 +00:00
Bogdan Marinescu
99c24861f4 Integrated support for Micromint Eagle 100 board (LM3S6918 Cortex-M3).
Fixed the cross compilation script.
Some DOS to UNIX EOL conversions.
2009-02-23 15:28:56 +00:00
Bogdan Marinescu
a2b915dd2f Thanks to the people@elua-dev list, I finally understood what's ARM EABI, so I thought I make good use of it :), so I enabled it for ALL ARM and Cortex targets alike. Now you can specify the toolchain to use like this:
$ scons board=... toolchain=arm-gcc|arm-gcc-eabi
(the default is still arm-gcc, but this can be changed by editing SConstruct).

This is a Very Good thing for us, because users won't need to build their own toolchains anymore, they can just download the one from CS and use it. Thanks again for this.
Actually, the whole build system was changed to support arbitrary toolchains (although there's much work to be done in this area).
Also, changed a few things in the STM32 port (the linker script file, the stack definitions).
And other (very minor) changes (mostly to fix some compiler warnings).
2009-02-23 13:56:21 +00:00
Bogdan Marinescu
9ac734be3c fixed a typo in lm3s/conf.py 2009-02-23 08:29:21 +00:00
Bogdan Marinescu
b6914dd61d Finalizing the documentation (WIP) 2009-02-22 23:02:47 +00:00
Dado Sutter
80513aaf52 i386 toolchain build tutorial edited to include John Hind fix
SConstruct edited just to leave group/files definitions close to the platform/groups.
Doc content files mirroed to pt, to ease the portuguese version initial migration
2009-02-21 23:02:39 +00:00
Dado Sutter
0e585aee37 Status ports and modules enhanced
RefManual refined
General revision
ongoing work ....
2009-02-21 13:25:49 +00:00
James Snyder
2c175a72cb ADC updates & EABI Compiler Support for LM3S
ADC:
- getsamples split into getsamples and getsample.  getsamples always returns a
  table of results.  getsample returns single values (if available).

EABI compiler support:
- added a parameter to SConstruct called cprefix, which allows one to define a
  prefix other than the arm-elf used by some platforms.  Currently the only
  platform that does anything with this parameter is LM3S, conf.py scripts can
  be updated to handle the default toolchain prefix, and accommodate alternate
  ones if needed.
- Added sections to lm3s.ld (originally committed by Jesus Alvarez) to handle
  linking properly for arm-eabi targets.
2009-02-20 21:41:30 +00:00
Dado Sutter
0b1fc26d8f Enhancing doc for v0.6 2009-02-20 14:48:13 +00:00
Bogdan Marinescu
59c35cc20d Added a very simple allocator to eLua. It's probably the most basic version of a chained blocks allocator. It's slow and it won't handle fragmentation nearly as well as dlmalloc(), but it's much smaller and it doesn't need the extra book-keeping space needed by dlmalloc (about 1KB for each memory space).
Recommended only for systems with very low memory (Flash/RAM), and prefferably systems running only precompiled Lua (if you need to compile the code, you might get into stack overflows, and this allocator is much more sensitive to this kind of stuff than dlmalloc()). In fact, this allocator seems to suggest that one should set the stack to at least 4k for the Lua parser to run properly even on small programs. I won't do this just yet, rather I'll keep on trying to move the Lua parser data structures from stack to heap. For now we're OK with the current configuration.
The allocator can handle multiple memory spaces.
Enable with "allocator=simple" on the scons command line.

...oh yes, also added a newline to the end of elua_adc.c :) (to avoid some annoying warnings)
2009-02-18 22:13:48 +00:00
Bogdan Marinescu
f253c9003f - fixed a small AVR32 syntax error
- added newlines to the end of some files to avoid GCC errors
2009-02-17 18:57:05 +00:00