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
13b84a2ca0 Reformat long lines (>2k!) to 80 columns 2011-03-20 01:56:28 +01:00
James Snyder
7e6189d2c1 minor adc and avr32 cleanup 2011-03-18 17:40:53 -05:00
James Snyder
fdbdbcc335 Implement basic ADC module for AVR32 (only tested on EVK1100), add crosstools-ng avr32 toolchain to lua-based build system.
- add basic (no clock support) ADC implementation for AVR32, works on EVK1100
- add avr32-unknown-none-gcc to new lua-based build system to support crosstools-ng avr32 toolchain
2011-03-18 15:20:27 -05:00
James Snyder
5aa2558cc3 Merge branch 'master' of https://github.com/elua/elua 2011-03-17 14:59:39 -05:00
James Snyder
bf17fc216f Don't automatically compile functions we're not using in FatFs for mmcfs. Won't reduce code size for most platforms since we garbage collect when we link, but we don't need to compile these anyways. 2011-03-17 14:57:58 -05:00
nuccio
346132a806 resolved the -Os issue 2011-03-16 09:15:47 +01:00
Martin Guy
2d14535e76 Fix comment to reflect reality 2011-03-16 00:55:04 +01:00
Martin Guy
a4af4ea2b2 Revert "Decrease AVR32 stack size from 8192 to 2048, the same as the other small"
With 2048, the Lua parser dies on "life.lua".

This reverts commit 9a3abb6b1025814875a73753a11ceb1401f67d82.
2011-03-15 22:12:30 +01:00
Martin Guy
70a2dd4d04 Merge branch 'master' of github.com:elua/elua 2011-03-15 05:37:13 +01:00
Martin Guy
cf9c3bd3d1 Do use the internal SRAM for the start of the heap (and then the SDRAM)
because this makes small program (up to 16KB heap) run about twice as fast.
2011-03-15 05:18:27 +01:00
Martin Guy
efbe36d4ed Fix variable name in commentary 2011-03-15 05:16:42 +01:00
Martin Guy
9a3abb6b10 Decrease AVR32 stack size from 8192 to 2048, the same as the other small
platforms. In brief testing, it still seems to work down to 256 bytes
2011-03-15 05:15:14 +01:00
James Snyder
3e1248ebc6 Fix to allow STM32 PWM frequencies to go below 1100 Hz 2011-03-14 17:02:15 -05:00
Martin Guy
957dab161d Fix spello in toolchain doc: "reffer"->"refer" 2011-03-14 05:27:20 +01:00
nuccio
c5579aa4f4 Added AVR32 network support, please note here is a issue with -Os optimisation, fix it before git pull 2011-03-13 17:41:05 +01:00
Bogdan Marinescu
ab5e07bf10 Small fix for running build_elua.lua in Windows 2011-03-06 13:06:45 +02:00
Bogdan Marinescu
9cde5334a8 Compiled files are now found automatically
The files that will be compiled to link an eLua image are now found automatically,
there's no need to specify them explicitly anymore. This applies only to the main
'build_elua.lua' build file, each target's 'conf.lua' still needs to specify them
explicitly (but can use the same automatic source file finding as the main build file).
2011-03-06 03:29:31 +02:00
Bogdan Marinescu
2764ae4c57 Added 'summary' display mode in builder
Added a 'summary' display mode in the builder which displays less information
(thus making the output more readable) and also adds colors :) Not exactly
very useful but I saw this recently in cmake and I _had_ to implement it :)
Activate with "disp_mode=summary" in the command line.
2011-03-05 21:42:20 +02:00
Bogdan Marinescu
77ac825d39 Targets can be reffered to by name now
Now a target can be reffered to also by its name, not only by the
corresponding _target object. Also added 'utils.lua' as a separate
file in utils/ (it used to be a part of build.lua)
2011-03-05 20:22:11 +02:00
Bogdan Marinescu
bcc81ba5fe added README.md for github 2011-03-02 11:20:11 +02:00
James Snyder
4e68621295 Correct a few issues related to flow control setup on STM32:
- RTS/CTS pins may not have been configured in correct modes
 - ensure that remapping for CAN peripheral occurs during startup so USART1's RTS pin is usable
2011-03-01 19:04:01 -06:00
Bogdan Marinescu
163870081d Yeah, you guessed it: even more improvements to the build system :) 2011-02-27 18:31:09 +00:00
James Snyder
5dd26401bd allow avr32-unknown-none variant of avr32 toolchain created by crosstools-ng for avr32 2011-02-27 04:27:29 +00:00
Bogdan Marinescu
aafb49e079 added automatic check of changes in the command line for different tools; if a change is detected the build system will automatically issue a 'clean' before building the target 2011-02-23 08:04:03 +00:00
Bogdan Marinescu
271242ccd4 AVR32 PX patch from Marthin (thanks!) 2011-02-22 21:19:13 +00:00
Bogdan Marinescu
38a6afaa2b reverted the (unplanned) change of serial_win32.c 2011-02-22 10:13:16 +00:00
Bogdan Marinescu
1822ee1572 Now all eLua platforms compile using build_elua.lua; output compared with scons' output to verify that the same code is generated 2011-02-22 09:58:02 +00:00
Bogdan Marinescu
cd3d721519 added more platforms to the new build script; fixed issue that prevented compilation under Windows 2011-02-21 23:29:54 +00:00
Bogdan Marinescu
36d160876d More refinements to the new build system (yes, a lot of those, I know :) ) It is now possible to send arguments to targets if they are Lua functions. For example:
$ lua build_elua.lua board=et-stm32 burn /dev/ttyUSB0

