Kenn Sebesta
b87e2c8d70
[Makefile][Tools] Refine support for Windows
...
This no longer needs MinGW32.
2022-03-02 16:56:18 -05:00
Kenn Sebesta
89a3fdb3b9
[ChibiOS][Windows] Modify `cat` and `grep` sections to work on Windows
2022-03-02 16:56:18 -05:00
Kenn Sebesta
bf3f6409e4
[Makefile] programmatically build and flash binaries
2022-03-02 16:56:18 -05:00
Kenn Sebesta
146bc62073
[Makefile] Rename TARGET_NAMES-->ALL_BOARD_NAMES
2022-03-02 16:56:18 -05:00
Kenn Sebesta
463647e8aa
[Makefile] Modify output location and name
...
Build each binary in its own directory, and label them with their git hash,
and signalling if it is dirty.
2022-03-02 16:56:18 -05:00
Kenn Sebesta
73bcf7f57f
[Makefile] Print build target
2022-03-02 16:56:18 -05:00
Kenn Sebesta
4046eec756
[Makefile][ALL] Add rule for making all targets
...
Note, the artifacts from these targets are not preserved.
2022-03-02 16:56:18 -05:00
Kenn Sebesta
02dba21647
[Makefile] Update firmware rules to autogenerate build targets
2022-03-02 16:56:17 -05:00
Kenn Sebesta
455e0a67f3
[Makefile] Add support for `size` Makefile recipe
...
Untested.
C.f. https://github.com/vedderb/bldc/pull/377/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R45
2022-03-02 16:56:17 -05:00
Kenn Sebesta
7285114b9d
[Unit tests] Add unit test for `utils.c`.
...
Note that in order to satisfy some header files in `utils.c`, there are
some dummy functions in local dummy files.
2022-03-02 16:56:17 -05:00
Kenn Sebesta
e944b172de
[Utils.c] Remove superfluous #includes
2022-03-02 16:56:17 -05:00
Kenn Sebesta
96fd43f8bf
[Make] Add unit testing
...
This adds the Makefile scaffolding, as well as the tool installer.
2022-03-02 16:56:17 -05:00
Kenn Sebesta
44c355fdbf
[Make] Create new Makefile which can be used to manage the project
...
Before, the Makefile only built the firmware
2022-03-02 16:56:17 -05:00
Kenn Sebesta
704fa0ba04
[Git] Update .gitignore
2022-03-02 16:56:17 -05:00
Kenn Sebesta
49163775b3
[Make] Add makefile for installing build environment tools
2022-03-02 16:56:17 -05:00
Kenn Sebesta
a3fb35d6a4
[Make] Makefile which identifies the host OS
2022-03-02 16:56:17 -05:00
Kenn Sebesta
929756dc59
[Make] Introduce makefile specific to building the firmware
2022-03-02 16:56:17 -05:00
Kenn Sebesta
e64c404dba
[Make] Move makefile to a firmware specific makefile
2022-03-02 16:56:17 -05:00
Benjamin Vedder
742a88f790
Fixed print bug
2022-03-02 19:07:42 +01:00
Kenn Sebesta
273899a672
[Package] Use specific filenames which do not contain the target name
...
The target name has historically been indicated by the directory, so this
is in keeping with that approach.
2022-03-02 10:27:02 -05:00
Kenn Sebesta
220f4a2387
[Package] Simple script to copy appropriate targets into package directory
...
This package directory is used for VESC-Tool
2022-03-02 10:26:02 -05:00
Benjamin Vedder
109b19ebb1
Updated documentation about byte arrays
2022-03-02 14:17:43 +01:00
Benjamin Vedder
8e3a8a909d
Squashed 'lispBM/lispBM/' changes from bd9b9c77..1c1bd9e6
...
1c1bd9e6 changed order of arguments to ix and bufset. added some tests
7ead0c7f tweak
3ba22ae5 align with master
ef69471f troubleshooting segfaults, heap was freed (on C side before evaluation thread finished running GC
git-subtree-dir: lispBM/lispBM
git-subtree-split: 1c1bd9e6ff776d4e0009a1b0231f0b9eea89e262
2022-03-02 14:01:01 +01:00
Benjamin Vedder
ec0e348cac
Merge commit '8e3a8a909dbad787df57b025568d89d8b765e7d0'
2022-03-02 14:01:01 +01:00
Benjamin Vedder
b7002789ce
Merge branch 'master' of github.com:vedderb/bldc
2022-03-02 10:12:10 +01:00
Teslafly
fce9b85ab9
Add defines for bottom/top gate driver input polarity. ( #425 )
...
* Add defines for gate driver pwm output polarity.
* Update gpdrive.c
* Update gpdrive.c
* Update mcpwm.c
* Update mcpwm_foc.c
Co-authored-by: Benjamin Vedder <benjamin@vedder.se>
2022-03-02 10:12:00 +01:00
Benjamin Vedder
346f321b9f
Squashed 'lispBM/lispBM/' changes from ced143b0..bd9b9c77
...
bd9b9c77 fix bug in context initialization that caused segfault under odd-but-very-repeatable conditions
93a186e7 update behaviour of set!
git-subtree-dir: lispBM/lispBM
git-subtree-split: bd9b9c7772ef6f773a7f3080ef25546dbc3827ec
2022-03-02 09:57:01 +01:00
Benjamin Vedder
ec4d84ef83
Merge commit '346f321b9f304400b46e050fcbf75a27b391bae3'
2022-03-02 09:57:01 +01:00
Benjamin Vedder
4b40ef3985
Repl updates
2022-03-02 00:50:01 +01:00
Benjamin Vedder
e9e8db8597
Squashed 'lispBM/lispBM/' changes from ffbedbdf..ced143b0
...
ced143b0 set!
3e054ca0 troubleshooting segfaults, heap was freed (on C side before evaluation thread finished running GC
git-subtree-dir: lispBM/lispBM
git-subtree-split: ced143b0f6bb2cdc2e7a1c7575055a5fb8e0fab6
2022-03-01 19:10:34 +01:00
Benjamin Vedder
ee6ed9bbd9
Merge commit 'e9e8db8597ccda32fd8e4a04da492dd1fd8c39f4'
2022-03-01 19:10:34 +01:00
Benjamin Vedder
9c7c2e6ec9
Start lispBM even without code on repl commands
2022-03-01 13:08:25 +01:00
Benjamin Vedder
7a962949c4
Added lisp repl
2022-03-01 12:07:27 +01:00
Benjamin Vedder
3a3ab9dae1
Squashed 'lispBM/lispBM/' changes from 19c6ca34..ffbedbdf
...
ffbedbdf remove left over debug print
git-subtree-dir: lispBM/lispBM
git-subtree-split: ffbedbdfab30b4df1d1385ecf069d28f66200132
2022-03-01 11:59:55 +01:00
Benjamin Vedder
964bcba5ab
Merge commit '3a3ab9dae1e0cd0b4018ac373ee2bd9f42f2badb'
2022-03-01 11:59:55 +01:00
Benjamin Vedder
5c9e014aaa
Adapt flash operations to MCU voltage
2022-03-01 11:54:25 +01:00
Benjamin Vedder
0e09e51a45
Squashed 'lispBM/lispBM/' changes from f700e1a7..19c6ca34
...
19c6ca34 context ids are now set to the index into lbm_memory where the context structure is stored
1d92e257 tweak changelog
7bd40932 Process stack and context are now immediately removed from lbm_memory upon completion
3cf4ed9a Tests nolonger relies on wait_ctx to get the result of the test-program
9b21bc98 removing the context stack as soon as a process finishes
git-subtree-dir: lispBM/lispBM
git-subtree-split: 19c6ca34cfddc951f7eddcf55e4ece1cd8218462
2022-03-01 00:53:55 +01:00
Benjamin Vedder
dd1def1513
Merge commit '0e09e51a45b691dc1b626d62472562fad2695ce0'
2022-03-01 00:53:55 +01:00
Benjamin Vedder
fca4395b6e
hw40 build fix
2022-02-28 19:00:29 +01:00
Benjamin Vedder
5609b31d42
As5047 encoder fixes
2022-02-28 14:30:48 +01:00
Benjamin Vedder
18a683fc7d
Lisp updates, imu refactoring and rate check
2022-02-28 14:29:59 +01:00
Benjamin Vedder
9893c058a3
Threads command resets counters between calls now
2022-02-28 14:24:53 +01:00
Benjamin Vedder
2805adbf85
Squashed 'lispBM/lispBM/' changes from 34faf757..f700e1a7
...
f700e1a7 fix the evaluator in the examples directory
7706d296 builds without warning
git-subtree-dir: lispBM/lispBM
git-subtree-split: f700e1a7df3c02f1e381e7b608da82260e9e8b16
2022-02-28 13:31:55 +01:00
Benjamin Vedder
8aecca6d73
Merge commit '2805adbf85d3be395ba5f280f4397c666b524491'
2022-02-28 13:31:55 +01:00
Benjamin Vedder
f8d35e71f1
Squashed 'lispBM/lispBM/' changes from a7e04542..34faf757
...
34faf757 removed some dead code and made is_error more efficient (probably)
417731d4 tweak error message for eval error
30b01841 added a first version of more human-readable error messages. This will be improved over time
8337c4b6 align with master
git-subtree-dir: lispBM/lispBM
git-subtree-split: 34faf75787b62bcfe1a2785749fe4155ca12b83d
2022-02-27 23:16:13 +01:00
Benjamin Vedder
76b7125773
Merge commit 'f8d35e71f1a16f200e2f5262adcb449093607d55'
2022-02-27 23:16:13 +01:00
Benjamin Vedder
1ed1b7a2c4
Squashed 'lispBM/lispBM/' changes from 5f2a3f36..a7e04542
...
a7e04542 Fix: Closures now evaluate into themselves which is more in line with expected behaviour
git-subtree-dir: lispBM/lispBM
git-subtree-split: a7e045423ae289ce0f7b1aaeffd1cbb79cdd4f86
2022-02-25 10:54:47 +01:00
Benjamin Vedder
ed94192179
Merge commit '1ed1b7a2c42333a524238711b4f722d43f705d49'
2022-02-25 10:54:47 +01:00
Benjamin Vedder
a067399ea7
Squashed 'lispBM/lispBM/' changes from c1b59b75..5f2a3f36
...
5f2a3f36 added macro-expand
git-subtree-dir: lispBM/lispBM
git-subtree-split: 5f2a3f3622031e4b7f8b162a8e714db4c0f96a79
2022-02-24 22:12:32 +01:00
Benjamin Vedder
e5583b1d37
Merge commit 'a067399ea72e447e25db340b370f35d6abbf1bab'
2022-02-24 22:12:32 +01:00