bexus_sd.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef bexus_sd_h
  2. #define bexus_sd_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /**----------------Includes-----------------------------*/
  7. //#include "FreeRTOS.h"
  8. #include "fatfs.h"
  9. #include "sdio.h"
  10. #include "string.h"
  11. #include "bexus_variables.h"
  12. #include "bexus_sysclock.h"
  13. #include <string.h>
  14. /**-----------------------------------------------------*/
  15. /**----------------variables---------------------------*/
  16. extern SD_HandleTypeDef hsd1;
  17. extern HAL_SD_CardInfoTypeDef SDCardInfo1;
  18. extern FRESULT status_SD;
  19. extern FATFS SDFatFs;
  20. extern FIL File_SD;
  21. extern char * buff_write_SD;
  22. extern char * buff_read_SD;
  23. extern char buff_filename_SD[];
  24. extern uint32_t byteswritten_SD, bytesread_SD;
  25. extern uint32_t File_Index;
  26. extern uint32_t errorCount;
  27. extern uint32_t Dateigrosse;
  28. extern uint8_t sd_errortype;
  29. /**-----------------------------------------------------*/
  30. /**------------------functions--------------------------*/
  31. void SD_FileName(void);
  32. void Error_SD(int Error_Type_SD);
  33. void SD_Init(void);
  34. void SD_Write(void);
  35. /**-----------------------------------------------------*/
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif