Library files for SDP-K1 SDRAM setup.
Revision 3:c02d2095090a, committed 2020-10-30
- Comitter:
- Kjansen45
- Date:
- Fri Oct 30 13:08:13 2020 +0000
- Parent:
- 2:7578b6878449
- Commit message:
- Fixed naming issue in write functions.
Changed in this revision
sdp_k1_sdram.c | Show annotated file Show diff for this revision Revisions of this file |
sdp_k1_sdram.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7578b6878449 -r c02d2095090a sdp_k1_sdram.c --- a/sdp_k1_sdram.c Thu Oct 22 12:29:06 2020 +0000 +++ b/sdp_k1_sdram.c Fri Oct 30 13:08:13 2020 +0000 @@ -222,7 +222,7 @@ * @param dataSize: Size of written data from the memory * @retval SDRAM status */ -uint8_t SDP_SDRAM_Write_8b(uint32_t pAddress, uint8_t *pData, uint32_t dataSize) +uint8_t SDP_SDRAM_WriteData_8b(uint32_t pAddress, uint8_t *pData, uint32_t dataSize) { if(HAL_SDRAM_Write_8b(&hsdram1, (uint32_t *)pAddress, pData, dataSize) != HAL_OK) { @@ -241,7 +241,7 @@ * @param dataSize: Size of written data from the memory * @retval SDRAM status */ -uint8_t SDP_SDRAM_Write_16b(uint32_t pAddress, uint16_t *pData, uint32_t dataSize) +uint8_t SDP_SDRAM_WriteData_16b(uint32_t pAddress, uint16_t *pData, uint32_t dataSize) { if(HAL_SDRAM_Write_16b(&hsdram1, (uint32_t *)pAddress, pData, dataSize) != HAL_OK) { @@ -260,7 +260,7 @@ * @param dataSize: Size of written data from the memory * @retval SDRAM status */ -uint8_t SDP_SDRAM_Write_32b(uint32_t pAddress, uint32_t *pData, uint32_t dataSize) +uint8_t SDP_SDRAM_WriteData_32b(uint32_t pAddress, uint32_t *pData, uint32_t dataSize) { if(HAL_SDRAM_Write_32b(&hsdram1, (uint32_t *)pAddress, pData, dataSize) != HAL_OK) {
diff -r 7578b6878449 -r c02d2095090a sdp_k1_sdram.h --- a/sdp_k1_sdram.h Thu Oct 22 12:29:06 2020 +0000 +++ b/sdp_k1_sdram.h Fri Oct 30 13:08:13 2020 +0000 @@ -117,9 +117,9 @@ uint8_t SDP_SDRAM_ReadData_16b(uint32_t pAddress, uint16_t *pData, uint32_t dataSize); uint8_t SDP_SDRAM_ReadData_32b(uint32_t pAddress, uint32_t *pData, uint32_t dataSize); uint8_t SDP_SDRAM_ReadData_DMA(uint32_t pAddress, uint32_t *pData, uint32_t dataSize); -uint8_t SDP_SDRAM_Write_8b(uint32_t pAddress, uint8_t *pData, uint32_t dataSize); -uint8_t SDP_SDRAM_Write_16b(uint32_t pAddress, uint16_t *pData, uint32_t dataSize); -uint8_t SDP_SDRAM_Write_32b(uint32_t pAddress, uint32_t *pData, uint32_t dataSize); +uint8_t SDP_SDRAM_WriteData_8b(uint32_t pAddress, uint8_t *pData, uint32_t dataSize); +uint8_t SDP_SDRAM_WriteData_16b(uint32_t pAddress, uint16_t *pData, uint32_t dataSize); +uint8_t SDP_SDRAM_WriteData_32b(uint32_t pAddress, uint32_t *pData, uint32_t dataSize); uint8_t SDP_SDRAM_WriteData_DMA(uint32_t pAddress, uint32_t *pData, uint32_t dataSize); uint8_t SDP_SDRAM_Sendcmd(FMC_SDRAM_CommandTypeDef *SdramCmd);