-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
182 changed files
with
7,419 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
!SESSION 2020-12-10 23:11:06.339 ----------------------------------------------- | ||
eclipse.buildId=unknown | ||
java.version=1.6.0_18 | ||
java.vendor=Sun Microsystems Inc. | ||
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US | ||
Command-line arguments: -os win32 -ws win32 -arch x86 | ||
|
||
!ENTRY org.eclipse.equinox.p2.metadata.repository 4 1000 2020-12-10 23:12:05.044 | ||
!MESSAGE No repository found at http://tools.ext.nokia.com/carbide/updates/3.0. | ||
|
||
!ENTRY com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.PCCSConnection 4 0 2020-12-10 23:12:06.205 | ||
!MESSAGE Carbide could not find a PC Suite installation. To install PC Suite, go to: https://tools.ext.nokia.com/PCsuite | ||
!STACK 1 | ||
org.eclipse.core.runtime.CoreException: Carbide could not find a PC Suite installation. To install PC Suite, go to: https://tools.ext.nokia.com/PCsuite | ||
at com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.PCCSConnection.open(PCCSConnection.java:143) | ||
at com.nokia.carbide.remoteconnections.discovery.pccs.agent.PCCSDiscoveryAgent.start(PCCSDiscoveryAgent.java:186) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$3.select(RemoteConnectionsActivator.java:276) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.loadExtensions(RemoteConnectionsActivator.java:320) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.loadAndStartDeviceDiscoveryAgents(RemoteConnectionsActivator.java:270) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.access$3(RemoteConnectionsActivator.java:267) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$1.run(RemoteConnectionsActivator.java:136) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$WhenWorkbenchIsVisibleThread.run(RemoteConnectionsActivator.java:90) | ||
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.IConnAPILibrary | ||
at com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.PCCSConnection.open(PCCSConnection.java:127) | ||
... 7 more | ||
!SUBENTRY 1 com.nokia.carbide.remoteConnections.discovery.pccs 4 1 2020-12-10 23:12:06.206 | ||
!MESSAGE Carbide could not find a PC Suite installation. To install PC Suite, go to: https://tools.ext.nokia.com/PCsuite | ||
!STACK 0 | ||
java.lang.NoClassDefFoundError: Could not initialize class com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.IConnAPILibrary | ||
at com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.PCCSConnection.open(PCCSConnection.java:127) | ||
at com.nokia.carbide.remoteconnections.discovery.pccs.agent.PCCSDiscoveryAgent.start(PCCSDiscoveryAgent.java:186) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$3.select(RemoteConnectionsActivator.java:276) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.loadExtensions(RemoteConnectionsActivator.java:320) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.loadAndStartDeviceDiscoveryAgents(RemoteConnectionsActivator.java:270) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.access$3(RemoteConnectionsActivator.java:267) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$1.run(RemoteConnectionsActivator.java:136) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$WhenWorkbenchIsVisibleThread.run(RemoteConnectionsActivator.java:90) | ||
|
||
!ENTRY com.nokia.carbide.cpp.project.core 1 0 2020-12-10 23:15:02.921 | ||
!MESSAGE Created 'mmcdump' (13 resources, 1 mmp files) in 1.29 sec. | ||
|
||
!ENTRY org.eclipse.cdt.core 1 0 2020-12-10 23:15:04.943 | ||
!MESSAGE Indexed 'mmcdump' (1 sources, 17 headers) in 1.83 sec: 10,226 declarations; 10,541 references; 0 unresolved inclusions; 2,546 syntax errors; 328 unresolved names (1.55%) | ||
!SESSION 2020-12-11 00:28:57.921 ----------------------------------------------- | ||
eclipse.buildId=unknown | ||
java.version=1.6.0_18 | ||
java.vendor=Sun Microsystems Inc. | ||
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US | ||
Command-line arguments: -os win32 -ws win32 -arch x86 | ||
|
||
!ENTRY com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.PCCSConnection 4 0 2020-12-11 00:29:05.938 | ||
!MESSAGE Carbide could not find a PC Suite installation. To install PC Suite, go to: https://tools.ext.nokia.com/PCsuite | ||
!STACK 1 | ||
org.eclipse.core.runtime.CoreException: Carbide could not find a PC Suite installation. To install PC Suite, go to: https://tools.ext.nokia.com/PCsuite | ||
at com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.PCCSConnection.open(PCCSConnection.java:143) | ||
at com.nokia.carbide.remoteconnections.discovery.pccs.agent.PCCSDiscoveryAgent.start(PCCSDiscoveryAgent.java:186) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$3.select(RemoteConnectionsActivator.java:276) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.loadExtensions(RemoteConnectionsActivator.java:320) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.loadAndStartDeviceDiscoveryAgents(RemoteConnectionsActivator.java:270) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.access$3(RemoteConnectionsActivator.java:267) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$1.run(RemoteConnectionsActivator.java:136) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$WhenWorkbenchIsVisibleThread.run(RemoteConnectionsActivator.java:90) | ||
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.IConnAPILibrary | ||
at com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.PCCSConnection.open(PCCSConnection.java:127) | ||
... 7 more | ||
!SUBENTRY 1 com.nokia.carbide.remoteConnections.discovery.pccs 4 1 2020-12-11 00:29:05.938 | ||
!MESSAGE Carbide could not find a PC Suite installation. To install PC Suite, go to: https://tools.ext.nokia.com/PCsuite | ||
!STACK 0 | ||
java.lang.NoClassDefFoundError: Could not initialize class com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.IConnAPILibrary | ||
at com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative.PCCSConnection.open(PCCSConnection.java:127) | ||
at com.nokia.carbide.remoteconnections.discovery.pccs.agent.PCCSDiscoveryAgent.start(PCCSDiscoveryAgent.java:186) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$3.select(RemoteConnectionsActivator.java:276) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.loadExtensions(RemoteConnectionsActivator.java:320) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.loadAndStartDeviceDiscoveryAgents(RemoteConnectionsActivator.java:270) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator.access$3(RemoteConnectionsActivator.java:267) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$1.run(RemoteConnectionsActivator.java:136) | ||
at com.nokia.carbide.remoteconnections.RemoteConnectionsActivator$WhenWorkbenchIsVisibleThread.run(RemoteConnectionsActivator.java:90) | ||
|
||
!ENTRY org.eclipse.equinox.p2.metadata.repository 4 1000 2020-12-11 00:29:09.849 | ||
!MESSAGE No repository found at http://tools.ext.nokia.com/carbide/updates/3.0. | ||
|
||
!ENTRY com.nokia.carbide.cpp.project.core 1 0 2020-12-11 00:32:53.453 | ||
!MESSAGE Created 'accuracy' (13 resources, 1 mmp files) in 0.42 sec. | ||
|
||
!ENTRY org.eclipse.cdt.core 1 0 2020-12-11 00:32:54.726 | ||
!MESSAGE Indexed 'accuracy' (1 sources, 17 headers) in 1.23 sec: 10,226 declarations; 10,541 references; 0 unresolved inclusions; 2,546 syntax errors; 328 unresolved names (1.55%) |
Binary file added
BIN
+1.21 KB
.metadata/.plugins/com.nokia.carbide.cpp.sdk.core/GCCE_UDEB_E__Dev_Symbian_8_0a_.dat
Binary file not shown.
Binary file added
BIN
+1.21 KB
.metadata/.plugins/com.nokia.carbide.cpp.sdk.core/GCCE_UREL_E__Dev_Symbian_8_0a_.dat
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
.metadata/.plugins/com.nokia.carbide.remoteConnections/connectionData.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<connections version="1"> | ||
</connections> |
11 changes: 11 additions & 0 deletions
11
.metadata/.plugins/com.nokia.carbide.templatewizard/dialog_settings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section name="Workbench"> | ||
<item value="group" key="groupDir"/> | ||
<item value="src" key="sourceDir"/> | ||
<item value="" key="author"/> | ||
<item value="0" key="NewProjectPage.LAST_BUILDER_STORE"/> | ||
<item value="sis" key="sisDir"/> | ||
<item value="data" key="dataDir"/> | ||
<item value="Your copyright notice" key="copyright"/> | ||
<item value="inc" key="incDir"/> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*** SESSION Dec 10, 2020 23:11:51.89 ------------------------------------------- | ||
*** SESSION Dec 11, 2020 00:29:03.42 ------------------------------------------- |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section name="Workbench"> | ||
<section name="completion_proposal_size"> | ||
</section> | ||
<section name="org.eclipse.cdt.ui.text.hover.CMacroExpansionExploration"> | ||
</section> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
***Building project "mmcdump" for configuration "Phone Debug (GCCE) [S60_2nd_FP2]" | ||
|
||
***Printing environment variables modified from default: | ||
PATH=E:\Dev\Symbian\8.0a\epoc32\tools;E:\Dev\Symbian\8.0a\epoc32\gcc\bin;E:/Dev/Symbian/Carbide/jre/bin/client;E:/Dev/Symbian/Carbide/jre/bin;E:/Dev/Symbian/Carbide/jre/lib/i386;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Perl\bin\;E:\Dev\Symbian\Common\Tools;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files (x86)\CSL Arm Toolchain\bin;C:\Program Files\Graphviz 2.44.1\bin;E:\Dev\Python\Scripts\;E:\Dev\Python\;C:\Users\zhong\AppData\Local\Programs\Python\Launcher\;C:\Users\zhong\AppData\Local\Microsoft\WindowsApps;C:\Users\zhong\.dotnet\tools;E:\Dev\heroku\bin;C:\Users\zhong\AppData\Local\Programs\Microsoft VS Code\bin | ||
=::=::\ | ||
EPOCROOT=\Dev\Symbian\8.0a\ | ||
NO_DEPENDENCIES=-nd | ||
MAKE=make -j 4 | ||
|
||
Working Directory: E:/Dev/projects/akudama/mmcdump/group | ||
|
||
|
||
***Invoking bldmake command | ||
perl.exe -S bldmake.pl bldfiles | ||
|
||
Total Time: 1 sec | ||
|
||
***Invoking abld command | ||
perl.exe -S ABLD.PL \Dev\projects\akudama\mmcdump\group\ export | ||
make -r -f "\Dev\Symbian\8.0a\EPOC32\BUILD\Dev\projects\akudama\mmcdump\group\EXPORT.make" EXPORT VERBOSE=-s | ||
Nothing to do | ||
|
||
Total Time: 2 sec | ||
|
||
***Generating abld makefile. | ||
|
||
***Invoking abld command | ||
perl.exe -S ABLD.PL \Dev\projects\akudama\mmcdump\group\ makefile gcce mmcdump | ||
This project does not support platform or program "GCCE" | ||
|
||
Total Time: 2 sec | ||
|
||
***Abld returned with exit value = 255 | ||
***Stopping. | ||
|
||
***Errors were detected in build. See the Problems or Console view for details. | ||
|
||
Total Time: 2 sec |
71 changes: 71 additions & 0 deletions
71
.metadata/.plugins/org.eclipse.core.resources/.history/12/30ecf8de063b001b1ddeae2b9fcc6e7c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
============================================================================ | ||
Name : mmcdump.cpp | ||
Author : | ||
Copyright : Your copyright notice | ||
Description : Exe source file | ||
============================================================================ | ||
*/ | ||
|
||
// Include Files | ||
|
||
#include "mmcdump.h" | ||
|
||
#include <e32base.h> | ||
#include <e32std.h> | ||
#include <f32file.h> | ||
|
||
#include <e32svr.h> | ||
|
||
_LIT(KMmcIfLddName, "GD1DRV"); | ||
_LIT(KMmcInfoFilePath, "C:\\MmcInfo.txt"); | ||
|
||
_LIT(KMmcTypeFormatStr, "MMC type: %s (%d)"); | ||
_LIT(KMmcIdFormatStr, "MMC ID: "); | ||
|
||
_LIT(KMmcFailOpenDumpInfoFileStr, "Fail opening MMC info dump file!"); | ||
|
||
enum TMmcMediaType { | ||
EMmcROM, | ||
EMmcFlash, | ||
EMmcIO, | ||
EMmcOther, | ||
EMmcNotSupported | ||
}; | ||
|
||
struct TMmcIfInfo { | ||
TUint32 iMmcID[4]; | ||
TUint32 iMmcType; | ||
}; | ||
|
||
class CMmcBusChannel: public RBusLogicalChannel { | ||
|
||
}; | ||
|
||
GLDEF_C TInt E32Main() | ||
{ | ||
// Create cleanup stack | ||
__UHEAP_MARK; | ||
CTrapCleanup* cleanup = CTrapCleanup::New(); | ||
|
||
// Connect to FS service first | ||
RFs fs; | ||
fs.Connect(-1); | ||
|
||
RNotifier notifier; | ||
notifier.Connect(); | ||
|
||
RFile infoFile; | ||
if (infoFile.Replace(fs, KMmcInfoFilePath, EFileShareAny|EFileWrite) != KErrNone) { | ||
notifier.InfoPrint(KMmcFailOpenDumpInfoFileStr); | ||
return 0; | ||
} | ||
|
||
// Load logical device | ||
User::LoadLogicalDevice(KMmcIfLddName); | ||
|
||
delete cleanup; | ||
__UHEAP_MARKEND; | ||
return KErrNone; | ||
} | ||
|
76 changes: 76 additions & 0 deletions
76
.metadata/.plugins/org.eclipse.core.resources/.history/14/702f2eea063b001b1ddeae2b9fcc6e7c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
============================================================================ | ||
Name : mmcdump.cpp | ||
Author : | ||
Copyright : Your copyright notice | ||
Description : Exe source file | ||
============================================================================ | ||
*/ | ||
|
||
// Include Files | ||
|
||
#include "mmcdump.h" | ||
|
||
#include <e32base.h> | ||
#include <e32std.h> | ||
#include <f32file.h> | ||
|
||
#include <e32svr.h> | ||
|
||
_LIT(KMmcIfLddName, "GD1DRV"); | ||
_LIT(KMmcInfoFilePath, "C:\\MmcInfo.txt"); | ||
|
||
_LIT(KMmcTypeFormatStr, "MMC type: %s (%d)"); | ||
_LIT(KMmcIdFormatStr, "MMC ID: "); | ||
|
||
_LIT(KMmcFailOpenDumpInfoFileStr, "Fail opening MMC info dump file!"); | ||
|
||
enum TMmcMediaType { | ||
EMmcROM, | ||
EMmcFlash, | ||
EMmcIO, | ||
EMmcOther, | ||
EMmcNotSupported | ||
}; | ||
|
||
struct TMmcIfInfo { | ||
TUint32 iMmcID[4]; | ||
TUint32 iMmcType; | ||
}; | ||
|
||
enum TMmcControlOp { | ||
EMmcControlOpSelectCard = 4, | ||
EMmcControlOpCardInfo = 6 | ||
}; | ||
|
||
class CMmcBusChannel: public RBusLogicalChannel { | ||
CMmcBusChannel(); | ||
}; | ||
|
||
GLDEF_C TInt E32Main() | ||
{ | ||
// Create cleanup stack | ||
__UHEAP_MARK; | ||
CTrapCleanup* cleanup = CTrapCleanup::New(); | ||
|
||
// Connect to FS service first | ||
RFs fs; | ||
fs.Connect(-1); | ||
|
||
RNotifier notifier; | ||
notifier.Connect(); | ||
|
||
RFile infoFile; | ||
if (infoFile.Replace(fs, KMmcInfoFilePath, EFileShareAny|EFileWrite) != KErrNone) { | ||
notifier.InfoPrint(KMmcFailOpenDumpInfoFileStr); | ||
return 0; | ||
} | ||
|
||
// Load logical device | ||
User::LoadLogicalDevice(KMmcIfLddName); | ||
|
||
delete cleanup; | ||
__UHEAP_MARKEND; | ||
return KErrNone; | ||
} | ||
|
88 changes: 88 additions & 0 deletions
88
.metadata/.plugins/org.eclipse.core.resources/.history/15/6035e9c2093b001b1ddeae2b9fcc6e7c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* | ||
* Copyright (c) 2020 EKA2L1 Team. | ||
* | ||
* This work is licensed under the terms of the MIT license. | ||
* For a copy, see <https://opensource.org/licenses/MIT>. | ||
*/ | ||
|
||
#include "mmcdump.h" | ||
#include "mmcbus.h" | ||
|
||
#include <e32base.h> | ||
#include <e32std.h> | ||
#include <f32file.h> | ||
|
||
#include <e32svr.h> | ||
|
||
_LIT(KMmcIfLddName, "GD1DRV"); | ||
_LIT(KMmcInfoFilePath, "C:\\MmcInfo.txt"); | ||
|
||
_LIT(KMmcTypeFormatStr, "MMC type: %s (%d)"); | ||
_LIT(KMmcIdFormatStr, "MMC ID: "); | ||
|
||
_LIT(KMmcFailOpenDumpInfoFileStr, "Fail opening MMC info dump file!"); | ||
|
||
_LIT(KMmcMediaTypeROMStr, "ROM"); | ||
_LIT(KMmcMediaTypeFlashStr, "Flash"); | ||
_LIT(KMmcMediaTypeIOStr, "IO"); | ||
_LIT(KMmcMediaTypeOtherStr, "Other"); | ||
_LIT(KMmcMediaTypeNotSupportedStr, "Not supported"); | ||
|
||
TDesC16 *GetMmcMediaTypeStr(const TInt aType) { | ||
switch (aType) { | ||
case EMmcROM: | ||
return &KMmcMediaTypeROMStr; | ||
|
||
case EMmcFlash: | ||
return &KMmcMediaTypeFlashStr; | ||
|
||
case EMmcIO: | ||
return &KMmcMediaTypeIOStr; | ||
|
||
case EMmcOther: | ||
return &KMmcMediaTypeOther; | ||
} | ||
} | ||
|
||
TInt DumpCardInfoL(RFile &aOutputFile) { | ||
// Load logical device | ||
User::LoadLogicalDevice(KMmcIfLddName); | ||
|
||
CMmcBusChannel mmcDev; | ||
mmcDev.ConstructL(); | ||
|
||
User::LeaveIfError(mmcDev.SelectCard(0)); | ||
|
||
// Get card info | ||
TMmcIfInfo mmcInfo; | ||
User::LeaveIfError(mmcDev.GetCardInfo(&mmcInfo)); | ||
|
||
TBuf<256> lineToWrite; | ||
|
||
User::FreeLogicalDevice(KMmcIfDvcName); | ||
} | ||
|
||
GLDEF_C TInt E32Main() | ||
{ | ||
// Create cleanup stack | ||
__UHEAP_MARK; | ||
CTrapCleanup* cleanup = CTrapCleanup::New(); | ||
|
||
// Connect to FS service first | ||
RFs fs; | ||
fs.Connect(-1); | ||
|
||
RNotifier notifier; | ||
notifier.Connect(); | ||
|
||
RFile infoFile; | ||
if (infoFile.Replace(fs, KMmcInfoFilePath, EFileShareAny|EFileWrite) != KErrNone) { | ||
notifier.InfoPrint(KMmcFailOpenDumpInfoFileStr); | ||
return 0; | ||
} | ||
|
||
delete cleanup; | ||
__UHEAP_MARKEND; | ||
return KErrNone; | ||
} | ||
|
Oops, something went wrong.