diff options
author | あく <alleteam@gmail.com> | 2022-01-05 19:10:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 19:10:18 +0300 |
commit | 389ff92cc14236db06605ee0992c9594da6cd7be (patch) | |
tree | 5b2d5777caf2a7a76c2c422c93dbb09f168134fa /firmware/targets/f6/fatfs/fatfs.c | |
parent | c98e54da103ede7923af0a8b555ddb1cb8bb62fe (diff) |
Naming and coding style convention, new linter tool. (#945)
* Makefile, Scripts: new linter
* About: remove ID from IC
* Firmware: remove double define for DIVC/DIVR
* Scripts: check folder names too. Docker: replace syntax check with make lint.
* Reformat Sources and Migrate to new file naming convention
* Docker: symlink clang-format-12 to clang-format
* Add coding style guide
Diffstat (limited to 'firmware/targets/f6/fatfs/fatfs.c')
-rw-r--r-- | firmware/targets/f6/fatfs/fatfs.c | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/firmware/targets/f6/fatfs/fatfs.c b/firmware/targets/f6/fatfs/fatfs.c index d52b3d4e..1aa5fe44 100644 --- a/firmware/targets/f6/fatfs/fatfs.c +++ b/firmware/targets/f6/fatfs/fatfs.c @@ -18,23 +18,22 @@ #include "fatfs.h" -uint8_t retUSER; /* Return value for USER */ -char USERPath[4]; /* USER logical drive path */ -FATFS USERFatFS; /* File system object for USER logical drive */ -FIL USERFile; /* File object for USER */ +uint8_t retUSER; /* Return value for USER */ +char USERPath[4]; /* USER logical drive path */ +FATFS USERFatFS; /* File system object for USER logical drive */ +FIL USERFile; /* File object for USER */ /* USER CODE BEGIN Variables */ -/* USER CODE END Variables */ +/* USER CODE END Variables */ -void MX_FATFS_Init(void) -{ - /*## FatFS: Link the USER driver ###########################*/ - retUSER = FATFS_LinkDriver(&USER_Driver, USERPath); +void MX_FATFS_Init(void) { + /*## FatFS: Link the USER driver ###########################*/ + retUSER = FATFS_LinkDriver(&USER_Driver, USERPath); - /* USER CODE BEGIN Init */ - /* additional user code for init */ - /* USER CODE END Init */ + /* USER CODE BEGIN Init */ + /* additional user code for init */ + /* USER CODE END Init */ } /** @@ -42,15 +41,14 @@ void MX_FATFS_Init(void) * @param None * @retval Time in DWORD */ -DWORD get_fattime(void) -{ - /* USER CODE BEGIN get_fattime */ - return 0; - /* USER CODE END get_fattime */ +DWORD get_fattime(void) { + /* USER CODE BEGIN get_fattime */ + return 0; + /* USER CODE END get_fattime */ } /* USER CODE BEGIN Application */ - + /* USER CODE END Application */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |