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

78 Commits

Author SHA1 Message Date
Bogdan Marinescu
c0b8d96e01 (re)added directory for ROMFS, every file in this directory will be ignored by git (except for .gitignore) 2011-05-27 17:25:40 +03:00
Dado Sutter
f60f17056a - Removing eLua exemples from the official distro's ROMFS 2011-01-09 23:31:57 +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
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
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
e0e1c2c4fe added AVR32 without FOSC32 patch and MIZAR32 board support patch (Martin Guy) 2010-10-01 12:11:37 +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
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
4a65cb94fb Fix line endings 2010-08-12 20:27:52 +00:00
Bogdan Marinescu
2619c80d4a added EVK1100 and SPI support for AVR32 2010-08-04 13:18:39 +00:00
James Snyder
851f7c16ba ADC for MBED/LPC1768.
Note: MBED P15->P20 == adc dev ids 0->5
2010-07-12 20:56:54 +00:00
James Snyder
5f5e01fd3b Add support for Semihosting filesystem operations
- enable file creation, reading, writing on mbed for the built-in filesystem
- implementation currently lacks support for directory listings, this will be
  added when mbed implementation details are available.

Note: this should work with other ARM arm ports that are connected to a JTAG
debugger that implements semihosting, though I have not tested it.
2010-03-08 20:08:07 +00:00
James Snyder
f825e2c39e Use all RAM on mbed. Adjust life.lua to show memory usage information, and use
a bit smaller grid.
2010-02-20 01:15:16 +00:00
James Snyder
271dcc15e1 Enable PWM support for lpc17xx/mbed.
Note: pin functions need to be configured on this platform for output to go to
a given pin.
2010-02-20 00:27:33 +00:00
Dado Sutter
def492584a Comments for the platform-dependent modules revised (they could actually be rewritten :) and added to the new mbed module.
The idea is (not to touch someone else's module/code but ...:) to have similar comments for these aux Lua modules.
2010-02-19 03:01:18 +00:00
James Snyder
9a1536b959 Fix LM3S6965 bug related to using lm3s module.
Add tetrives back on LM3S6965.
2010-02-15 22:26:15 +00:00
James Snyder
53f69a9f2f Basic GPIO support for MBED.
dip pins p5-p30 are mapped as P0_5 to P0_30
LEDs are mapped to P1_0 to P1_3

This approach could be switched to using a platform specific Lua module to
define all the pins, or C code to do the same.
2010-02-12 23:03:29 +00:00
Dado Sutter
d890fd3c50 - Fixed LM3S games and aux modules
- Updated lm3s games versions merged with trunk
- Tetrives game added to default LM3S8962 build on SConstruct
2010-02-03 12:32:18 +00:00
James Snyder
51221f8b4c Merge 0.7 changes to trunk. 2010-01-25 23:43:05 +00:00
Dado Sutter
fd2379c07e Pong (game) enhancements 2009-12-12 04:12:18 +00:00
Dado Sutter
67be234b32 eLua platform specific disp module, added to LM3S aux setup Lua modules.
This helps apps to treat natively-supported LM3S OLED RIT display as just another onboard device.
Doc will be enhanced to give examples on these modules' usages.
2009-12-11 06:38:45 +00:00
Dado Sutter
1d24679cc3 Snake game refinements (by Téo Benjamin) 2009-11-29 03:25:32 +00:00
Dado Sutter
c2b214c364 Fixing the snake file format committed, sorry (GCode got me this time :) 2009-11-20 12:32:20 +00:00
Dado Sutter
167cb2a514 New game added to eLua ROMFS. Snake runs on LM3S boards with RIT OLED Display.
Small changes on Pong, another game for the same platform above.
2009-11-20 12:12:20 +00:00
Dado Sutter
2812e9eef3 Randomize seed on start now depends on user time delay
Longer screen power off delay at the end
2009-11-08 01:03:37 +00:00
Dado Sutter
22dc664737 - Scontruct: autorun.lua file, if found in /romfs, is now included in eLua builds for
any platform. No need to specify it in the file_list table.
- minor comments added to SConstruct
- LM3S platform specific modules commented
- Minor comments in Pong
- Debugging prints removed from Tetrives
2009-11-02 17:44:35 +00:00
Bogdan Marinescu
f1d8594ea2 added PWM to the LPC24xx platform (and also pwmled.lua) 2009-10-31 16:52:40 +00:00
Bogdan Marinescu
8476b93446 merged branch lpc24xx (r492:507) to trunk 2009-10-31 11:41:34 +00:00
Dado Sutter
90c5db6d91 Added support for STR-E912 board
As this board doesn't have an LED, the display backlight was used.
The jumper PWM/LIGHT on the board must be placed on the PWM position.
2009-10-19 00:03:26 +00:00
Bogdan Marinescu
cf48728115 - added support for the STR-E912 board from Olimex
- PWM module for STR9
- STR9 port fixes 
- STR9 platform-specific module: str9.pio (the STR9 GPIO subsystem is quite uncommon).
- small LM3S fixes
2009-10-18 01:27:33 +00:00
James Snyder
bd1465ca50 Merge 0.6 branch to trunk.
Conflicts:
	SConstruct
	doc/en/arch_platform.html
	doc/en/comunity.html
	doc/en/overview.html
	doc/en/refman.html
	doc/en/refman_gen.html
	doc/en/status.html
	doc/en/tut_bootstick.html
	doc/images/lng_pt.png
	doc/images/minusnode.png
	doc/images/next.png
	doc/images/node.png
	doc/images/nodelast.png
	doc/images/plusnode.png
	doc/images/plusnodelast.png
	doc/images/previous.png
	doc/images/showall.png
	doc/images/sync.png
	doc/images/vertline.png
	doc/pt/arch.html
	doc/pt/arch_coding.html
	doc/pt/arch_con_term.html
	doc/pt/arch_newport.html
	doc/pt/arch_overview.html
	doc/pt/arch_platform.html
	doc/pt/arch_tcpip.html
	doc/pt/building.html
	doc/pt/comunity.html
	doc/pt/dl_binaries.html
	doc/pt/dl_old.html
	doc/pt/dl_sources.html
	doc/pt/downloads.html
	doc/pt/examples.html
	doc/pt/faq.html
	doc/pt/installing_i386.html
	doc/pt/installing_lm3s.html
	doc/pt/news.html
	doc/pt/overview.html
	doc/pt/refman_dep.html
	doc/pt/refman_gen.html
	doc/pt/status.html
	doc/pt/tc_386.html
	doc/pt/toolchains.html
	doc/pt/tut_openocd.html
	doc/pt/using.html
	romfs/LM3S.lua
	romfs/led.lua
	romfs/morse.lua
	romfs/pong.lua
	src/lua/linit.c
	src/modules/auxmods.h
	src/platform/lm3s/platform.c
	src/platform/lm3s/platform_conf.h
	src/platform/sim/platform_conf.h
2009-10-13 02:14:27 +00:00
Bogdan Marinescu
2dfb889e8d integrated logo and bitarray to the trunk, small additional fixes 2009-08-19 19:18:45 +00:00
James Snyder
9f32aa6115 Working ethernet. 2009-08-03 18:39:43 +00:00
Bogdan Marinescu
179042bc45 syntax revision on tmr (merged to trunk) 2009-07-31 11:56:43 +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
4b7169fdda PWM support for STM32 working (4 channels running off of TIM8). 2009-07-08 23:40:12 +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
5f00870eb7 Include allocation stats. 2009-06-29 16:44:31 +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
James Snyder
2f75a1b4a0 Quick change to even out printing. 2009-04-12 20:55:34 +00:00
James Snyder
256991162d Changes to further test that ADC is behaving correctly. 2009-03-25 16:17:19 +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
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
James Snyder
b4290c4aa4 Added timer compatibility check.
Smoothing resize checks that no operations are pending.
2009-03-05 07:06:59 +00:00