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

922 Commits

Author SHA1 Message Date
Bogdan Marinescu
a0ecdc124b RFS server fix
Read from the UART file descriptor until no data can be read
anymore (POSIX only). This is needed because sometimes the
RFS server didn't read all the available data and signaled errors.
2011-12-15 23:35:17 +02:00
Martin Guy
3195763d16 Fix typo in tmr doc 2011-12-11 18:19:49 +01:00
Martin Guy
ddcec49ae1 Drop timer support in Mizar32 128k default build to that the image fits.
The default config for the 128K Mizar32 board no longer fitted into the
available 129KB of flash. This drops the timer modules so that it does.
2011-12-11 17:34:26 +01:00
Martin Guy
2f560fb16b Fix compilation error when optram=0
This commit fixes
src/modules/tmr.c:203: warning: implicit declaration of function 'LNUMVAL'
src/modules/tmr.c:203: error: initializer element is not constant
src/modules/tmr.c:203: error: (near initialization for 'tmr_map[11].func')
due to missing #if LUA_OPTIMIZE_MEMORY > 0
2011-12-11 17:19:24 +01:00
Martin Guy
bbd7c635b9 AVR32 platform: Replace literal constant with its symbolic name
Numer of hardware timer IDs is available as a symbolic constant
on AVR32. This uses it instead of a literal "3".
2011-12-11 14:38:52 +01:00
Martin Guy
3b5fd90fb2 Move saving of old LCD cursor position to after the arg checking. 2011-12-10 18:15:02 +01:00
Martin Guy
8e3e4a634b optimize LCD reset code, as it is now a single command 2011-12-10 18:03:42 +01:00
Martin Guy
fb1d9c464c For new LCD firmware, drop need to limit data to 31 bytes
The previous Mizar32 LCD firmware had a limit of 31 bytes per
data message, while the new has no limit. This commit drops the
code that used to split long data transfers into 31-byte chunks.
2011-12-10 17:51:03 +01:00
Martin Guy
991bcec20d Fix typos in interrupt docs 2011-12-10 15:31:15 +01:00
Martin Guy
a4389ed77c Fix signed/unsigned conflicts in i2c data and integer parameters 2011-12-10 13:33:44 +01:00
Martin Guy
d3948700bc When defining a user character, restore cursor position using getpos()
When defining a user-defined character on the LCD panel, the hardware
forgets the current cursor position on the display.  We used to
restore it by keeping track of the cursor in software, but now that
the LCD firmware has a "report current cursor position" command,
we simply use that to save and restore the cursor position when
defining a char. Code saving: 272 bytes.

The old firmware could not return the current cursor position, so
previously, when defining a user-definable character, it could
2011-12-10 13:16:37 +01:00
Martin Guy
b07f2fd6c2 Implement and document mizar32.lcd.{getpos,buttons}() functions
The new LCD PIC firmware has the ability to return the cursor position
in the LCD character RAM and the state of the buttons. This commit
implements eLua module functions to make these available to users.
2011-12-10 12:50:31 +01:00
Martin Guy
1a087dbc7b Conform in-bracket spacing to eLua convention 2011-12-10 10:49:08 +01:00
Martin Guy
d154d93523 Fix mizar32.lcd.*() documentation 2011-12-10 09:58:52 +01:00
Martin Guy
f35b786ccc Use a #define for the LCD_RESET command, not a literal value 2011-12-09 19:20:18 +01:00
Martin Guy
8f708346b0 Fix two spellos in commentary 2011-12-09 11:29:27 +01:00
James Snyder
1802aea31f Update README to include information about where to find doc 2011-12-02 18:44:34 -06:00
Bogdan Marinescu
7b58d26d01 fixed potential timer match interrupt overflow on STM32 2011-12-01 00:38:59 +02:00
Bogdan Marinescu
c18d019556 fixed potential timer match interrupt overflow on STR9 2011-12-01 00:35:49 +02:00
Bogdan Marinescu
583191e697 AVR32 timer interrupt on match bugfix 2011-11-30 23:36:39 +02:00
Martin Guy
8b60c5f44b Fix Mizar32 speed regression introduced by systimer commit
Commit d4f03efb96973d73056d87b4173c394ca673bebf halves the running
speed of the interpreter on Mizar32 because the vitrual timer tick
happens 128906 ties a second when there is no FOSC32 crystal.
This commit restores VTMR granularity by calling the 10Hz routines
once every 12890 ticks.
2011-11-30 07:10:57 +01:00
Bogdan Marinescu
66975786cf Fixed error in getmindelay/getmaxdelay
Fixed an error which made the getmindelay/getmaxdelay functions
invalid (thanks to Martin for spotting this). Also refactored the
code that computes min/max delay from platform files to common code.
2011-11-28 22:58:10 +02:00
Martin Guy
b4acb4d2e7 Fix bugs in I2C speed setting for AVR32
- Always set a speed <= the one requested, never higher
- Return the closest integer to the actual speed that we set,
  instead of just returning the speed they asked for
