Commit Graph

1283 Commits

Author SHA1 Message Date
Benjamin Vedder 91ec0e0a5f Merge commit 'cb919480b6f13a5aeb1beb479303a127b2da7890' 2022-02-15 09:29:40 +01:00
Benjamin Vedder cb919480b6 Squashed 'lispBM/lispBM/' changes from 0c09634e..1c2be895
1c2be895 extensions lookup is in an array and extensions occupy a specific range of symbol values

git-subtree-dir: lispBM/lispBM
git-subtree-split: 1c2be8958f937edf8a5fed394f88f55ca9eab382
2022-02-15 09:29:40 +01:00
Benjamin Vedder c6dedf173b Added more math functions 2022-02-14 19:19:48 +01:00
Benjamin Vedder 4a8e60e198 Squashed 'lispBM/lispBM/' changes from 7ed6fa3f..0c09634e
0c09634e added LEQ and GEQ comparisons
01fd1ec4 update change log

git-subtree-dir: lispBM/lispBM
git-subtree-split: 0c09634ea2ed217ecea0682feb314e0e45db1b64
2022-02-14 19:07:01 +01:00
Benjamin Vedder 2113339cfa Merge commit '4a8e60e19808066825cbac766e80ff6daeae6f8c' 2022-02-14 19:07:01 +01:00
Benjamin Vedder 9e83580a82 Fixed can extensions 2022-02-13 21:49:26 +01:00
Benjamin Vedder 629bd3702c Squashed 'lispBM/lispBM/' changes from 0535cf11..7ed6fa3f
7ed6fa3f bugfix  related to environment handling and progn

git-subtree-dir: lispBM/lispBM
git-subtree-split: 7ed6fa3f0ae89d11273abfb93e6a962ddf561d94
2022-02-13 21:11:18 +01:00
Benjamin Vedder 705b28cd13 Merge commit '629bd3702c2d3bb1e8cac96a439c75a7d086d7dc' 2022-02-13 21:11:18 +01:00
Benjamin Vedder 758cf6dfd9 Added note about status messages 2022-02-13 19:27:52 +01:00
Benjamin Vedder 50ff637db6 Added more lisp CAN extensions 2022-02-13 19:20:54 +01:00
Benjamin Vedder cf2ecde5ae Updated register_event_handler for new lispbm 2022-02-13 17:53:45 +01:00
Benjamin Vedder 8cccadae6a Updated lispbm, fixed dual motor flash motor stop 2022-02-13 15:18:22 +01:00
Benjamin Vedder 84a79f8109 Squashed 'lispBM/lispBM/' changes from 1108de58..0535cf11
0535cf11 version 0.1.0
f7c1b0d1 fix bug in last commit and remove dead code
305d3dce change behaviour of spawn to take a closure + arguments. No multi-spawn in one call anymore
93697f7a cleaning and restructuring in the evaluator
1e0d70f8 tuning evaluation of functions some
419e34fd small tweaks doxy
84bec750 Removed the nil-entry from the environment. It should make no difference
09868fea update doxy
f02a9087 fixes to doxy
d2087165 more doxy and fix fundamental array operation
488a4c35 update doxy
799328fc update language ref man
050c34b9 more doxy work and some small tweaks to reader when it comes to quotes
3948e566 added bitwise operations
e777189b zephyr example compiles, testing needed
426b71e4 doxy planning
8264fd37 shift left and right
5a61bf41 tweak readme
c82f587e accepting that eval-program is a very predatory operation
728b6511 doc tweaks
41aedc57 update to doxy
7a53228e added function for sharing of arrays from C to lbm. little bit of doc.  TODO: test arrays
c4931b4a small update to doc
3e7f31fb small additions to doc
8325bf09 user now has to provide a recursion stack fro the print_value function
f1fdd5f7 The GC recursion stack has to be provided by the user now

