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

1160 Commits

Author SHA1 Message Date
mauricio
43533ba9f8 Fixed terminal UART GPIO initialization. Even though UART was working, the previous UART TX (P5.0) initialization was making CAN TX (P3.2) not work, apparently because of IPConnected_Enabled on the GPIO_InitStructure. Probably it is safer always refresh the GPIO_InitStructure for every pin configuration on STR912. 2013-07-11 00:06:34 +03:00
mauricio
290a5d18ec Revert "Merge pull request #22 from mauriciobomfim/master"
This reverts commit f71d8b4329c81ef2aa4a7bdf43b7f6491b9af618, reversing
changes made to 661e6855dbb2bbc10d6aed0322d873920067655e.
2013-07-09 14:28:57 -03:00
Gabriel Duarte
f71d8b4329 Merge pull request #22 from mauriciobomfim/master
Added CAN support to STR912 plus MMCFS pin configuration. Tested on Olimex STR9-E912.
2013-07-09 08:33:25 -07:00
mauricio
cf62e92d89 Added mmcfs configuration for STR-E912 board (note: set the card_cs_sel jumper to the position closer to the JTAG). 2013-07-05 20:07:03 -03:00
mauricio
6d24e6c8ee Added CAN support on STR912. Tested on Olimex STR9-E912 board. 2013-07-05 19:35:49 -03:00
mauricio
ea26604d55 Included stdbool.h 2013-07-05 19:27:53 -03:00
mauricio
cef0fc45f5 Fixed terminal UART GPIO initialization. Even though UART was working, the previous UART TX (P5.0) initialization was making CAN TX (P3.2) not work, apparently because of IPConnected_Enabled on the GPIO_InitStructure. Probably it is safer always refresh the GPIO_InitStructure for every pin configuration on STR912. 2013-07-04 19:25:41 -03:00
Bogdan Marinescu
661e6855db Removed spurious 'print' 2013-06-29 08:41:20 +03:00
Bogdan Marinescu
43b4dc6cd8 Build system fixes for Windows 2013-06-29 08:34:22 +03:00
Thiago Naves
d54ce365cc Merge branch 'master' of github.com:elua/elua into lpccan 2013-06-20 17:17:36 -03:00
Bogdan Marinescu
91946fc05e STM32F4 CDC UART support + other CDC changes
This should really be more than one commit, but here it goes anyway:

- added STM32F4 CDC UART support. For some reason, it seems to work only
on the OTG_FS interface, the OTG_HS interface enumerates it, but
doesn't seem to send/receive any data.
- removed the "platform interface" functions for CDC UART. That was
never really a platform interface, just a couple of functions reading
and writing data from/to a CDC UART. Now each backend takes care of this
as a special case in its platform_uart_xxx functions.
- added buffering support for CDC UARTs
- added uart.CDC to the uart module, so the CDC uart can be used directly
from Lua.
- stm32f4discovery now defaults to using the CDC, since it doesn't have
a dedicated UART connector.
2013-06-26 01:04:34 +03:00
Bogdan Marinescu
0d24c663db Adding support for STM32F4 on master 2013-06-22 13:11:24 +03:00
Thiago Naves
6d0005ab6f Added CAN to MBED 2013-06-20 17:17:01 -03:00
Thiago Naves
9c9ff0d5dd Merge branch 'master' of github.com:elua/elua into lpccan 2013-06-20 05:28:26 -03:00
Thiago Naves
49e4f3ba36 Added CAN pin configuration for the Olimex STM32-E407 board 2013-06-19 18:41:35 -03:00
mauricio
4cecf18568 Added support for STM32 PORT407z
http://www.wvshare.com/product/Port407Z.htm
2013-06-13 17:02:53 -03:00
Bogdan Marinescu
01835325d9 Merge pull request #21 from tcoram/master
Fixed "lua: attempt to call a string value" when loading platform libraries
2013-06-12 12:20:47 -07:00
Todd Coram
4761e7a49a platform lib init fixed 2013-06-12 10:57:47 -04:00
Bogdan Marinescu
3a3c7e747f stm32f4: added backend-specific UART pin configuration mechanism 2013-06-03 23:26:35 +03:00
James Snyder
af84f50f7e Apply patch that was still only in jsnyder branch:
- Enable use of internal voltage reference and temperature sensor
2013-05-31 11:53:11 -05:00
Bogdan Marinescu
f4b9771759 fix for previous commit 2013-05-31 13:20:58 +03:00
Bogdan Marinescu
0b112e833c Added support for STM32-E407 (Olimex) 2013-05-31 13:13:24 +03:00
Bogdan Marinescu
b8976b7719 this should've been part of previous commit 2013-05-29 00:59:58 +03:00
Bogdan Marinescu
96ae53d269 STM32F4 fixes
- added STM32-P407 board from Olimex (no ext SRAM yet)
- added documentation for the new configurator parameters

