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

542 Commits

Author SHA1 Message Date
Dado Sutter
4b6937b99d Changelog for v0.8 added to an entry on NEWS
Work in progress, needs refinement and revision
2010-12-15 06:40:53 +00:00
Dado Sutter
26017e24ee Status, features and roadmap tables being updated for v0.8
Needs more work and revision

SRT9 RTC Doc fixes
Introduced the field "ex" for examples on the doc, not yet treated by the doc builder
Examples added for STR9 RTC
2010-12-15 06:36:57 +00:00
James Snyder
a4ae2bf4fb Apply misc fixes to LuaRPC:
- prevent premature helper gc
 - replace some MYASSERT statements with standard Lua functions for arg checking
2010-12-14 01:05:52 +00:00
Dado Sutter
a148d3956e Changing eLua version for the next release (v0.8) 2010-12-11 00:24:17 +00:00
Dado Sutter
6e1cc2b292 Fix for the current use of platform-specific auxiliar definition files/modules 2010-12-11 00:22:12 +00:00
Dado Sutter
91eddd9e81 Added doc for STR9 platform-specific Real Time Clock support.
Doc build structure changed to include it on the platform-dependent modules menu.
2010-12-11 00:17:03 +00:00
James Snyder
75ca01f8a2 Fixes for LM3S CAN:
- wait for transmit complete interrupt before attempting to send another message
 - use 8 MHz peripheral clock on LM3S8962
2010-12-09 02:43:38 +00:00
James Snyder
1059c69245 Adjust CAN module to not block when receiving messages. recv
returns nothing (3 params will be nil) if no messages are waiting.
2010-12-06 23:26:29 +00:00
James Snyder
769726cf2a Crunch "arch" image a bit more. 2010-12-06 22:14:14 +00:00
James Snyder
da8962df1f Fix BUILD_RPC bug where rpc module would get included no matter what. 2010-12-02 23:58:45 +00:00
James Snyder
f4c439d76a Fix a few bugs in CAN implementation for LM3S. 2010-12-02 02:31:26 +00:00
James Snyder
ac3694547d Initial CAN support for LM3S. 2010-12-02 02:07:32 +00:00
Bogdan Marinescu
ce2810d428 AVR32 compilation flags fix 2010-12-01 20:07:27 +00:00
Bogdan Marinescu
fb775c55f5 fixes to prevent linking of the compiler floating point emulation functions on different targets 2010-11-30 23:13:25 +00:00
Dado Sutter
b583073b98 Minor typos and doc enhancements 2010-11-22 23:31:40 +00:00
Bogdan Marinescu
48dd62035c fixed INT support example in documentation 2010-11-17 20:55:33 +00:00
Bogdan Marinescu
ebfd94eb01 linenoise support extended to the eLua shell (it can be enabled separately in platform_conf.h). Documentation updated 2010-11-17 20:21:36 +00:00
Bogdan Marinescu
208c7fae1e bugfix for linenoise-less mode 2010-11-17 09:57:41 +00:00
Bogdan Marinescu
772b33c975 linenoise support for eLua. linenoise is a readline replacement which makes using the Lua interpreter much easier and also adds support for saving the 'history' of lines types in the interpreter. Documentation updated. Thanks go to James for suggesting this in the first place. 2010-11-16 22:53:06 +00:00
Bogdan Marinescu
7aff94d194 Updated the interrupt model in Lua, now it looks exactly the same as the C one (one interrupt handler per interrupt ID, setting an interrupt handler returns the previous one so they can be chained). Documentation and interrupt sample updated to reflect this. Also, building.html is now building.txt (AsciiDoc). Be patient while it is processed :) 2010-11-16 18:07:07 +00:00
Bogdan Marinescu
253cb702a7 small fix that fixes compilation issues on 'sim' and 'i386' targets 2010-11-13 23:33:59 +00:00
Bogdan Marinescu
aa228cfc7c added const to elua_int_table; added hw_cli/hw_sei in cpu module; various other fixes 2010-11-13 22:36:09 +00:00
Bogdan Marinescu
78acf26f6e add media page 2010-11-10 12:24:35 +00:00
Bogdan Marinescu
3612e87224 Added documentation on interrupts:
Generic info/eLua interrupt handlers: using interrupt handlers from Lua and C
  Platform interface/CPU: updated CPU platform interface
  Platform interface/Timers: updated timers platform interface
  Generic modules/cpu: updated CPU module documentation
  Generic modules/tmr: updated timer module documentation
  eLua internals/Overview/Implementing interrupts: interrupt handlers implementation guide

Also minor bugfixes in the interrupt implementation.
2010-11-06 23:58:05 +00:00
Bogdan Marinescu
6302c1524e STR9 backend modified for the new interrupt structure, the STR9 port can now be compiled fine (but the interrupts were not tested on this particular platform) 2010-11-04 22:40:09 +00:00
Bogdan Marinescu
5978c7b680 - Changed interrupt support infrastructure. No docs yet (will be added later), but check src/platform/lpc24xx/platform_int.c for a quick glimpse of the concept.
- Added direct access to interrupt flags; an interrupt doesn't have to trigger a handler anymore, its flag(s) can be checked instead (platform_cpu_get_interrupt_flag).
- Added experimental C interrupt handlers support (NOT TESTED). It can be compiled and used separately from the Lua interrupt support implementation. Hint: src/elua_int.c, elua_int_set_c_handler and elua_int_get_c_handler, also BUILD_C_INT_HANDLERS (as opposed to BUILD_LUA_INT_HANDLERS).
- Added tmr.set_match_int function that sets a match interrupt on a timer (one-shot or cyclic). Also works on virtual timers. In fact, it currently works only on virtual timers, as none of the platforms have support for this operation with hardware timers.
-Added more interrupt support functions in the CPU module.

