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

309 Commits

Author SHA1 Message Date
James Snyder
9eddff8847 Updated driver library (except for UART/USART). 2009-08-03 18:37:38 +00:00
Bogdan Marinescu
179042bc45 syntax revision on tmr (merged to trunk) 2009-07-31 11:56:43 +00:00
Bogdan Marinescu
b128ea9837 syntax revision on spi module, also added the possibility to send numbers instead of strings in the uart module(merged to trunk) 2009-07-30 19:45:25 +00:00
Bogdan Marinescu
6f32e784b3 syntax revision on uart module (merged to trunk) 2009-07-30 13:04:10 +00:00
Bogdan Marinescu
b3076326c4 pio syntax revision (merged to trunk) 2009-07-29 16:10:15 +00:00
Bogdan Marinescu
7ca43fe966 syntax revision on term 2009-07-20 19:39:51 +00:00
James Snyder
703f79b2f6 Change back to enable timers on startup. 2009-07-10 14:55:10 +00:00
James Snyder
49d4085229 Basic tmr documentation. 2009-07-09 03:15:51 +00:00
James Snyder
85f98342dd PWM generic doc. 2009-07-09 03:15:38 +00:00
James Snyder
1c3a5b57f0 Missing startup code. 2009-07-08 23:44:17 +00:00
James Snyder
c6c18c43a6 Missing file. 2009-07-08 23:42:51 +00:00
James Snyder
4b7169fdda PWM support for STM32 working (4 channels running off of TIM8). 2009-07-08 23:40:12 +00:00
James Snyder
66a18b4659 Further PWM experiments. 2009-07-08 23:40:01 +00:00
James Snyder
348620f93d Remove object files. 2009-07-08 23:39:53 +00:00
James Snyder
05233f2dd2 Updated library to STM32 FWlib 3.1.
PWM support integrated, but not fully working.
2009-07-08 23:39:34 +00:00
James Snyder
ed31980cb8 Forgot to commit this. 2009-07-04 17:10:41 +00:00
James Snyder
e006aaaaa9 Workaround for bug related to remote server handle getting GC'd. Solution may
not clean itself up in all failure cases, however.  Current approach could
likely be replaced with central table that could handle dispatching for
multiple concurrent connections.
2009-06-30 02:58:52 +00:00
James Snyder
67f782f057 CAN baud rate selection for STM32. 2009-06-29 19:29:16 +00:00
James Snyder
cff5626558 Update status to reflect alpha/beta RPC code, and addition of lightly tested
CAN module.
2009-06-29 17:02:31 +00:00
James Snyder
68c9e0bb81 Attempt to get docs merge to run. 2009-06-29 16:45:54 +00:00
James Snyder
a984d2191a Additional specificity in docs, adcpoll updated to use synchronized start. 2009-06-29 16:45:46 +00:00
James Snyder
0437a25b30 Simplify adcpoll.lua slightly, and remove locals so that the example might be
more friendly to less advanced users.
2009-06-29 16:45:37 +00:00
James Snyder
6ffc36ace3 Touchups for documentation & comments for adc* scripts from romfs. 2009-06-29 16:45:28 +00:00
James Snyder
40b331804b Typo fix. 2009-06-29 16:45:07 +00:00
James Snyder
e39a64d5f9 First pass at refman docs for ADC. 2009-06-29 16:44:59 +00:00
James Snyder
d02e51ce1c Initial ADC platform documentation. 2009-06-29 16:44:50 +00:00
James Snyder
5f00870eb7 Include allocation stats. 2009-06-29 16:44:31 +00:00
James Snyder
1e9c8fd50c Fix latter part of comment (yes, this is the 3rd commit for a single line
change).
2009-06-29 16:44:22 +00:00
James Snyder
957d589904 Fix comment. 2009-06-29 16:44:06 +00:00
James Snyder
5f28817fb2 Collect garbage when memory usage grows by 10% rather than 100% 2009-06-29 16:43:57 +00:00
James Snyder
733c994fbc Flavio's Portuguese Translations
Some Main Menu PT translations
Minor corrections
2009-06-29 16:43:45 +00:00
James Snyder
cd6b99b291 simplified a bit the format of the documentation files ('args' now has the same format as 'ret', so it can be either a string or a list of strings) 2009-06-29 16:43:27 +00:00
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