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

722 Commits

Author SHA1 Message Date
Martin Guy
d72145688a Document the default for ADC's blocking or non-blocking mode (i.e. blocking) 2011-07-05 17:23:14 +02:00
Martin Guy
2a6131ffe6 Eliminate all TAB characters in elua-specific code files.
Tabs have been creeping in to eLua's source files, sometimes representing
2 characters, sometimes 8.  This patch replaces them all with the appropriate
number of spaces, according to the context.
This only fixes files that were written specifically for eLua, not the
manufacturers' SDK source files that were simply imported into the tree.
2011-07-05 17:17:45 +02:00
Martin Guy
250441c91d Don't bother enabling 32kHz clock on AVR32 if the crystal is not present 2011-07-05 14:42:00 +02:00
Martin Guy
0452d1e79d Fix code to select 120KB config for Mizar32 2011-06-28 07:16:31 +02:00
Martin Guy
ca7f6befd9 Avoid returning negative values from tmr.getmaxdelay(tmr.VIRT0)
The return value from tmr.getmaxdelay() is always passed to
lua_pushinteger(), which turns the top half of the unsigned numbers into
negative values. This always used to bite getmaxdelay(tmr.VIRT0) and can bite
tmr.gettimediff(0, small, large).

Fixes bug #229 in the old tracker.
2011-06-28 06:43:52 +02:00
Martin Guy
5746dfc1e0 Make pio.decode() present also when optram=0 (fixes bug #187) 2011-06-28 04:38:48 +02:00
Martin Guy
93743fa12e First working hack at single channel bit-bang I2C for AVR32.
To get round the inadequacies of the AVR32 "TWI" hardware, this implements
I2C as a bit-banging interface, currently handling a single channel only.
Tested on EVK1100 and Mizar32. "Should work" on EVK1101 if the 2-line change
is made to evk1101_conf.h
2011-06-28 04:20:11 +02:00
Martin Guy
4dea8b6665 Use the AVR32 GPIO's set/clear registers to simplify PIO operations.
The AVR32 GPIO resgiter map presents each GPIO register in four memory
locations which, respectively, read/write, set, clear and toggle bits
in the underlying hardware register.

This patch makes the AVR32 GPIO driving code use that register set
instead of reading, toggling bits and rewriting the registers, which required
a helper layer to make the necessary bit-twiddling generic.
2011-06-27 01:00:29 +02:00
Martin Guy
d1daa53541 Refactor "Portuguese" translations which are an old copy of the English. 2011-06-25 22:15:31 +02:00
Martin Guy
df65909f59 Merge branch 'master' of github.com:elua/elua 2011-06-25 03:27:39 +02:00
Martin Guy
e45faec6f9 Complete the support for versions of Mizar32 with 256KB and 512KB of flash 2011-06-25 03:26:38 +02:00
James Snyder
f175278212 fix build issue introduced when adding linenoise for posix platforms 2011-06-24 18:24:24 -05:00
Martin Guy
c388e32a84 Add support for versions of Mizar32 with 256KB and 512KB of flash 2011-06-24 20:40:39 +02:00
Martin Guy
81507203e3 Undo changes to mizar32_conf that entered with Nuccio's ethernet support,
returning to a 120KB config by default, which works on all Mizar32 platforms
(already OKed with Nuccio).

Automate the selection of features for the 128KB and 256/512KB versions by
checking the value of ELUA_CPU
2011-06-24 19:24:36 +02:00
Bogdan Marinescu
7a72d58d74 Fixed invalid 'romfs/' prefix for files in ROMFS 2011-06-23 11:50:58 +03:00
James Snyder
24e6a4f29f Disable setting of DTR control on windows serial since it seems to prevent reading with LM3S eval kits 2011-06-20 22:53:09 -05:00
James Snyder
bd1ee31f5b Check/fix some inexplicit conversions and type issues in LuaRPC and elsewhere. Other cleanup in LuaRPC 2011-06-20 20:02:45 -05:00
James Snyder
ef1f485db6 Use linenoise instead of readline on POSIX platforms for desktop LuaRPC 2011-06-20 18:04:53 -05:00
Martin Guy
41dfa67e4c Fix compilation errors in previous commit 2011-06-17 19:17:07 +02:00
Martin Guy
6d9cc5eb8c Remove tab characters and trailing spaces from avr32 platform code
and regularize indentation/spacing in new uip/ethernet code.
2011-06-17 19:00:05 +02:00
Martin Guy
dca244112b Merge branch 'master' of github.com:elua/elua 2011-06-16 15:02:22 +02:00
Marcelo Politzer Couto
1ae6f3f865 Corrected a memory leak, and checking writing error on xmodem recv. 2011-06-12 17:51:32 -03:00
Marcelo Politzer Couto
d64459f8f5 Added the new recv on term help. and corrected a comment. 2011-06-08 17:06:35 -03:00
Marcelo Politzer Couto
cc88916c9f Added file saving xmodem. to use it, run in eLua terminal: recv <path_to_file> 2011-06-07 18:59:13 -03:00
Dado Sutter
63ce42492c - Added news entry for the new site in experimental mode 2011-06-06 19:51:56 -03:00
Dado Sutter
5decf0da53 - Removing backup files from git versioning 2011-06-06 19:20:17 -03:00
Martin Guy
6877d642f1 Merge branch 'master' of github.com:elua/elua 2011-06-03 18:33:39 +02:00
Bogdan Marinescu
d7becf0d83 Automatically include files in romfs/ in the ROM filesystem
Now the build system will automatically include all the files in
romfs/ (except .gitignore) in the ROM filesystem. Remember that the
files in romfs/ should NOT be under source control.
2011-05-27 17:48:54 +03:00
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
Bogdan Marinescu
ad694200ce specify explicit command lines for the RPC builder as for some reasons 'scons' insists on building with cl under Windows 2011-05-20 19:22:11 +03:00
Tim Michals
53b11fadbf Integrated Tim Michals' patch for situations where platform_uart_recv can return more than one character in turn 2011-05-19 22:50:12 +03:00
Bogdan Marinescu
8b508717e3 ignore mux and rfs_server executables, as well as automatically generated doc/ subfolders 2011-05-17 21:33:26 +03:00
Bogdan Marinescu
242dae4504 STR912 ADC initialization fix 2011-05-17 21:32:17 +03:00
Bogdan Marinescu
a59d6ae56a Merge pull request #4 from naves-thiago/master
Fix RPC on MBED
2011-05-15 12:22:48 -07:00
naves.thiago
8f3976397f Fix RPC on MBED 2011-05-15 16:18:21 -03:00
Peter Edwards
d717fc44db Merged rfs_server/mux VS2010 compilation patch from Peter Edwards 2011-05-07 23:57:45 +03:00
Bogdan Marinescu
abefe29667 added SPI support for STR912 2011-05-07 23:31:44 +03:00
Bogdan Marinescu
1ca3b324b5 Initialization fix for STR912 2011-05-07 23:09:31 +03:00
Bogdan Marinescu
ea148e9741 Fixes some typos in the build scripts and the help text of 'mux' 2011-05-07 22:07:09 +03:00
Bogdan Marinescu
d21b544b74 Fixed an error that happened while merging the AVR32 networking support 2011-05-07 22:04:45 +03:00
Mike King
328bdb6094 Merged Mike King's patch for serial_win32.c 2011-05-07 22:04:09 +03:00
Nuccio Raciti
6cd2ba8366 Merge of AVR32 ethernet support from Nuccio Raciti 2011-05-07 19:09:43 +03:00
sweetlilmre
2f529e06f9 Added support for compiling mux and rfs_server under Visual Studio 2010. Patch includes move of rfs functions out of main.c in rfs_server and into rfs_transports.c/h
Signed-off-by: sweetlilmre <sweetlilmre@gmail.com>
2011-05-07 14:00:11 +02:00
Dado Sutter
c0d6211fc2 - Fixed issue #231 on the tracker
http://tracker.eluaproject.net/issues/231
  spi.write() hang when argument was a string with lenght=1
2011-05-02 22:18:57 -03:00
James Snyder
aee02c2986 Lengthen LuaRPC timeout over serial. 2011-05-02 17:39:00 -05:00
James Snyder
286f1263df bitarray: fix post-creation value setting for arrays with value sizes of 8,16,32 bits 2011-05-02 17:29:29 -05:00
James Snyder
ae856ae163 add bitarray, bit and pack modules to desktop luarpc build 2011-05-02 16:46:53 -05:00
James Snyder
06a9536b57 bitarray only needs types from type.h not full platform.h This adjustment makes compiling into luarpc (desktop) easier. 2011-05-02 16:43:49 -05:00
Martin Guy
7154ad7717 Fix typo 2011-04-27 14:28:27 +02:00
Martin Guy
b00b37e000 Merge branch 'master' of github.com:elua/elua 2011-04-27 02:48:13 +02:00