#include <vstypes.h>
Include dependency graph for dev1000.h:
Go to the source code of this file.
Definition in file dev1000.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Replacement for FatOpenFile that is normally in OpenFile hook. This version disables subdirectories for FAT12 partitions so OpenFile will not go into infinite recursion trying to handle it. Is not needed for VS1000d, but is compatible with it. SetHookFunction((u_int16)OpenFile, Fat12OpenFile);
|
|
Called by InterruptStub0. |
|
Called by InterruptStub1. |
|
Called by InterruptStub2. |
|
Called by InterruptStub3. |
|
Four interrupt stubs that the programmer can use without using ASM. For example to set up the first interrupt stub to GPIO0 interrupt, use the following: WriteIRam(0x20+INTV_GPIO0, ReadIRam((u_int16)InterruptStub0)); Then you can enable GPIO0 interrupt and it will call your routine Interrupt0() whenever GPIO0 interrupt request is generated. PERIP(GPIO0_INT_FALL) |= DISPLAY_XCS; PERIP(INT_ENABLEL) |= INTF_GPIO0; |
|
Stub function that can be plugged to any interrupt vector. Calls Interrupt1(), which must be provided by the user. |
|
Stub function that can be plugged to any interrupt vector. Calls Interrupt2(), which must be provided by the user. |
|
Stub function that can be plugged to any interrupt vector. Calls Interrupt3(), which must be provided by the user. |
|
Replacement routine for KeyScan() to read GPIO[5:0] and power button instead of just GPIO[4:0] and power button. See also Suspend7(). |
|
|
|
Send MMC/SD command. The CRC that is sent will always be 0x95.
|
|
Writes packed data to NFIO. You must handle NFCS yourself. |
|
writes 8 bits with ALE=1. You must handle NFCS yourself. |
|
Writes 8 bits with CLE=1. You must handle NFCS yourself. |
|
Reads packed data from NFIO. You must handle NFCS yourself. |
|
Sets NAND-interface waitstates in nanoseconds. Uses current clockX value for calculation. |
|
Open a file based on the name. The suffix is not changed, the caller must select the right suffix and restore the original after the call.
|
|
LBAB patch -- removes 4G restriction from USB (SCSI). Is not needed for VS1000d, but is compatible with it. |
|
Plays from a previously set start position to end position. Handles player and cs structure initialization. You must call PlayRangeSet() before calling PlayRange(). |
|
Sets the start and end positions for the PlayRange() function.
|
|
For debugging with vs3emu: print 4-digit hex number. |
|
Returns 0 if no values are available, received 14-bit value otherwise. |
|
Initializes RC5 structure and installs interrupt handler. RC5 receiver uses one of the interruptable GPIO pins as input. Interrupt must be generated on both edges. The polarity of the receiver does not matter. Currently receives only codes that have two start bits. Rc5Init(INTV_GPIO0); PERIP(GPIO0_INT_FALL) |= (1<<14); PERIP(GPIO0_INT_RISE) |= (1<<14); PERIP(INT_ENABLEL) |= INTF_GPIO0; while (1) { register u_int16 t = Rc5GetFIFO(); if (t) { puthex(t); puts("=got"); } } |
|
Reads instruction RAM. |
|
Hook called by PatchMSCPacketFromPC(). |
|
Send MMC clocks with XCS high. |
|
Send and receive bits from MMC/SD.
|
|
Replacement routine for USBSuspend() to wake up from GPIO[5:0] and power button (and USB pins) instead of just GPIO[4:0] and power button (and USB pins). Also puts the analog to powerdown for the duration of USB suspend/low-power pause. See also KeyScan7(). |
|
Writes instruction RAM. |