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

682 Commits

Author SHA1 Message Date
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
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
b00b37e000 Merge branch 'master' of github.com:elua/elua 2011-04-27 02:48:13 +02:00
James Snyder
7c41ff5fda add note about SVN->Git instructions 2011-04-26 18:54:00 -05:00
Martin Guy
ead2bf6b27 Turn KC_UP into term.KC_UP for clarity 2011-04-27 01:10:34 +02:00
Martin Guy
a0c387efb7 Fix typo 2011-04-27 00:52:33 +02:00
James Snyder
3185d8542e fix order of GitHub setup instructions 2011-04-26 17:17:52 -05:00
James Snyder
a637578dc6 Merge branch 'master' of https://github.com/elua/elua 2011-04-26 16:53:40 -05:00
James Snyder
4ce04512c8 Update downloads page with some Git instructions. 2011-04-26 16:51:36 -05:00
Martin Guy
c0faaa1305 Fix markup 2011-04-26 23:36:33 +02:00
Martin Guy
9e936e070f fix typo 2011-04-26 23:32:14 +02:00
Martin Guy
e1b80e55bb Fix bug #221 2011-04-25 21:27:50 +02:00
Martin Guy
27d0ed361e Revert "Put more SERMUX code under #ifdef BUILD_SERMUX"
This reverts commit 02cc57c53822d6aec3f55cca15c6f1f2f3c4cad7.

Objected to by Bogdan.
2011-04-25 21:26:19 +02:00
Martin Guy
53efb1b4c8 Add code to allow compilation with BUILD_LUA_INT_HANDLERS on avr32 platforms 2011-04-25 17:46:22 +02:00
Martin Guy
02cc57c538 Put more SERMUX code under #ifdef BUILD_SERMUX
Saves 184 bytes in code segment when !BUILD_SERMUX by replacing constant
runtime checks with compile-time ones.
2011-04-25 17:16:05 +02:00
Martin Guy
dfcde5bb47 Starting to fix AVR32 UARt code:
- Check for error return values and return errors when they happen
- Return error value when invalid parameters are passed
- uart.setup(): return the actual baud rate set.
2011-04-25 16:32:00 +02:00
Martin Guy
c0119c0908 Revert "Allow enabling/disabling of console buffer bu changing only BUF_ENABLE_CON"
This reverts commit a836ebeaaee9b3a84096f6f72213fa4a9d9f725a.

As requested by Bogdan
2011-04-25 13:52:10 +02:00
Martin Guy
0a89dae26b Revert "Remove printing of internal code values from "Buffer overflow" message"
This reverts commit 593b4b92327622b62f262d3c333e93d914d4ff72.

