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

1530 Commits

Author SHA1 Message Date
Raman Gopalan
32176fe233 tft: Expose a few colors 2017-11-28 21:47:16 +05:30
Raman Gopalan
81ba2d54fe tft init: Expose uart configuration 2017-11-28 21:22:09 +05:30
Raman Gopalan
a7509e76b0 TFT: module to control target's default display interface 2017-11-28 16:25:15 +05:30
Bogdan Marinescu
9a617a67b6
Merge pull request #114 from ramangopalan/master
Buzzer: eLua module for elua-zeisig-gemacht target
2017-11-20 14:21:56 +02:00
Raman Gopalan
cd43eceb65 buzzer.c: Cleanup comment section 2017-11-18 16:45:15 +05:30
Raman Gopalan
70b9037696 Buzzer: eLua module for elua-zeisig-gemacht target 2017-11-18 16:42:32 +05:30
Bogdan Marinescu
e34bded76e Merge pull request #110 from ThomasHornschuh/elua_patches_th
Additional patches to eLua
2017-08-10 11:36:50 +03:00
Thomas Hornschuh
d8679e6a30 Changes to bit module cpu module and virtual timers for new pull request
Improved bit module and cpu module memory r/w functions to accept all
numbers and scale them down to the 2^32 number range. It now works
analogous to the bit32 module of lua 5.2.

Changed patches in commom_tmr.c according to Bogdans recommendations
2017-08-08 20:20:09 +02:00
Thomas Hornschuh
0ba85be499 Fix bad formating in src/lua, to avoid compiler warnings 2017-08-03 17:19:24 +02:00
Thomas Hornschuh
972b3ad8d4 Small "tuning" in uart module to avoid UART FIFO overflows on large receives 2017-08-03 17:14:50 +02:00
Thomas Hornschuh
90e86c6e7b added the tohex and rotate functions from http://bitop.luajit.org/ 2017-08-03 17:13:23 +02:00
Thomas Hornschuh
7a45fcde7a Bugfix in bit.c
The bit module did not work correctly with numbers where bit 32 was set,
because the conversion between the eLua floating point numbers from/to
integer was using signed integers.
For example
print(string.format("%x",bit.band(0x80000000,0x80000000))) resulted
output "7fffffff" instead of 80000000.

The patches in this commit ensure that all conversions are done with
unsigned integers.
2017-08-03 16:33:35 +02:00
Thomas Hornschuh
55b90c0c55 Bugfixes in common_tmr.c
Fixed the following bugs:
Disabling the timer interrupt with a period of 0 for a virtual timer did
not clear the vtmr_int_periodic_flag, so the timer is still reset
regulary when reaching the old interval. The fix adds clearing of the
flag when tmr.set_match_int is called with a period of 0.

The check afainst the maximum value in tmr.set_match_int was wrong, this
has been fixed. The input value is scaled to the timer ticks before the
check is made.
2017-08-03 16:30:44 +02:00
Thomas Hornschuh
d0a6375202 Added support for 1K xmodem
Preliminary support for 1K xmodem. Should make it configurable.
2017-08-03 16:29:31 +02:00
Bogdan Marinescu
7a877e14cf Merge pull request #109 from ThomasHornschuh/elua_net
Changed net.accept behaviour
2017-07-31 11:31:35 +03:00
Thomas Hornschuh
427ea3970f Changed net.accept behaviour
The original implementation of net.accept did not unlisten the port
after returing. So additional clients can connect to the port, but the
connection is not used. The easiest way to solve this, is to make an
unlisten() call before returning from accept. But I think it is better
to separate listen/unlisten from accept and let the system allow
accepting new connections in the background which can be later taken
with a call to accept. This allows for example using a coroutine waiting
for new connections with a non-blocking accept loop and a yield call.
This commit contains everything to implement the new behaviour and also
add the methods net.listen and net.unlisten. To be compatible with the
old semantics net.accept automatically calls listen to the port.