Signed-off-by: Bogdan Marinescu <bogdan.marinescu@gmail.com>
2013-05-29 00:58:35 +03:00
Bogdan Marinescu
698f6e251c Various fixes in STM32F4 code 2013-05-28 17:18:18 +03:00
Bogdan Marinescu
fb67d90efc STM32F4 initial code import
Original authors:
* Zhanjun: http://dd.homeunix.com/home/space.php?uid=1&do=blog&id=90
* Ned Konz : https://github.com/bikeNomad
2013-05-28 15:38:13 +03:00
Bogdan Marinescu
5f6ca7d033 merged github master 2013-05-28 12:26:48 +03:00
Bogdan Marinescu
a65b60c078 Switched to the new build system and configurator 2013-05-27 11:28:19 +03:00
Bogdan Marinescu
96fcd19e7c Added more components to the simulator
Also, I should really document the simulator at some point. Not after
a week-end of writing and updating docs though.
2013-05-26 21:34:28 +03:00
Bogdan Marinescu
89acc4910b Various fixes
- build_release.lua changed to use the new build system
- checked for proper compilation of all known configurations (boards/known/)
- fixed various small issues in the builder/utils library
- added 'disp_mode=minimal'
2013-05-25 19:52:36 +03:00
Bogdan Marinescu
c08e1ae7b0 Documentation updates
- deleting references to the old build system
- arch_newport switched to AsciiDoc and updated with the new build system/configurator
- added 'source-highlighter' as a dependency to the doc builder
2013-05-25 16:52:14 +03:00
Bogdan Marinescu
4aff229c68 Documentation updates
- Updated docs about generating CPU constants
- Fixed errors in the configurator documentation
2013-05-25 14:43:23 +03:00
Bogdan Marinescu
400ab5bee5 Support for multiple SD cards added in the configurator
Documentation updated.
2013-05-25 14:18:32 +03:00
Bogdan Marinescu
a9da3f816b Documentation updated
- (mostly) finished configurator docs
- arch_overview conterted to AsciiDoc and updated
- 'adc' parameters updates in all configuration files
- added 'config_only' option to the build system
2013-05-25 01:30:08 +03:00
Bogdan Marinescu
e5b64a46fe More work on the configurator
- started on the docs
- added the 'autoenable' attribute to some components
- moved LM3S ADC-specific configuration data to the LM3S backend
2013-05-24 12:21:16 +03:00
James Snyder
f86cfd345b Adjust parser to not malloc when a thrown error might preventing allocations from beeing freed 2013-05-20 17:39:42 -05:00
Bogdan Marinescu
958f357257 Working on the new build system
- Deleted the Python build files
- Main documentation updated with information about how to use build_elua
- CSS updated to provide a bit of free space at the top of <h2> headings.
- Added rpc-lua.lua
- Fixed cross-compilation errors

References to scons still exist in the docs, they'll have to be removed.
2013-05-19 15:57:18 +03:00
Bogdan Marinescu
dd9e671034 xmc4000: fix number of ports/pins 2013-05-18 22:35:08 +03:00
Bogdan Marinescu
d7fe764d41 Identify not present GPIO ports
Ports with a number of pins equal to 0 are now considered as not
present on the host. This allows for a non-linear definition of
ports (for example: P0, P1, P3, P7, P8 ...)
2013-05-18 22:33:19 +03:00
Bogdan Marinescu
cc459c1543 Multiple changes
- added GPIO driver to XMC4000
- new functions for the PIO module / updated docs
2013-05-18 22:09:02 +03:00
Martin Guy
b8de3631b0 Allow BUILD_SHELL without BUILD_TERM
The only thing the shell uses from "term" is its getchar()
substitute, which ends up in platform_uart_getchar() on every
platform except i386. So if TERM is present, use its getchar()
redirector, and if it isn't, use platform_uart() directly.
2013-05-15 17:17:32 +02:00
Martin Guy
9a52067a40 Mizar32: Make inclusion of term.*() Lua module depend on BUILD_TERM
Just a config dependency change so that undefining BUILD_TERM
automatically disables the "term" module.
2013-05-15 17:15:57 +02:00
Bogdan Marinescu
1b7973a6d6 initial port 2013-05-13 01:59:01 +03:00
Martin Guy
63fbfb68c5 Make table of available RAM regions static
Instead of constructing them on the stack at runtime in every call to
platform_get_{first,last}_free_ram().
When there was is only one RAM region this makes no difference, as the
whole thing is optimised out. However, when there are more than one
region, this improves both size and speed, especially in the simple
allocator, which calls these functions twice each at every call to
malloc().
2013-05-07 17:57:07 +02:00
Martin Guy
ed9b7df41a Fix compiler warming about unused variable in dlmalloc when !HAVE_MMAP 2013-05-07 17:32:16 +02:00
Martin Guy
66272c725b Add 2 missing lines of the EGC patch
These two lines are in the Emergency Garbage Collector patches but
seem to have got lost in transit.
The case it handles (exceeding MEMLIMIT) is pretty rare.
2013-05-07 17:15:58 +02:00
Martin Guy
93db286103 Fix compiler warning for type of luai_ipow()
The Lua VM's luai_ipow() function is reused in lmathlib to provide
an integer version of the pow() function. However luai_ipow's
declaration in luac is only for LUA_CORE, whereas lmathlib.c is LUA_LIB.
The least invasive fix is just to redeclare it in lmathlib.c
2013-05-07 17:05:26 +02:00
Martin Guy
b54e29c09a Make inclusion of elua.shell() conditional on BUILD_SHELL
Compilation failed if te elua Lua module was included but
BIULD_SHELL was not defined. This fixes that case.
2013-05-03 14:22:50 +02:00
Bogdan Marinescu
463f0bceda Merge branch 'master' into luabuild
Conflicts:
	.gitignore
	src/common_tmr.c
	src/platform/lm3s/platform.c
	src/platform/lm3s/platform_conf.h
	src/platform/sim/platform_conf.h
	src/platform/stm32/platform_conf.h
	src/platform/str9/platform_conf.h
  utils/build.lua

Also fixed some minor issues in the builder.
2013-04-25 16:55:29 +03:00
Bogdan Marinescu
803cac6df4 set the date of release to 04.04.2013 v0.9 2013-04-02 00:30:40 +03:00