1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

1494 Commits

Author SHA1 Message Date
Raman
0ca578f3fb ezg: Enable WOFS and NIFFS in board file 2019-01-21 16:07:34 +05:30
Raman
d46a06bcf2 XMC45: Cleanup: Fix compilation on the SDRAM boot-kit 2019-01-21 08:00:52 +05:30
Bogdan Marinescu
3e703bbe73
Merge pull request #150 from ramangopalan/master
XMC47: DAC module: Functions for pattern generation
2019-01-20 13:08:06 +02:00
Raman
fbf9974f4d XMC45: Fix compilation on relax and protocard targets 2019-01-20 10:15:07 +05:30
Raman
5536736595 XMC47: DAC module: Functions for pattern generation 2019-01-19 16:36:15 +05:30
Bogdan Marinescu
3ebd57255d
Merge pull request #149 from ramangopalan/master
cpu_xmc4700f144k2048.h: Fix clock and DAC constants
2019-01-16 12:05:06 +02:00
Raman
160a066990 cpu_xmc4700f144k2048.h: Fix clock and DAC constants 2019-01-16 15:33:10 +05:30
Bogdan Marinescu
10c11bd41d
Merge pull request #148 from ramangopalan/master
XMC47: eLua serial console: Enable DMA mode for UART0
2019-01-14 11:54:32 +02:00
Raman
94cb28e562 XMC47: eLua serial console: Enable DMA mode for UART0 2019-01-14 08:02:38 +05:30
Bogdan Marinescu
5bdcdf822d
Merge pull request #147 from ramangopalan/master
XMC47: PIO: Cleanup with LLD references
2019-01-11 10:03:57 +02:00
Raman
367e50f783 XMC47: PIO: Cleanup with LLD references 2019-01-11 06:46:29 +05:30
Bogdan Marinescu
25e9548302
Merge pull request #146 from ramangopalan/master
XMC47: Fix SDMMC support + LLD updates
2019-01-09 12:33:25 +02:00
Raman
f79b14e00f XMC47: Fix SDMMC support + LLD updates 2019-01-08 17:47:19 +05:30
Bogdan Marinescu
4670768aa8
Merge pull request #142 from smartavionics/mb-stm32f4-exti-fixes
stm32f4 exti fixes
2018-09-19 17:43:23 +03:00
Mark Burton
6c14c84800 Now stm32f4 external interrupt handler checks interrupt status before passing interrupt down.
Without this check, I was seeing multiple interrupts when only 1 was expected.

I note that all examples on the internet that show how to use the external interrupts
do include the call to EXTI_GetITStatus() so I guess that is is required.
2018-09-18 11:40:56 +01:00
Mark Burton
eea2cabd53 Now stm32f4 external interrupts work again for ports other than PA.
All I did was uncomment an existing function call and correct the function name.
2018-09-18 11:31:45 +01:00
Bogdan Marinescu
acff101dbb Fix for weird compilation error 2018-06-12 01:03:28 +03:00
Bogdan Marinescu
8885873138
Merge pull request #137 from elua/lua5.1.5
Finish the changes required to switch to Lua 5.1.5
2018-06-12 00:38:23 +03:00
Bogdan Marinescu
067c4c9235 Finish the changes required to switch to Lua 5.1.5 2018-06-12 00:29:39 +03:00
Bogdan Marinescu
32cb086a69
Merge pull request #136 from elua/alloc_error
New feature: memory error callback
2018-06-11 21:57:06 +03:00
Bogdan Marinescu
9dffa3ce81 New feature: memory error callback
This PR adds the possibility of specifying a memory error callback in
the "ram" element of the "config" section. The new configuration
attribute is called "memory_error_callback" and its value is the name of
a function with the signature "void f(size_t)" that will be called
automatically in the following cases:

- when malloc, calloc, or realloc (with the 'size' argument greater than
  0) return NULL. The callback function will be called with the 'size'
  argument of the allocation function.
- when the allocator encounters an internal error (only when using the
  'multiple' allocator). The callback function will be called with the
  argument set to 0.

For now, this feature is only availabsle when using the multiple
allocator or the simple allocator, not the built-in libc allocator.

Usage example (in the board configuration file):

