]> rtime.felk.cvut.cz Git - arc.git/commitdiff
changed unimplemented services to return E_NOT_OK
authornier <devnull@localhost>
Fri, 11 May 2012 15:00:02 +0000 (17:00 +0200)
committernier <devnull@localhost>
Fri, 11 May 2012 15:00:02 +0000 (17:00 +0200)
fixed som typos to make it compile

memory/NvM/Nvm_ServiceComponent.c

index 62c25cd97c6fbee703a6589e2984d16175f43e52..b60158dd77cd270389037a8d3d06e3dbd4af5fc2 100644 (file)
@@ -24,7 +24,7 @@ Std_ReturnType NvMService_GetErrorStatus(NvM_BlockIdType BlockId, NvM_RequestRes
 \r
 #if (NVM_SET_RAM_BLOCK_STATUS_API == STD_ON )\r
 Std_ReturnType NvMService_SetRamBlockStatus(NvM_BlockIdType BlockId, Boolean BlockChanged) {\r
-       Nvm_SetRamBlockStatus( BlockId, (boolean)BlockChanged );\r
+       NvM_SetRamBlockStatus( BlockId, (boolean)BlockChanged );\r
        return E_OK;\r
 }\r
 #endif\r
@@ -50,34 +50,34 @@ Std_ReturnType NvMService_WriteBlock(NvM_BlockIdType BlockId, const DstPtrType S
 }\r
 \r
 Std_ReturnType NvMService_RestoreBlockDefaults(NvM_BlockIdType BlockId, const DstPtrType DstPtr) {\r
-       return Nvm_RestoreBlockDefaults( BlockId, (uint8*)DstPtr ), E_OK;\r
+       return NvM_RestoreBlockDefaults( BlockId, (uint8*)DstPtr ), E_OK;\r
 }\r
 \r
 #else\r
 \r
 Std_ReturnType NvMService_SetDataIndex(NvM_BlockIdType BlockId, UInt8 DataIndex) {\r
        /* Dummy */\r
-       return E_OK;\r
+       return E_NOT_OK;\r
 }\r
 \r
 Std_ReturnType NvMService_GetDataIndex(NvM_BlockIdType BlockId, UInt8* DataIndexPtr) {\r
        /* Dummy */\r
-       return E_OK;\r
+       return E_NOT_OK;\r
 }\r
 \r
 Std_ReturnType NvMService_ReadBlock(NvM_BlockIdType BlockId, const DstPtrType DstPtr) {\r
        /* Dummy */\r
-       return E_OK;\r
+       return E_NOT_OK;\r
 }\r
 \r
 Std_ReturnType NvMService_WriteBlock(NvM_BlockIdType BlockId, const DstPtrType SrcPtr) {\r
        /* Dummy */\r
-       NvM_WriteBlock(BlockId, (const uint8*) SrcPtr);\r
+       return NvM_WriteBlock(BlockId, (const uint8*) SrcPtr);\r
 }\r
 \r
 Std_ReturnType NvMService_RestoreBlockDefaults(NvM_BlockIdType BlockId, const DstPtrType DstPtr) {\r
        /* Dummy */\r
-       return E_OK;\r
+       return E_NOT_OK;\r
 }\r
 \r
 #endif\r
@@ -92,7 +92,7 @@ Std_ReturnType NvMService_InvalidateNvBlock(NvM_BlockIdType BlockId) {
        return NvM_InvalidateNvBlock( BlockId );\r
 }\r
 \r
-Std_ReturnType NvMAdministration_SetBlockProtection(NvM_BlockIdType BlockId, Boolean ProtectionEnabled) {\r
+Std_ReturnType NvMAdmin_SetBlockProtection(NvM_BlockIdType BlockId, Boolean ProtectionEnabled) {\r
        NvM_SetBlockProtection( BlockId, (boolean)(ProtectionEnabled) );\r
        return E_OK;\r
 }\r
@@ -101,17 +101,17 @@ Std_ReturnType NvMAdministration_SetBlockProtection(NvM_BlockIdType BlockId, Boo
 \r
 Std_ReturnType NvMService_EraseBlock(NvM_BlockIdType BlockId) {\r
        /* Dummy */\r
-       return E_OK;\r
+       return E_NOT_OK;\r
 }\r
 \r
 Std_ReturnType NvMService_InvalidateNvBlock(NvM_BlockIdType BlockId) {\r
        /* Dummy */\r
-       return E_OK;\r
+       return E_NOT_OK;\r
 }\r
 \r
-Std_ReturnType NvMAdministration_SetBlockProtection(NvM_BlockIdType BlockId, Boolean ProtectionEnabled) {\r
+Std_ReturnType NvMAdmin_SetBlockProtection(NvM_BlockIdType BlockId, Boolean ProtectionEnabled) {\r
        /* Dummy */\r
-       return E_OK;\r
+       return E_NOT_OK;\r
 }\r
 \r
 #endif\r