will invoke stm32ld (the default for stm32's platform 'burn' target) on port /dev/ttyUSB0.
I really have to document all this stuff somewhere. Don't panic though, for now you can use the old build system exactly like you used it before :)
2011-02-21 16:08:55 +00:00
Bogdan Marinescu
b95dd84c41 - avr32 platform now uses the Lua build system (lua build_elua.lua board=mizar32|atevk1100|atevk1101)
- added support for per-backend targets. avr32 now has a 'burn' target (besides the regular 'prog') that can be used to build the image and burn it to the board (lua build_elua.lua board=atevk1100 burn). It is created in 'conf.lua'
- other fixes and improvements to the build system
2011-02-21 13:22:47 +00:00
Bogdan Marinescu
df9cacec40 mkfs.lua bug fixes; now it works with actual ROMFS data in all modes (verbatim, compress, compile) 2011-02-21 07:57:44 +00:00
Bogdan Marinescu
e3d6ee2715 Continuing work on the build system, try 'lua build_elua.lua board=et-stm32 prog' (it only works for stm32 for now). Still a lot of WIP and not throughly tested (for example the new mkfs.lua script was not tested at all with a non-empty FS) but it does seem to work nicely. NOTE: you need to install 'lpack' for this to work (luarocks install lpack). Anybody knows of a good way
to implement make's (or scon's ) '-jn' option (for parallel builds) in a cross-platform manner?
2011-02-21 01:01:21 +00:00
Bogdan Marinescu
2d0dbd0ed3 First step towards a Lua based build system. NOT Lake based, just a set of functions that I wrote (utils/build.lua). Does automatic dependency checking (something Lake doesn't do very
well), per-project build directories and other nice stuff. So far used only for mux and rfs_server; 'lua mux.lua' or 'lua rfs_server.lua' to test (add "-c" to clean). Only needs lfs.
2011-02-20 00:15:16 +00:00
Bogdan Marinescu
3f8e89498e added Mike's doc patches from 2011-02-11 2011-02-13 13:02:59 +00:00
Dado Sutter
8dbeb972a3 - Changing .org to .net on the Copyright notice (at least until we start using www.eluaprojec.org domain) 2011-02-07 22:45:16 +00:00
Bogdan Marinescu
93e964d414 integrated Mike's documentation patches 2011-02-07 21:03:07 +00:00
Dado Sutter
3b14f52f52 - Copyright notice on shell prompt updated to 2011
- Community page changes irrelevant here, as this content will migrate to a CMS soon
2011-02-07 20:47:11 +00:00
Bogdan Marinescu
a8b8c4e6f1 fix for issue #172 2011-02-06 00:58:50 +00:00
Bogdan Marinescu
95915bafd6 configuration fix for ATEVK1100, fixes issue #180 2011-02-05 18:28:03 +00:00
Bogdan Marinescu
99d7fbf41f disabled the serial multiplexer in ATEVK1100 which fixes issue #179 2011-02-05 16:36:02 +00:00
Bogdan Marinescu
1c05a25a43 updated doc build instructions 2011-02-04 23:11:27 +00:00
Bogdan Marinescu
ed482fa057 fix for issue #174 2011-02-04 21:10:17 +00:00
Bogdan Marinescu
ea21ee0068 changed arch_coding from HTML to AsciiDoc and applied Mike's patch from issue #177 2011-02-04 20:55:20 +00:00
Bogdan Marinescu
3d9395698b checked in Mike's doc patches from issue #175 2011-02-04 19:59:18 +00:00
Bogdan Marinescu
6e4f4ffc4d updated SPI status for mbed 2011-02-03 14:35:57 +00:00
Bogdan Marinescu
f9fbead54c merged pre0.8 branch back to trunk 2011-02-02 17:52:12 +00:00
James Snyder
6faff62921 Add ability to set interrupt trigger to reset encoder counter on STM32. 2011-01-31 20:37:26 +00:00
Dado Sutter
dca48165b6 - Licence updated to 2011
- Changelog prepared for after 0.8 changes only
2011-01-29 20:37:19 +00:00
Bogdan Marinescu
08905a8116 fixed interrupt polling documentation 2011-01-28 19:50:01 +00:00
James Snyder
be96df634e STM32: allow simultaneous rising/falling interrupt registration for a given line 2011-01-27 23:25:55 +00:00