gcc和mdk都能编译成功

This commit is contained in:
andy
2023-11-01 23:51:19 +08:00
parent ddeec88a89
commit 17729e664f
17 changed files with 563 additions and 27 deletions

View File

@@ -72,7 +72,7 @@ uint32_t atoi32(const char* str,uint16_t base)
*@param n:src num str[5]:string buffer lenstring size
*@return void
*/
void itoa(uint16_t n,uint8_t str[5], uint8_t len)
void myitoa(int n,char *str, int len)
{
uint8_t i=len-1;

View File

@@ -7,7 +7,7 @@
float myatof(const char* str);
uint16_t atoi16(const char* str,uint16_t base); /* Convert a string to integer number */
uint32_t atoi32(const char* str,uint16_t base); /* Convert a string to integer number */
void itoa(uint16_t n,uint8_t* str, uint8_t len);
void myitoa(int n,char* str, int len);
int validatoi(const char* str, int base, uint32_t* ret); /* Verify character string and Convert it to (hexa-)decimal. */
char c2d(uint8_t c);
char d2c(uint8_t c);

View File

@@ -40,9 +40,9 @@ typedef struct{
static self_def g_self;
int elec_check_scheme(void);
void elec_load_scheme(void);
int elec_parper_power(void);
static int elec_check_scheme(void);
static void elec_load_scheme(void);
static int elec_parper_power(void);
// 初始化