- Limit the range of the speed to the possible values
  to avoid divisions by zero
2011-11-21 19:04:40 +01:00
Martin Guy
105d3ab458 Merge branch 'master' of github.com:elua/elua 2011-11-21 18:44:58 +01:00
James Snyder
e6eca3cd49 Remove extra unneeded set function from lua build system 2011-11-20 20:38:36 -06:00
James Snyder
f0047b1446 Added options to build systems to filter out certain file name patterns for ROMFS. 2011-11-20 20:36:44 -06:00
James Snyder
06cc867325 Remove requirement for hw_nvic.h inclusion in platform.c for LM3S which was causing redefinition complaints 2011-11-20 19:06:22 -06:00
Bogdan Marinescu
4045a35088 fixed LM3S periodic ETH interrupt triggering 2011-11-21 00:38:04 +02:00
Bogdan Marinescu
9218e6fc38 fixed LM3S interrupt handler order 2011-11-21 00:37:32 +02:00
James Snyder
d067d1f871 Missing USB support sources 2011-11-20 15:29:20 -06:00
James Snyder
745d3549fe Merge branch 'master' of github.com:elua/elua 2011-11-20 14:40:13 -06:00
James Snyder
b5b81e4b2a Correct merge to reflect system timer changes and uIP bug fix 2011-11-20 14:39:49 -06:00
Bogdan Marinescu
cc06690de4 STR9 GPIO interrupt fix 2011-11-20 21:05:10 +02:00
Bogdan Marinescu
79c287aeeb AVR32 GPIO interrupt support
INT_GPIO_POSEDGE and INT_GPIO_NEGEDGE support for AVR32. Tested on
an ATEVK1100 board (NEGEDGE only, POSEDGE is 100% symmetrical and
thus it should work too)
2011-11-20 20:55:33 +02:00
James Snyder
020d12919e Update some target headers, fix builds on 8962, 6965 2011-11-17 20:47:33 -06:00
James Snyder
7db7ac236c Fix building for a few conditions in LM3S platform
- improve SCons conf.py to support usb files
- enable building for 9b92 again
2011-11-17 20:11:45 -06:00
James Snyder
6e664ed6fc Modified to allow building on non-usb stellaris platforms 2011-11-13 17:54:33 -06:00
James Snyder
1b678dfea2 Merge branch 'master' into lm3s_usb_cdc 2011-11-13 17:41:23 -06:00
James Snyder
e56c810aa4 Merge pull request #6 from naves-thiago/master
Fix hard coded SPI ID on STR9
2011-11-13 14:51:01 -08:00
James Snyder
9cd7c65e06 Fix typo in mmc timer code that prevented writing to files 2011-11-13 15:56:06 -06:00
naves.thiago
7dfad82c0c Fix indentation 2011-11-10 21:28:53 -02:00
Bogdan Marinescu
cd530f9640 AVR32 INT_TMR_MATCH fix
Actually disable the timer match interrupt for the non-cyclic mode.
2011-11-10 13:03:57 +02:00
Bogdan Marinescu
d4f03efb96 timer interrupt support for AVR32 2011-11-10 02:27:44 +02:00
Bogdan Marinescu
b79a1d4ead fix invalid argument matching in tmr.set_match_int 2011-11-10 02:25:55 +02:00
Thiago Naves
a38586f217 Updated SPI count in str9's platform_conf.h ( also from the SPI fix ) 2011-11-08 16:55:58 -02:00
Thiago Naves
722d5cb0a1 Fix SPI on STR9 2011-11-08 16:44:37 -02:00
Martin Guy
920b1c28cc Merge branch 'master' of github.com:elua/elua 2011-11-04 05:26:06 +01:00
James Snyder
8c0f82198f Fix CRLF 2011-10-24 19:11:35 -05:00
Martin Guy
060d4980cd Tiny optimisation
cpol and cpha are already checked as being 0 or 1 in modules/spi.c
so don't bother masking them.
2011-10-22 20:50:04 +02:00
Martin Guy
6c655e6e57 Raise Mizar32 CPU freq from 60 to 66MHz and PBA from 15 to 16.5
All derived frequencies (sdram, USB, tmr, VTMRs, SPI, UARTs, PWM, MMC,
and ethernet) compensate correctly for the different PBA freq and
tmr.getmaxdelay() is still just over 0.5 sec (by a hair!).
This may work for EVK110X too - the reason they chose 60MHz is unknown.
2011-10-22 20:01:03 +02:00