1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

890 Commits

Author SHA1 Message Date
Martin Guy
5cb72c0595 Set internal RAM size to 64KB on ATUC3A0{256,512} models of Mizar32 2011-07-10 13:35:28 +02:00
Martin Guy
51a3ed5f0c Document more precisely the arguments to i2c.write() 2011-07-08 21:44:51 +02:00
Martin Guy
1562d13cdf Change personal credits to company credit 2011-07-06 06:29:35 +02:00
Martin Guy
cd0b194fe3 Fix repeated spelling error "reffer" 2011-07-05 17:26:39 +02:00
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
James Snyder
4e9086177a more support for Soldercore device 2011-06-30 23:49:46 -05: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
naves.thiago
a17db87bd0 Merge branch 'master' of github.com:elua/elua into newrpc 2011-06-27 20:26:23 -03: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
naves.thiago
47137f93a6 Merge branch 'master' into newrpc 2011-06-21 02:00:15 -03:00
naves.thiago
2f97972fbf Merge branch 'newrpc' of github.com:naves-thiago/elua into newrpc 2011-06-21 01:59:04 -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
naves.thiago
7f44ca804d Merge branch 'master' into newrpc 2011-06-14 23:51:23 -03: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
Thiago Naves
b8201d9c6e Fix connection problem on adispatch() 2011-05-18 18:55:10 -03:00
Thiago Naves
a93e0e36fe Fix uart ID on transport_write_buffer.
Added uart setup to transport_open_connection and transport_open_listener
2011-05-18 01:32:00 -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
Thiago Naves
cb9deaa3d0 Fix PC side of rpc 2011-05-16 21:39:46 -03:00
naves.thiago
ae8ff48bae Code cleanup 2011-05-16 03:21:04 -03:00
naves.thiago
51cde9b540 Fixed asyc connections 2011-05-16 03:18:31 -03:00
naves.thiago
af052e57aa adispatch no longer crashes on connecton 2011-05-16 02:36:40 -03:00
naves.thiago
16a4a5cf17 Trying to make listen non blocking 2011-05-16 02:00:16 -03:00
naves.thiago
3560b19eb7 Changed timeout to 0 in rpc_adispatch 2011-05-16 00:25:46 -03:00