git-subtree-dir: lispBM/lispBM
git-subtree-split: 0535cf11214a6ba8c81f86929deaad34c30b3790
2022-02-13 14:25:39 +01:00
Benjamin Vedder 2156e67b8e Synced datatypes with the BMS firmware 2022-02-11 09:12:11 +01:00
Benjamin Vedder e416444156
Merge pull request #412 from RadinnAB/radinn_pr
Radinn pr
2022-02-11 08:25:47 +01:00
dnordahl83 c83120f8fc gdb: Added command to dump entire stm32 flash to bin file. 2022-02-10 14:38:32 +01:00
dnordahl83 3d86e973a1 gdb: Added .gdbinit file.
Added gdbinit file for gdb-scripts (openocd). The script makes sure
to defined the "connect" rule that connects to a target once gdb is
started and a openocd server is running.
2022-02-10 14:38:32 +01:00
dnordahl83 7fc94b8375 hw_resc: Added resc hw support. 2022-02-10 14:38:32 +01:00
rodale75 599595089d hw_rd2: Defined CAN controller ID.
This to make sure to have a deterministic & same
CAN controller id for all Radinn VESC:s.
2022-02-10 14:38:32 +01:00
rodale75 1ecc5b9457 hw_rd2: Macro adjustments and cleanup.
* Removed commented-out code.
* Removed legacy HW75_300_VEDDER_FIRST_PCB switches/sections.
* Removed un-needed undef.
* Removed un-needed #ifndef switch-checks. In the current vesc config setup,
  conf_general.h overrides all the underlying default configurations (strict
  include-order).
* Indentation adjustments.
2022-02-10 14:38:17 +01:00
rodale75 c6fa4e2d02 hw_rd2: Added APPCONF_CHUK_CTRL_TYPE config. 2022-02-10 14:26:51 +01:00
rodale75 ed88dbe5b0 main: Added CAN boot-frame notification.
The boot CAN frame is dispatched at system boot and contains a
payload that holds the hw-name (ASCII). This to serve as a notifier
for other nodes on the CAN bus.

Change-Id: I2edb3d58bb51003d9160ceb83905cf93b63a9396
Reviewed-on: https://review.gerrithub.io/c/RadinnAB/vedder_vesc_fw/+/530857
Tested-by: Mr. Jenkins <jenkins@radinn.com>
Tested-by: aleksandar rodzevski <aleks@radinn.com>
Reviewed-by: aleksandar rodzevski <aleks@radinn.com>
Reviewed-by: Daniel Nordahl <daniel.nordahl@radinn.com>
2022-02-10 14:23:36 +01:00
rodale75 a30e259549 datatypes: Renamed CAN_PACKET_BMS_BOOT to CAN_PACKET_NOTIFY_BOOT.
This to have a generic approach applicable for all HW.

Change-Id: I030be71ed500ea6042ea17889c7731791bd704cb
Reviewed-on: https://review.gerrithub.io/c/RadinnAB/vedder_vesc_fw/+/532596
Tested-by: Mr. Jenkins <jenkins@radinn.com>
Tested-by: aleksandar rodzevski <aleks@radinn.com>
Reviewed-by: aleksandar rodzevski <aleks@radinn.com>
Reviewed-by: Björn Mellström <bjorn.mellstrom@radinn.com>
Reviewed-by: Daniel Nordahl <daniel.nordahl@radinn.com>
2022-02-10 14:23:36 +01:00
rodale75 e328e34ea0 main: Moved the 500ms init-done delay outside of the BOOT_OK_PIN-switch.
And also, moved the  m_init_done-flag to be set before the delay.
This to make sure that the flag is set prior to the PIN notification.
2022-02-10 14:23:31 +01:00
rodale75 48875f2a78 Makefile: Added newline separations on openocd commands.
This to reduce the line-lengths and also prefixed the openocd
invoking with "@" (suppress the command line in make).
2022-02-10 13:27:20 +01:00
dnordahl83 324d2d4a29 makefile: Added make rule to perform stm32 mass erase.
Also, removed some trailing spaces in makefile.
2022-02-10 13:27:14 +01:00
Benjamin Vedder 75f9451635
Update README.md 2022-02-07 00:43:03 +01:00
Benjamin Vedder b881a08e75 Added raw and imu lisp commands 2022-02-06 23:12:05 +01:00
Benjamin Vedder 144789445f
Updated lisp documentation.
Fixed some of my bad grammar from writing documentation too late in the night.
2022-02-06 10:05:57 +01:00
Benjamin Vedder a0acaff2fb Added atan2 lisp extension 2022-02-06 00:23:23 +01:00
Benjamin Vedder fdb0f50782 Updated lisp documentation 2022-02-06 00:14:16 +01:00
Benjamin Vedder aac4e940fb Added hw75_600 and hw_60_75 2022-02-05 19:00:49 +01:00
Benjamin Vedder c392c2b390 Lisp print fix 2022-02-05 01:45:03 +01:00
Benjamin Vedder 24b076bdc4 Fixed stormcore stack issues 2022-02-05 01:04:56 +01:00
Benjamin Vedder c0a928e040 NRF name and pin set support 2022-02-05 01:04:12 +01:00
Benjamin Vedder f181ec1557 Started work on documentation 2022-02-03 19:14:28 +01:00
Benjamin Vedder ebd12c1a2b Added lisp even support and can-frame events 2022-02-03 17:31:02 +01:00
Benjamin Vedder 6aa01e2cfc Squashed 'lispBM/lispBM/' changes from 18d9001b..1108de58
1108de58 added possibility to take n steps in the evaluator
9fb1863e added match-binders for u32 and i32
b591bd3e fix to match that allows matching on boxed types

