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

277 Commits

Author SHA1 Message Date
James Snyder
240644ffbf working on the reference manual 2009-06-29 16:43:17 +00:00
James Snyder
af944cc8bc working on the docs, still 2009-06-29 16:42:56 +00:00
James Snyder
304d57d248 deleted some files that are not needed or are generated automatically by WebBook 2009-06-29 16:42:38 +00:00
James Snyder
841ba4006e new, better doc generation tool, now support semi-automatic generation of links to function names/structures in the navtree, also added support for multiple languages 2009-06-29 16:42:24 +00:00
James Snyder
4873051483 Almost finished documenting the platform interace, only ADC left. The platform
interface documentation is now dynamically generated by the "builddoc.lua"
script, with the description files located in doc/arch_platform/*.lua directory.
The same script will be used to generate the reference manual and ultimately
will be modified to generate a different format of the reference manual,
suitable for embedding directly into eLua (thus providing on-line help).
To generate the platform interface documentation, simply execute the
"build_all_docs.sh" script from the doc/ directory.
2009-06-29 16:42:12 +00:00
James Snyder
58489cc1bf added platform interface documentation for UART, SPI, timers and PWM 2009-06-29 16:41:52 +00:00
James Snyder
02fbbd2969 documenting the platform interface 2009-06-29 16:41:25 +00:00
James Snyder
fd029159dc Mark other platforms as having 0 CAN peripherals so they compile. 2009-06-26 23:38:14 +00:00
James Snyder
907de5b818 Working CAN support for STM32. 2009-06-26 23:38:02 +00:00
James Snyder
da606b3783 Minor fix for clock selection. 2009-06-24 00:16:18 +00:00
James Snyder
863673898a Bugfixes for SPI module. 2009-06-23 23:22:45 +00:00
James Snyder
852c64a61f Initial SPI support for STM32. 2009-06-23 23:22:35 +00:00
James Snyder
5531e13570 Enabled & Quick test on LM3S. 2009-06-23 03:27:02 +00:00
James Snyder
e97a9b271e Indentation and a few other touch-ups. 2009-06-23 01:01:13 +00:00
James Snyder
8939b99545 Commit of initial working RPC.
- disabled by default (enable on a target-by-target basis) so it shouldn't
  cause much breakage for non-rpc users
- some modifications to the binary chunk reader which should allow reading of
  chunks encoded on various platforms (with certain limitations like lualong
can't read float lua bytecode, one must generate lualong bytecode from a float
lua)
- other misc changes.
2009-06-22 23:49:21 +00:00
Bogdan Marinescu
278a68cdc4 Modified Robert's 'linux' platform:
- code cleanup
- the platform is now named 'sim'. You build it like this:

  $ scons cpu=linux

  The idea is to support more than one host OS by changing the "cpu" variable
  above (for example cpu=osx, or cpu=win32). Also, a crude "host interface" was
  defined in hostif.h. In theory, a host OS should only implement that interface
  in order to run the eLua simulator. The implementation must reside in a file
  called hostif_{os}.c (in this case hostif_linux.c). Too bad I don't have a MAC,
  I would've loved to try this :)
  REMEMBER: whem implementing a host interface, you CAN NOT rely on your regular
  libc! You'll have to rewrite the syscalls (see host.c for an example on how to
  do this in Linux).

- after you build it, don't start it directly, use the new "run_elua_sim.sh"
  script to run it. It will set the terminal to raw mode, no echo, so it will
  behave more like "traditional" eLua (even hangman.lua will run in this mode :) ).
  Remember to run in on an ANSI capable terminal (although most of them support
  ANSI emulation nowadays). 

- you can exit from the simulator with "exit". You can't do this with CTRL+C if
  you run it with "run_elua_sim.sh". 

All in all, this looks pretty good and it's an excellent test platform. It will
do wonders when we integrate our own libc and we won't be able to figure out why
it doesn't work :)
2009-05-12 14:09:29 +00:00
Bogdan Marinescu
df121b222e added the 'linux' platform as an emulation target, thanks go to Robert Jakabosky for providing this 2009-05-11 21:35:42 +00:00
James Snyder
300ba00a55 ADC: Some checking and consistency adjustments. 2009-04-28 16:55:21 +00:00
James Snyder
bd2e819368 ADC Updated
- adc_wait_samples now returns the actual number of samples available at the
  time it returns.  this simplifies a pattern where one would wait on samples
  if blocking and then subsequently check the number of available samples.
- adc.insertsamples(id, table, idx, count) function now available to take
  samples and insert them into a table.  this is slightly slower than
  assignment for single values in a table, but can avoid having to use
  getsamples (returning new tables) for certain situations
  idx: starting index in table where values will be inserted
  count: number of samples to get from channel id
2009-04-22 15:36:50 +00:00
Bogdan Marinescu
b1ee48a161 updated pages related to downloads in documentation 2009-04-14 12:03:39 +00:00
James Snyder
2f75a1b4a0 Quick change to even out printing. 2009-04-12 20:55:34 +00:00
Bogdan Marinescu
586e415ffc testing BerliOS SVN access system, part II 2009-03-31 12:26:46 +00:00
Bogdan Marinescu
cb4c23d215 testing BerliOS SVN access system 2009-03-31 11:26:40 +00:00
Bogdan Marinescu
a4c0c72977 fixed an issue in SConstruct that prevented eLua compilation in Windows, now it compiles fine using the CodeSourcery toolchain 2009-03-31 11:19:50 +00:00
James Snyder
5fc2961439 A few fixes for system buffer-free ADC.
Also, single sample requests should be a bit faster when buffering is enabled.
2009-03-26 03:10:16 +00:00
Bogdan Marinescu
da05fc6f2f Completely updated and corrected the "tutorials" sections, now it contains information about how to build toolchains using the latest versions of gcc/newlib/binutils. Other minor fixes in
the documentation.
2009-03-25 23:29:27 +00:00
James Snyder
709399a324 System buffer-free version of ADC should now work. Doing so, saves about 1kb
of flash space.

NOTE: getsamples function is disabled since this is dependant on having a
buffer to get more than one sample.

Side note: single sampling without the buffer is faster by about 5-10
us/channel.  It should be possible to sidestep the buffer in certain
situations for buffer enabled mode and get a similar benefit at the cost of
some additional complexity.
2009-03-25 22:56:39 +00:00
James Snyder
551644e844 Style cleanup & build properly without net module. 2009-03-25 21:24:05 +00:00
James Snyder
256991162d Changes to further test that ADC is behaving correctly. 2009-03-25 16:17:19 +00:00
Dado Sutter
d6e987cdf3 Asko's suggestions and other revisions 2009-03-24 08:12:08 +00:00
Bogdan Marinescu
b844dccd78 Related to the previous commit: TERM_TIMEOUT is no longer a configurable parameter in the backend, as it's actually dependent only on the term implementation (and thus is defined in common.c now). 2009-03-23 21:12:27 +00:00
Bogdan Marinescu
9c15d2e4fc - XMODEM and term code moved from main.c to common.c
- added full term support to the i386 platform (I was bored with all the docs ... :) )
- documentation updated
2009-03-23 21:07:49 +00:00
James Snyder
94438ff64b ADC for STM32 + Misc Fixes & Build Adjustments
- ADC adjusted to work with sequenced acquisition setups.  It should now
  accomodate both sequenced and non-sequenced approaches on the backend.
  A few more adjustments should be made to handle multiple sequencers
  but right now neither LM3S or STM32 platforms use more than one sequencer.

- Added adcpoll.lua to demonstrate a simple approach for using clocked
  acquisition and displaying results as they become available.

- ADC now works for STM32 (all 16 channels!). This should receive more
  extensive testing, but everything should be working at this stage.

- the build system now pays attention to changes in header files meaning that
  if any headers change or if the romfs changes (since it is generated as a
  header) these changes will get recompiled without having to do a clean.
2009-03-21 19:59:49 +00:00
Bogdan Marinescu
dd643f4e8e added tcp/ip page 2009-03-19 09:43:35 +00:00
Bogdan Marinescu
d029cc6791 - XMODEM_TIMER_ID and TERM_TIMER_ID are out of the picture; instead, a CON_TIMER_ID was added that is used by CON, XMODEM and TERM
- added "stacks.h" to the i386 backend to keep in line with the overall structure requirements
- documentation updated
2009-03-16 14:22:06 +00:00
Bogdan Marinescu
acf692522a completed the 'adding a new port to eLua' page 2009-03-13 21:13:54 +00:00
Bogdan Marinescu
0e6c62ef87 docs, docs and more docs 2009-03-12 22:01:32 +00:00
Dado Sutter
f8507a7c05 gpio module renamed (back) to pio
romfs Lua examples refactored to work with pio module
examples were _not_ tested after renaming gpio to pio (but should be ok)
2009-03-12 21:06:14 +00:00
Bogdan Marinescu
fa64ebf5ad updating docs 2009-03-12 14:47:08 +00:00
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