John-Mark Gurney
f41ced6f53
Merge commit 'fa9a60a10f9b2c0c650b502c98ba648767289bad'
1 year ago
John-Mark Gurney
fa9a60a10f
Squashed 'strobe/' changes from 66b501fd..0aa9e2ab
0aa9e2ab change signature on x25519 mul because b[] length isnt always NLIMBS; thanks JMG for pointing out that this now causes a warning
7d7f6053 Change sub() so that it should work with non-propagate'd inputs. This has no effect on Strobe's usage of sub(), but it may reduce the risk of problems if the code is imported into other projects.
git-subtree-dir: strobe
git-subtree-split: 0aa9e2abcaa4e6364c97a914d397517668475209
1 year ago
John-Mark Gurney
ed2c137d8c
now that we require obj dir, we need to cd into CURDIR for these commands..
1 year ago
John-Mark Gurney
4f1ee9b7c4
new gcc thinks some arrays get overrun, they don't, change
slightly so it won't warn..
The [5] change is the biggest question, and not sure how to
fix it better than this..
1 year ago
John-Mark Gurney
114716c830
rename var to prevent collision
1 year ago
John-Mark Gurney
2751a5ac1b
mark external and define in proper header to fix compilation...
1 year ago
John-Mark Gurney
77cd0a6558
support generating a private/public key pair by running this...
Need to think a bit more as it requires the test library, which isn't
immediately available...
Likely need to make this a proper package and put the library there..
2 years ago
John-Mark Gurney
fad1e9fe22
add test for pk version of the commands...
One missing thing is the ability to generate public keys from
private keys for running the code standalone..
2 years ago
John-Mark Gurney
f9d398eca8
add tests for python version round trip... and minor fix for seeding
This also makes sure that the command works, and verifies that
a previous fix did fix things...
this also sets up for testing the public key version as well..
2 years ago
John-Mark Gurney
e1c5f656a7
fix misspelling of by
2 years ago
John-Mark Gurney
2ea0bcd42a
clean up test output, and verify that the error message is correct..
2 years ago
John-Mark Gurney
f4e3ac0fcf
fix running with shared keys...
2 years ago
John-Mark Gurney
f0945ec93a
make printing ctype arrays pretty.
Slightly buggy in that it assumes all arrays are numbers though..
2 years ago
John-Mark Gurney
e70b76111f
convert the irrigation project to sysinits...
minor improvement to make sysinit_run a constructor, so don't need
to manually call it anymore...
This required updating the linker script for the l1 part to include
the linkerset section..
2 years ago
John-Mark Gurney
d78bc3510e
make generic, but turns out unneeded on NODE151..
2 years ago
John-Mark Gurney
cf78ec4531
add target to generate list of sysinits used
This is to help make sure everything you think is starting is..
2 years ago
John-Mark Gurney
f6515c2355
switch to main.h so it pulls in the correct hal headers..
2 years ago
John-Mark Gurney
ce1ca7d634
comment which pins for programming to save me looking at the pdf..
2 years ago
John-Mark Gurney
f8bbd0e754
use family independent main.h to support l1..
2 years ago
John-Mark Gurney
34dc2bf0a2
disable test key.
2 years ago
John-Mark Gurney
4d369b9517
big drop adding the USB HID part of this project...
This refactors out a bunch of code to make better use of the
SYSINIT mechanism...
Completes the PKI side of things for doing mutual authentication...
Uses a python script to generate the USB descriptors, and basic
interface code for the STM USB HAL Layer.. This gets ride of a lot
of the glue code that was previously written, allowing the glue code
to be easily changed/update...
break out the memory debug function into it's own file...
Minor fixes to the rs485 framing code... Finally found the bug where
aborting a receive would corrupt the RX state for some reason...
Add back RNG seeding, and make it generic...
2 years ago
John-Mark Gurney
918aeebb51
add missing entries from previous commits...
2 years ago
John-Mark Gurney
0fdb406890
fix wording slightly, say when the file changes (as a warning)..
2 years ago
John-Mark Gurney
0020c7196b
add USB, add proper _LAST, and verify range, support void functions
2 years ago
John-Mark Gurney
4598390005
remove stupid RESET usage, check sanity...
2 years ago
John-Mark Gurney
d7d571c8a8
add some useful reference links..
2 years ago
John-Mark Gurney
49c70af631
describe board directory..
2 years ago
John-Mark Gurney
11f6b086db
wrap debugpos when at end of buffer..
2 years ago
John-Mark Gurney
beb8ef644e
fix UB...
it's promoted to int (signed) which when shifting into the sign bit is
UB per §6.5.7 ¶ 4 of the C99 spec.
2 years ago
John-Mark Gurney
0ca73bfff8
if the pending session returns a packet, use it, might be first of neg
2 years ago
John-Mark Gurney
15cac28819
add a header that implement cycle counting for some arm cortex-m cores..
2 years ago
John-Mark Gurney
52316ea2cc
add an include guard...
2 years ago
John-Mark Gurney
fa6a25d7b1
add adc and flash HAL files, delete customhid, as it won't be used..
2 years ago
John-Mark Gurney
105314a453
add warning about the license excluding use by ST.
ST if free to contact me about licensing the code (or improving their
own code to be USB standard compliant)..
2 years ago
John-Mark Gurney
6d2a66ee62
add the descriptor length here..
2 years ago
John-Mark Gurney
a3eb1e8b4d
get the basic rs485 to cdc gateway working...
This follows the same protocol as the lora code, so the same
server should just work.
2 years ago
John-Mark Gurney
784e175652
add info on how to debug irq handler issues..
2 years ago
John-Mark Gurney
3d9d8a3d9c
add wrapper, si_usb.h, clean up si_usb a little, and use wrapper
2 years ago
John-Mark Gurney
606ba3ea78
use SYSINIT and break things out/make more generic and modular...
This gets USB CDC printing working..
2 years ago
John-Mark Gurney
bbab428226
make compile w/o other header pollution..
2 years ago
John-Mark Gurney
c171ea44b0
make sysinit's work, required a make to the linker script..
add some more missing files now that it includes the symbols..
2 years ago
John-Mark Gurney
ac1a5177b4
add framework to get things started...
2 years ago
John-Mark Gurney
dbf02e30d0
pull in the files need for f103c8t6
2 years ago
John-Mark Gurney
cd7bd758ea
move more into mu.progs.mk, reorder depends..
2 years ago
John-Mark Gurney
e171cb4ad8
ignore my standard venv dir name..
2 years ago
John-Mark Gurney
e3655696da
move some more generic infra over
2 years ago
John-Mark Gurney
2e02dccfc1
pull this from same dir we parsed from..
2 years ago
John-Mark Gurney
30dec330dc
include from the current dir..
2 years ago
John-Mark Gurney
30338ee49b
move runbuild to .progs, improve comments..
2 years ago
John-Mark Gurney
c5bb2d4d68
break up the README to an overview and the parts..
2 years ago