```
   config = {
     ram = { memory_error_callback = "memory_error" }
   }
```
2018-06-11 21:48:46 +03:00
Bogdan Marinescu
83ad238d89 Added missing change from previous PR #133 2018-06-11 20:43:03 +03:00
Bogdan Marinescu
73af8565de Spelling fix 2018-06-11 20:20:32 +03:00
Bogdan Marinescu
9339ed5737
Merge pull request #135 from elua/raw_compile
New cross-compiler mode: "compile_raw"
2018-06-05 19:27:16 +03:00
Bogdan Marinescu
66f8c102a5 New cross-compiler mode: "compile_raw"
The new mode compiles the Lua files to .lc (bytecode) files for later use.
This should be replaced later with a proper script dedicated to
cross-compiling Lua sources.
2018-06-05 19:17:58 +03:00
Bogdan Marinescu
1397a1116d
Merge pull request #134 from elua/configurable_shell_messages
Configurable shell messages
2018-06-01 01:42:24 +03:00
Jeff Palmer
b3de8d2155 Configurable shell messages
This commit adds the possibility to configure various shell messages (and some
internal variables) by defining the respective macros at compile time.
2018-06-01 01:36:54 +03:00
Bogdan Marinescu
f3e70e5228
Merge pull request #133 from elua/extend_build
Add some support for out-of-tree builds
2018-06-01 01:14:32 +03:00
James Snyder
81b2c5f5ab Add some support for out-of-tree builds
This commit allows the build system to be used with directories outside of the eLua tree,
using the new "conf" and "extraconf" arguments to the builder.

This commit contains code from both @jsnyder and @darren1713.
2018-06-01 00:59:49 +03:00
Bogdan Marinescu
063ce894f2
Merge pull request #132 from elua/more_term_funcs
Added more terminal functions
2018-05-30 19:05:52 +03:00
James Snyder
75e8dcdf59 Added more terminal functions
Added save position, restore position and set scroll to the terminal
functions. See https://ttssh2.osdn.jp/manual/en/about/ctrlseq.html for a
description of the new sequences.
2018-05-30 18:57:23 +03:00
Bogdan Marinescu
a0b0dae877
Merge pull request #131 from elua/update_dlmalloc
Update dlmalloc to version 2.8.6
2018-05-23 23:49:37 +03:00
Bogdan Marinescu
7423ae2a18 Update dlmalloc to version 2.8.6
Also added a new function to the `elua` module: `heapstats`.
2018-05-23 22:43:06 +03:00
Bogdan Marinescu
dc834811db
Merge pull request #130 from elua/shell_config
New configuration for shell
2018-05-23 12:42:06 +03:00
Bogdan Marinescu
788f4e3fd1 New configuration for shell_config
It is now possible to configure each individual command that will be compiled in the shell:

```
shell = { commands = {'ls', 'ver', 'type' } }
```

If not specified, all the available commands will be compiled (which is backwards compatible).

Also, the `advanced_shell`  attribute is gone, replaced with an `advanced` key in the shell
configuration. So write this:

```
shell = { advanced = true }
```

instead of this:

```
advanced_shell = true
```
2018-05-23 11:09:32 +03:00
Bogdan Marinescu
03dc1d5c1a
Merge pull request #129 from elua/test_script
Run CI via a Lua script
2018-05-20 23:26:26 +03:00
Bogdan Marinescu
258b755614 Run CI via a Lua script 2018-05-20 23:22:51 +03:00
Bogdan Marinescu
0e4715b7a6
Merge pull request #128 from elua/adc_fixes
Adc fixes
2018-05-20 21:32:22 +03:00
Bogdan Marinescu
4218e495af Added more boards to CI 2018-05-20 21:30:03 +03:00
Bogdan Marinescu
cad528fc56 Additional ADC fix 2018-05-20 21:08:04 +03:00
James Snyder
9aa0d9fe85 temporary single-channel buffers are per-channel, not per sequencer position 2018-05-20 21:05:42 +03:00
Bogdan Marinescu
660b29e7a1
Merge pull request #127 from elua/add_niffs
New file system: NIFFS
2018-05-19 23:35:17 +03:00
Bogdan Marinescu
69c653accd New file system: NIFFS
For more details check https://github.com/pellepl/niffs.
2018-05-19 23:02:27 +03:00
Bogdan Marinescu
2dc098c00d Restored README 2018-05-19 18:40:00 +03:00
Bogdan Marinescu
796534f0ed
Merge pull request #126 from elua/circleci_experiments
Enable Circle CI
2018-05-19 18:38:09 +03:00
Bogdan Marinescu
09a739d7cb Enabled CircleCI build tests
Building only the cross compiler and EK-LM3S8962 for now.
2018-05-19 18:34:27 +03:00
Bogdan Marinescu
251f48fcf9 Adding CircleCI tests 2018-05-19 16:43:54 +03:00
Bogdan Marinescu
ce71c23369
Merge pull request #125 from elua/fixes
Fixes
2018-05-19 01:15:17 +03:00
Bogdan Marinescu
a1e6770123 Always create build directory for cross compiler 2018-05-19 00:54:56 +03:00
Bogdan Marinescu
9074c4c6f2 Multiple fixes
- Use the proper suffix in Windows for cross-compilation
- Add a boolean attribute type
- Increased number of virtual UARTs
- Updated README.asciidoc with more information on how to cross-compile
  in Windows
2018-05-18 23:47:20 +03:00