From 3f606545a91ffbf4d6b4571ae803ee24e21dfab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Tue, 14 May 2013 18:45:47 +0000 Subject: [PATCH] uncommented unused functions --- BaS_gcc/sources/basflash.c | 4 +++- BaS_gcc/sources/s19reader.c | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/BaS_gcc/sources/basflash.c b/BaS_gcc/sources/basflash.c index 4556af6..3473fa1 100644 --- a/BaS_gcc/sources/basflash.c +++ b/BaS_gcc/sources/basflash.c @@ -87,6 +87,7 @@ static err_t memcpy(uint8_t *dst, uint8_t *src, uint32_t length) return OK; } +#ifdef _NOT_USED_ static err_t flash(uint8_t *dst, uint8_t *src, uint32_t length) { err_t ret = OK; @@ -95,6 +96,7 @@ static err_t flash(uint8_t *dst, uint8_t *src, uint32_t length) return ret; } +#endif /* _NOT_USED_ */ /* * this callback verifies the data against the S-record file contents after a write to destination @@ -340,7 +342,7 @@ err_t srec_load(char *flash_filename) void basflash(void) { - const char *basflash_str = "\\BASFLASH"; + // const char *basflash_str = "\\BASFLASH"; const char *bastest_str = "\\BASTEST"; DRESULT res; FRESULT fres; diff --git a/BaS_gcc/sources/s19reader.c b/BaS_gcc/sources/s19reader.c index 1e7550f..bfb8cbb 100644 --- a/BaS_gcc/sources/s19reader.c +++ b/BaS_gcc/sources/s19reader.c @@ -78,6 +78,7 @@ static uint8_t hex_to_byte(uint8_t hex[2]) return 16 * (nibble_to_byte(hex[0])) + (nibble_to_byte(hex[1])); } +#ifdef _NOT_USED_ /* * convert four hex characters into a 16 bit word */ @@ -93,6 +94,7 @@ static uint32_t hex_to_long(uint8_t hex[8]) { return 65536 * hex_to_word(&hex[0]) + hex_to_word(&hex[4]); } +#endif /* _NOT_USED_ */ /* * compute the record checksum @@ -320,6 +322,7 @@ static err_t memcpy(uint8_t *dst, uint8_t *src, uint32_t length) return OK; } +#ifdef _NOT_USED_ static err_t flash(uint8_t *dst, uint8_t *src, uint32_t length) { err_t ret = OK; @@ -328,6 +331,8 @@ static err_t flash(uint8_t *dst, uint8_t *src, uint32_t length) return ret; } +#endif /* _NOT_USED_ */ + /* * this callback verifies the data against the S-record file contents after a write to destination