diff options
author | nightwalker-87 <15526941+Nightwalker-87@users.noreply.github.com> | 2024-02-01 00:01:58 +0100 |
---|---|---|
committer | nightwalker-87 <15526941+Nightwalker-87@users.noreply.github.com> | 2024-02-01 00:01:58 +0100 |
commit | 40948aa3de78778f51af02d795327ac20fa385d3 (patch) | |
tree | b2c46fa5d48d1c12a3b1f95f93917bbba6405a2e /tests/usb.c | |
parent | e662da00ca294c874655c65cffae3edde97343e5 (diff) | |
parent | 133c2564dee478ed2fcf634ae217441ac723b3e3 (diff) |
Merge remote-tracking branch 'origin/develop'v1.8.0origin/mastermasterfor-upstream
Diffstat (limited to 'tests/usb.c')
-rw-r--r-- | tests/usb.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/usb.c b/tests/usb.c index 742f5c5..f8b60c3 100644 --- a/tests/usb.c +++ b/tests/usb.c @@ -1,17 +1,24 @@ +/* == nightwalker-87: TODO: CONTENT AND USE OF THIS SOURCE FILE IS TO BE VERIFIED (07.06.2023) == */ + +#include <stdint.h> #include <stdio.h> +#include <string.h> #include <stlink.h> -#include <string.h> + +#include <read_write.h> +#include <register.h> +#include <usb.h> static void usage(void) { puts("test-usb --reset"); puts("test-usb --no-reset"); } -int main(int ac, char** av) { +int32_t main(int32_t ac, char** av) { stlink_t* sl; struct stlink_reg regs; - int reset = 0; + int32_t reset = 0; if (ac == 2) { if (strcmp(av[1], "--reset") == 0) @@ -23,7 +30,7 @@ int main(int ac, char** av) { if (reset == 0) { usage(); - return(0); + return (0); } sl = stlink_open_usb(10, reset, NULL, 0); @@ -119,5 +126,5 @@ int main(int ac, char** av) { stlink_close(sl); } - return(0); + return (0); } |