git-subtree-dir: lispBM/lispBM
git-subtree-split: 1108de58965232fcfb2cb173db6e8696319f1bb5
2022-02-03 12:49:33 +01:00
Benjamin Vedder 17b09a4859 Merge commit '6aa01e2cfcc828f36b090881fb79e26d1c21e8bc' 2022-02-03 12:49:33 +01:00
Benjamin Vedder 3307ff377b Squashed 'lispBM/lispBM/' changes from 046eb52e..18d9001b
18d9001b fixes the to the eval_state statemachine

git-subtree-dir: lispBM/lispBM
git-subtree-split: 18d9001b32052a3de09517ae4e954c221155ef27
2022-02-01 21:51:54 +01:00
Benjamin Vedder d700a40a24 Merge commit '3307ff377b32a791fcf7ba57a64fcdc79adcf230' 2022-02-01 21:51:54 +01:00
Benjamin Vedder d48a2e0f78 Squashed 'lispBM/lispBM/' changes from 9559204f..046eb52e
046eb52e Change the eval_state state machine to not go into pause mode (visible outside) until after gc if instructed to run GC

git-subtree-dir: lispBM/lispBM
git-subtree-split: 046eb52e068c6f8ec15c8f8e7bd7b0c348edde1c
2022-02-01 21:35:41 +01:00
Benjamin Vedder 058ef0b839 Merge commit 'd48a2e0f78cfd0a0a3ad1deaf46dac5b5c138cf7' 2022-02-01 21:35:41 +01:00
Benjamin Vedder 0af11fc982 Squashed 'lispBM/lispBM/' changes from 748477b9..9559204f
9559204f added lbm_define to allow definitions to be added from C
d5390ade added a pause function that performs GC if less than N elements are free
9f7f015b mostly just rearrangements
2e96957d bugfix related to read after changes to array representation. New test added that shows a problem with read-program, this is a bit of a puzzle to solve. Something to ponder on for a while
aa6bfff9 can read multiple values from array to a list.
8b8daa6d Nothing of magnitude
313806c9 more preparations for lbm arrays pointing to C memory
9b361ba8 preparing for arrays that are shared between C and lbm. Dont know yet what to do about the possibility of concurrent modifications to these arrays
39257a5a doxy fix renamed files
955a5a2c update to doxy, still lots to do. Rename one file.
ae0d140f adding some built in functions for encoding and decoding to and from lists of value representing bytes

git-subtree-dir: lispBM/lispBM
git-subtree-split: 9559204fcfd0b403fdec524910c10d8bd57d0437
2022-02-01 20:40:07 +01:00
Benjamin Vedder 17a0b66e5b Merge commit '0af11fc9828cba7cbd121f40a3c8058a3e534a26' 2022-02-01 20:40:07 +01:00
Benjamin Vedder 66f6c2e2f0 Prepared handling of CAN-frames in lisp 2022-01-31 09:12:27 +01:00
Benjamin Vedder 5fbb0a328c lisp stat update 2022-01-29 21:26:15 +01:00
Benjamin Vedder f2960597af Started on lisp readme 2022-01-29 18:57:33 +01:00
Benjamin Vedder fafa5c9779 Squashed 'lispBM/lispBM/' content from commit 748477b9
git-subtree-dir: lispBM/lispBM
git-subtree-split: 748477b953fbd06094fc17c1c6332bf5f9cea7d0
2022-01-29 17:26:45 +01:00
Benjamin Vedder 50dfc9d7d5 Merge commit 'fafa5c97790c5d9c3a5c515792567b8ab71e5f60' as 'lispBM/lispBM' 2022-01-29 17:26:45 +01:00