In addtion the error handling of accept was changed in a way that a
timeout returns the new return value net.ERR_WAIT_TIMEDOUT instead of
returning -1. I find this more consistent.
2017-07-30 20:52:27 +02:00
Thomas Hornschuh
13a633b5ca Fixed elua_uip.c behaviour for accept calls
Allow new incomming connections to be queued between accept calls. This
allows to build servers which accept several connection and server them
all with the help of coroutines.
2017-07-30 20:52:16 +02:00
Bogdan Marinescu
1c744f03eb Merge pull request #107 from ramangopalan/master
SDMMC: Correct CS pin to resolve access to SD card
2017-03-25 15:11:53 +02:00
Raman
61a9c626c7 SDMMC: Correct CS pin to resolve access to SD card 2017-03-25 18:10:59 +05:30
Bogdan Marinescu
3f86ae23d9 Merge pull request #105 from ramangopalan/master
elua-zeisig-gemacht: Get rid of enc on this target
2017-03-13 17:55:21 +02:00
Raman
0db8307a56 elua-zeisig-gemacht: Get rid of enc on this target 2017-03-13 20:27:20 +05:30
Bogdan Marinescu
639845306d Merge pull request #104 from ramangopalan/master
New stm32 target: elua-zeisig-gemacht
2017-03-13 15:07:52 +02:00
Raman
af6b525121 New stm32 target: elua-zeisig-gemacht 2017-03-13 18:28:07 +05:30
Bogdan Marinescu
854cb14885 Reverted to stack-based allocations in parser
Most of the stack based allocations were restored a while ago
in commit f86cfd345b145544baf9e4205f86800b3a44a9db. The ones still
left were causing problems (#92), so this commit reverts to
stack-based allocations completely. Note that this might increase
the RAM usage in some cases.
2017-02-25 20:30:59 +02:00
TerryE
81a4db53e4 [PATCH] Fix ECG case in concat where stack top not recalculated 2017-02-25 17:37:06 +02:00
Bogdan Marinescu
510a850579 Merge pull request #101 from ramangopalan/master
XMC4500 proto-card-v2: Add initial eLua support
2017-02-04 16:45:20 +02:00
Raman
98ddd542ee XMC4500 protocard-v2: Disable SDMMC 2017-02-04 20:02:04 +05:30
Raman
02b8e4c9bd XMC4500 proto-card-v2: Add initial eLua support 2017-02-04 19:58:12 +05:30
Bogdan Marinescu
6e940af3fc Merge pull request #100 from ramangopalan/master
XMC4400: Wire UART to see the eLua shell
2017-02-04 14:09:18 +02:00
Raman
5ac7ccaac3 XMC4400: Wire UART to see the eLua shell 2017-02-03 15:40:08 +05:30
Bogdan Marinescu
e239d3bd5c Merge pull request #99 from ramangopalan/master
XMC4400: Add XMC44 system files and support eLua files
2017-02-01 10:26:06 +02:00
Raman
9d4f9bef75 XMC4400: Add XMC44 system files and support eLua files 2017-02-01 07:55:57 +05:30
Bogdan Marinescu
8a6777e18b Merge pull request #97 from ramangopalan/master
Update low level driver to v2.1.8
2017-01-31 17:08:06 +02:00
Raman
3880be447a Add check for XMC45 SDRAM board 2017-01-30 20:51:54 +05:30
Raman
a4ebdc39a9 Update low level driver to v2.1.8 2017-01-29 18:07:11 +05:30
Bogdan Marinescu
2a666bb0f9 Merge pull request #96 from shaiku/master
stm32f4 compiler warning fixes
2017-01-09 00:51:38 +02:00
shaiku
58391558c2 Fix bug where prev_handler was not being called as a function. Pass
resnum argument.
2016-12-28 22:18:39 -08:00
shaiku
9455867a68 Fix compiler warnings due to USB descriptor type signedness mismatch and
defined but unused function.
2016-12-28 22:03:51 -08:00
shaiku
8601560ff0 Fix compiler warnings due to mismatched type comparisons (NULL vs '\0') 2016-12-28 21:49:26 -08:00
shaiku
909d6a6b02 Fix compiler warnings on STM32F4 Discovery platform due to redefinition of
__packed macro
2016-12-28 21:39:05 -08:00
Bogdan Marinescu
e4b3168ece Merge pull request #93 from kapenzo/patch-1
Update cpu_xmc4700f144k2048.h
2016-11-07 15:37:34 +00:00
Bogdan Marinescu
30d6e36f7a Merge pull request #94 from MisterDr/master
Hello, I were added lpc1769 to data_list to be able to compile for lpcxpresso
2016-11-07 14:10:51 +00:00
Djenad Razic
a39d11f77a Update build_data.lua 2016-11-05 13:36:06 +01:00
MisterDr
e8c7203d35 - Added LPC1769 processor in the processor list to be able to compile for lpcxpresso 2016-11-05 13:31:25 +01:00
kapenzo
ff4449ded8 Update cpu_xmc4700f144k2048.h
Values before was out of range
2016-11-02 15:31:16 +01:00
Bogdan Marinescu
3bb7cf88ce Merge pull request #91 from ramangopalan/master
EBU: Invoke EBU initialization for the SDRAM board
2016-09-05 14:01:38 +03:00
Raman
bb5a027203 OLED_DISPLAY: Expose colors 2016-08-24 08:35:33 +05:30
Raman
205f04afdc Disable mmcfs on the SDRAM kit for now 2016-08-24 08:05:41 +05:30
Raman
b82b1f68f0 Tell the allocator sub-system about the SDRAM at 0x60000000 2016-08-24 08:01:18 +05:30
Raman
7b45da86b0 Initialize EBU if SDRAM kit is chosen for eLua 2016-08-24 07:47:09 +05:30