As requested by Bogdan
2011-04-23 19:15:17 +02:00
Martin Guy
f49b44eae6 Fix typos in en_refman_gen_tmr doc 2011-04-23 18:56:41 +02:00
Martin Guy
593b4b9232 Remove printing of internal code values from "Buffer overflow" message
so that the relatively common UART input buffer overflow condition just says
"[ERROR] Buffer overflow." without the inscrutable "resid=0 resnum=0" numbers.
2011-04-23 18:20:15 +02:00
Martin Guy
a836ebeaae Allow enabling/disabling of console buffer bu changing only BUF_ENABLE_CON
(before, you had to change BUF_ENABLE_CON and CON_BUF_SIZE in parallel).
2011-04-23 18:05:50 +02:00
Martin Guy
3b17c33002 When there is an error reading a line of input, return the actual number of
characters received before the error (not a whole buffer full of junk!)
2011-04-23 18:03:51 +02:00
Martin Guy
35c0b09875 When the UART gets a receive error, clear the error flag to avoid infinite
repetition of the error state.
2011-04-23 18:02:47 +02:00
Martin Guy
b49a11f4a2 Fix typos in documentation 2011-04-21 20:48:04 +02:00
Martin Guy
eed1f7492d Prepare Mizar32 platform conf for support of ADC module (disabled by default) 2011-04-21 19:34:09 +02:00
Martin Guy
5cb0a63bee Fix defines so that inclusion of ADC code is controlled by BUILD_ADC
(previously, if NUM_ADC>0 but !BUILD_ADC, compilation failed with
unresolved symbols)
2011-04-21 19:09:19 +02:00
Martin Guy
ae73382af2 Omit AVR32 UART pin definitions for UARTS 3 and 4 when NUM_UART <= 2
(which is the usual case)
2011-04-13 13:16:04 +02:00
Martin Guy
3b77200eda EVK1100 has two UARTS, not four. USARTs 2 and 3 are used for SPI, and calling
uart.setup() on them can crash the board.
2011-04-13 13:06:53 +02:00
Martin Guy
d5b8f534ae Avoid compiler warning about adc_int_handler() when NUM_ADC == 0 2011-04-13 12:06:19 +02:00
Martin Guy
0c0fe83457 Revert "Avoid compiler warning about adc_int_handler() when NUM_ADC == 0"
This reverts commit d0eae8c43349e422a306d8b51fd10c531d359964.
2011-04-13 12:04:38 +02:00
Martin Guy
d0eae8c433 Avoid compiler warning about adc_int_handler() when NUM_ADC == 0 2011-04-13 12:01:51 +02:00
Martin Guy
2873ac892a Comment rationale behind Mizar32 pull-up resistor code on UART0 RX pin
and make it happen before the UART (interrupt) is initialized.
2011-04-13 11:56:00 +02:00
Martin Guy
a0cda92c75 Fix typos in pio refman doc 2011-04-13 11:38:26 +02:00
Martin Guy
d6042df51f Fix two typos in refman_gen_cpu doc 2011-04-13 11:34:31 +02:00
Martin Guy
873c731568 Fix typo in i2c doc: u23 -> u32 2011-04-13 09:32:05 +02:00
Martin Guy
d55aa8cf10 Add minimal documentation at the head of build_elua.lua
saying how to install dependencies and where to find out the
command-line flags
2011-04-12 17:05:08 +02:00
Martin Guy
1fd500623e Make build-elua.lua also a directly executable script (#! ...) 2011-04-12 16:34:42 +02:00
Martin Guy
28c2c86847 Fix typos in I2C documentation 2011-04-12 16:23:25 +02:00
Martin Guy
fe4c8d86f7 Integrated Martin Guy's emBLOD bootloader patch in eLua. Original patch message:
emBLOD is Marcus Jansson's second-stage boot loader for AVR32UC3A
parts as used in the EVK1100 and Mizar32 boards, designed to allow
firmware images larger than the on-chip flash memory by loading the
eLua binary from SD card into SDRAM and executing it there.

The source for the emBLOD loader is here https://github.com/cmp1084/emBLOD

When compilation option  bootloader=emblod is given to scons, a special
version is compiled that
- locates the program at the start of SDRAM
- doesn't initialize the system clocks and SDRAM controller, as these
are already set up by emBLOD.

If the bootloader= option is not given, eLua is compiled exactly as before.

The changes I've made to Marcus' originally posted patches are to put
DATA and BSS in internal static RAM, the same as before, since in the
best case (memcpy) the SDRAM is three times slower than access to
static RAM
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=80657

This also has an impact on code speed: the interpreter runs 9 times
slower in external SDRAM than it does in internal flash.

Tested and working on Mizar32
2011-04-07 22:35:10 +03:00
Bogdan Marinescu
091b5d31e9 Lua build system improvements and bug fixes
- specify -Dmacro on the builder command line to automatically include the macro in the compiler command line
- refactoring: option handling code now moved to utils/utils.lua
- various small bugfixes
2011-04-07 17:38:10 +03:00
Martin Guy
01bcb32034 Apply Roberto's security and bug fixes to Lua 5.1.4 updating it to 5.1.4-3
See http://www.lua.org/ftp/patch-lua-5.1.4-3
2011-04-06 19:31:39 +02:00
Martin Guy
6a46c6d425 Fix pio.port.getval() on AVR32 and AT91SAM7X platforms.
See http://tracker.eluaproject.net/issues/188 for details
2011-04-06 19:00:42 +02:00
Martin Guy
044ca8cadd The AVR32 timer setup code is pointlessly complex, defining two structures
identical to the ones in the avr32 headers, then copying the bitfields one
by one.  This commit just uses the avr32 bitfields and writes them to the
regiters as 32-bit words. Code saving: 240 bytes (and it's faster of course)
2011-04-06 18:55:30 +02:00