Add CAN-USB for STM32F303

This commit is contained in:
Edward Emelianov
2023-01-30 20:58:06 +03:00
parent 175a8bbb64
commit 7fb3d5ac59
29 changed files with 2877 additions and 1 deletions

13
F3:F303/CANusb/strfunc.h Normal file
View File

@@ -0,0 +1,13 @@
#pragma once
#include <stdint.h>
#include <string.h>
void hexdump(int (*sendfun)(const char *s), uint8_t *arr, uint16_t len);
const char *u2str(uint32_t val);
const char *i2str(int32_t i);
const char *uhex2str(uint32_t val);
const char *getnum(const char *txt, uint32_t *N);
const char *omit_spaces(const char *buf);
const char *getint(const char *txt, int32_t *I);
//void mymemcpy(char *dest, const char *src, int len);