All of the above were implemented and tested on the ELUA-PUC board, and nothing else. As a side effect, THIS COMMIT BRAKES THE STR912 PORT! The port will be modified to take advantage of the new interrupt structure soon; until then, please don't update it.
2010-11-03 23:57:27 +00:00
Bogdan Marinescu
8885b719d7 cross-compiler fix 2010-10-18 16:40:25 +00:00
James Snyder
94036f6c9f Enable adcscope for STR9. 2010-10-14 21:11:25 +00:00
James Snyder
e5a1a44cc1 Fix for STR9 ADC that prevented interrupts from firing if sequence was changed before sequence shutdown. 2010-10-14 21:11:13 +00:00
James Snyder
03898194b4 ADC implemented, not fully tested. 2010-10-13 22:19:09 +00:00
Bogdan Marinescu
b0428bc3ec EXTINT interrupt support for STR9 (UNTESTED) 2010-10-10 22:24:36 +00:00
Bogdan Marinescu
b7c8d7dddf added a reference to the #elua IRC channel in the community page 2010-10-06 18:05:09 +00:00
Bogdan Marinescu
016141009e fixed a misspelled link 2010-10-06 17:13:42 +00:00
Bogdan Marinescu
ccc16ebb44 community.html converted to AsciiDoc. This takes care of the first part of the menu :) 2010-10-06 17:04:53 +00:00
Bogdan Marinescu
2bdf0eec73 - Generate "offline" documentation by default. This simply means that the BerliOS logo and the counter will not be added to the navigation div. Use -online as argument to buildall.lua
to add them.
- Minor alignment changes
2010-10-05 22:45:26 +00:00
James Snyder
6fff49b0cb Switch overview to AsciiDoc. 2010-10-05 21:08:04 +00:00
James Snyder
2be99254d1 Crunch new images a bit, saves about 12% of size. 2010-10-05 19:55:22 +00:00
Bogdan Marinescu
0f6eadccd0 status page switched to AsciiDoc 2010-10-05 18:49:14 +00:00
Bogdan Marinescu
a41f589a9f more AsciiDoc work 2010-10-05 15:44:48 +00:00
Bogdan Marinescu
a6f8f4d8a1 Added partial integration of AsciiDoc (http://www.methods.co.nz/asciidoc/) to our documentation system. For now:
- AsciiDoc doesn't work on automatically generated documentation (eluadoc/), just on the static content (but it will)
- Both AsciiDoc and the previous HTML versions are supported, HTML has priority over AsciiDoc

You need at least version 8.6.0 of AsciiDoc to test this.
To give an example of how cool AsciiDoc is, the News page (en/news.html) was rewritten in AsciiDoc format (en/news.txt). 
If you can't see the beauty of writing HTML in such a way that the overall structure of the document remains clear and easy to understand, I reserve the right to question your mental health :)
And yes, the long term goal is to have everything written in AsciiDoc.
2010-10-04 20:55:39 +00:00
Bogdan Marinescu
e0e1c2c4fe added AVR32 without FOSC32 patch and MIZAR32 board support patch (Martin Guy) 2010-10-01 12:11:37 +00:00
Bogdan Marinescu
c757205f89 documentation about interrupt handlers (can be found in Generic info -> eLua interrupt handlers). NOT COMPLETE, still need to modify the CPU module, the CPU platform interface, and add the specific build details. 2010-09-28 23:43:16 +00:00
Bogdan Marinescu
78cab3b3ad - interrupt support in Lua
- ASM interrupt support for ARM targets which eliminates the need for buggy GCC __attribute__ ((interrupt ("IRQ"))) functions
- code refactoring
2010-09-26 18:54:18 +00:00
Bogdan Marinescu
08ffc6b04a generic IRQ handler for STR9 2010-09-21 21:59:10 +00:00
Bogdan Marinescu
ae54bffb5d further fix to romfs=compile under Win32 2010-09-15 17:15:43 +00:00
Bogdan Marinescu
19dd7c5ef6 cross compiler compilation fix 2010-09-12 22:48:42 +00:00
Bogdan Marinescu
d4d29d862f another part of the LM3SS1968 port 2010-09-05 21:02:56 +00:00
Bogdan Marinescu
76e79329f4 patch for EK-LM3S1968 from Tiziano Trevisan 2010-09-05 18:20:27 +00:00
James Snyder
297048b2a8 Enable reflect ADC support on lpc24xx by adjusting romfs examples and SConstruct to include adc examples on romfs. 2010-09-02 15:19:34 +00:00
James Snyder
834e1efc64 ADC Support for LPC24xx & Other Fixes
- ADC support should now work similarly to lpc17xx on lpc24xx
- uart setup updated to enable use of fractional adjustments to better match desired baud
2010-09-02 15:12:41 +00:00