ao486: suport for shared folder.

This commit is contained in:
sorgelig
2020-07-19 05:57:05 +08:00
parent c528ebc2f1
commit 95adc60b8f
6 changed files with 1146 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ sniper_mode=0
; 0 - disable MiSTer logo in Menu core
logo=1
; Custom shared folder for core supporting this feature (currently minimig only)
; Custom shared folder for core supporting this feature (currently minimig and ao486 only)
; Can be relative to core's home dir or absolute path.
; Path must exist before core start to use it, or it will fail.
; Make sure USB device is mounted before use shared folder on USB!

View File

@@ -95,6 +95,7 @@
<ClCompile Include="support\snes\snes.cpp" />
<ClCompile Include="support\st\st_tos.cpp" />
<ClCompile Include="support\x86\x86.cpp" />
<ClCompile Include="support\x86\x86_share.cpp" />
<ClCompile Include="sxmlc.c" />
<ClCompile Include="user_io.cpp" />
<ClCompile Include="video.cpp" />
@@ -156,6 +157,7 @@
<ClInclude Include="support\snes\snes.h" />
<ClInclude Include="support\st\st_tos.h" />
<ClInclude Include="support\x86\x86.h" />
<ClInclude Include="support\x86\x86_share.h" />
<ClInclude Include="sxmlc.h" />
<ClInclude Include="user_io.h" />
<ClInclude Include="video.h" />

View File

@@ -199,6 +199,9 @@
<ClCompile Include="support\minimig\minimig_share.cpp">
<Filter>Source Files\support</Filter>
</ClCompile>
<ClCompile Include="support\x86\x86_share.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="battery.h">
@@ -378,5 +381,8 @@
<ClInclude Include="support\minimig\miminig_fs_messages.h">
<Filter>Header Files\support</Filter>
</ClInclude>
<ClInclude Include="support\x86\x86_share.h">
<Filter>Header Files\support</Filter>
</ClInclude>
</ItemGroup>
</Project>

View File

@@ -690,6 +690,7 @@ void x86_init()
for(unsigned int i=0; i<sizeof(cmos)/sizeof(unsigned int); i++) IOWR(RTC_BASE, i, cmos[i]);
x86_share_reset();
user_io_8bit_set_status(0, UIO_STATUS_RESET);
}
@@ -710,6 +711,8 @@ void x86_poll()
uint32_t cpu_clock = cpu_get_clock();
if (cpu_clock != old_cpu_clock) set_clock();
x86_share_poll();
char sd_req = dma_sdio(0);
if (sd_req == 1)
{

1124
support/x86/x86_share.cpp Normal file

File diff suppressed because it is too large Load Diff

10
support/x86/x86_share.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef __MINIMIG_SHARE_H__
#define __MINIMIG_SHARE_H__
#include <stdint.h>
void x86_share_poll();
void x86_share_reset();
#endif