mirror of
https://github.com/mist-devel/mist-firmware.git
synced 2026-01-11 23:43:04 +00:00
Fix several typos
This commit is contained in:
parent
431bdb9087
commit
02bcff4b43
4
debug.h
4
debug.h
@ -92,14 +92,14 @@
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
// usb rts debug output in blue
|
||||
// usb rtc debug output in blue
|
||||
#define usbrtc_debugf(a, ...) iprintf("\033[1;34mUSBRTC: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define usbrtc_debugf(...)
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
// usb rts debug output in blue
|
||||
// usb pl2303 debug output in blue
|
||||
#define pl2303_debugf(a, ...) iprintf("\033[1;34mPL2303: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define pl2303_debugf(...)
|
||||
|
||||
6
fat.h
6
fat.h
@ -4,7 +4,7 @@
|
||||
#include "spi.h"
|
||||
|
||||
#define MAXDIRENTRIES 8
|
||||
// Sector buffer size for 4 consequitive sectors
|
||||
// Sector buffer size for 4 consecutive sectors
|
||||
#define SECTOR_BUFFER_SIZE 4
|
||||
|
||||
typedef struct
|
||||
@ -120,8 +120,8 @@ extern unsigned char fat32;
|
||||
// options flags
|
||||
#define SCAN_DIR 1 // include subdirectories
|
||||
#define SCAN_LFN 2 // include long file names
|
||||
#define FIND_DIR 4 // find first directory beginning with given charater
|
||||
#define FIND_FILE 8 // find first file entry beginning with given charater
|
||||
#define FIND_DIR 4 // find first directory beginning with given character
|
||||
#define FIND_FILE 8 // find first file entry beginning with given character
|
||||
#define SCAN_SYSDIR 16 // include subdirectories with system attribute
|
||||
|
||||
|
||||
|
||||
@ -93,8 +93,8 @@ extern unsigned char fat32;
|
||||
// options flags
|
||||
#define SCAN_DIR 1 // include subdirectories
|
||||
#define SCAN_LFN 2 // include long file names
|
||||
#define FIND_DIR 4 // find first directory beginning with given charater
|
||||
#define FIND_FILE 8 // find first file entry beginning with given charater
|
||||
#define FIND_DIR 4 // find first directory beginning with given character
|
||||
#define FIND_FILE 8 // find first file entry beginning with given character
|
||||
#define SCAN_SYSDIR 16 // include subdirectories with system attribute
|
||||
|
||||
extern FATFS fs;
|
||||
|
||||
@ -83,8 +83,8 @@ static inline void SPI_WRITE(unsigned char outByte) {
|
||||
*AT91C_SPI_TDR = outByte;
|
||||
}
|
||||
|
||||
#define SPI_SDC_CLK_VALUE 2 // 24 Mhz
|
||||
#define SPI_MMC_CLK_VALUE 3 // 16 Mhz
|
||||
#define SPI_SDC_CLK_VALUE 2 // 24 MHz
|
||||
#define SPI_MMC_CLK_VALUE 3 // 16 MHz
|
||||
#define SPI_SLOW_CLK_VALUE 120 // 400kHz
|
||||
|
||||
#endif // SPI_H
|
||||
|
||||
2
ikbd.c
2
ikbd.c
@ -537,7 +537,7 @@ void ikbd_poll(void) {
|
||||
DisableIO();
|
||||
}
|
||||
|
||||
// everything below must not happen faster than 1khz
|
||||
// everything below must not happen faster than 1kHz
|
||||
static unsigned long rtimer = 0;
|
||||
if(!CheckTimer(rtimer))
|
||||
return;
|
||||
|
||||
4
menu.c
4
menu.c
@ -1636,10 +1636,10 @@ static void ScrollLongName(void)
|
||||
|
||||
static char* GetDiskInfo(char* lfn, long len)
|
||||
{
|
||||
// extracts disk number substring form file name
|
||||
// extracts disk number substring from file name
|
||||
// if file name contains "X of Y" substring where X and Y are one or two digit number
|
||||
// then the number substrings are extracted and put into the temporary buffer for further processing
|
||||
// comparision is case sensitive
|
||||
// comparison is case sensitive
|
||||
|
||||
short i, k;
|
||||
static char info[] = "XX/XX"; // temporary buffer
|
||||
|
||||
4
mist.ini
4
mist.ini
@ -1,6 +1,6 @@
|
||||
[mist]
|
||||
scandoubler_disable=0 ; set to 1 to run supported cores in 15khz
|
||||
csync_disable=0 ; set to 1 to output separate hsync and vsync in 15khz
|
||||
scandoubler_disable=0 ; set to 1 to run supported cores in 15kHz
|
||||
csync_disable=0 ; set to 1 to output separate hsync and vsync in 15kHz
|
||||
joystick_disable_shortcuts=0 ; set to 1 to remove joystick -> keyboard commands
|
||||
joystick_ignore_hat=0 ; set to 1 if having issues on gamepads with 'POV hat'
|
||||
mouse_boot_mode=0 ; set to 1 if a mouse does not work well
|
||||
|
||||
2
state.h
2
state.h
@ -38,7 +38,7 @@ uint16_t StateUsbVidGet(uint8_t joy_num);
|
||||
uint16_t StateUsbPidGet(uint8_t joy_num);
|
||||
|
||||
|
||||
// State of first (virtual) internal joystisk i.e. after mapping
|
||||
// State of first (virtual) internal joystick i.e. after mapping
|
||||
void StateJoySet(uint8_t c, uint8_t joy_num);
|
||||
void StateJoySetExtra(uint8_t c, uint8_t joy_num);
|
||||
void StateJoySetRight(uint8_t c, uint8_t joy_num);
|
||||
|
||||
4
tos.h
4
tos.h
@ -3,7 +3,7 @@
|
||||
|
||||
#include "fat_compat.h"
|
||||
|
||||
// FPGA spi cmommands
|
||||
// FPGA spi commands
|
||||
#define MIST_INVALID 0x00
|
||||
|
||||
// memory interface
|
||||
@ -49,7 +49,7 @@
|
||||
#define TOS_CONTROL_FDC_WR_PROT_A 0x00000040
|
||||
#define TOS_CONTROL_FDC_WR_PROT_B 0x00000080
|
||||
#define TOS_CONTROL_VIDEO_COLOR 0x00000100 // input to mfp
|
||||
#define TOS_CONTROL_PAL50HZ 0x00000200 // display pal at 50hz (56 hz otherwise)
|
||||
#define TOS_CONTROL_PAL50HZ 0x00000200 // display pal at 50Hz (56Hz otherwise)
|
||||
|
||||
// up to eight acsi devices can be enabled
|
||||
#define TOS_ACSI0_ENABLE 0x00000400
|
||||
|
||||
@ -320,7 +320,7 @@ static uint8_t asix_parse_conf(usb_device_t *dev, uint8_t conf, uint16_t len) {
|
||||
|
||||
if(len != 0) {
|
||||
asix_debugf("Config underrun: %d", len);
|
||||
return USB_ERROR_CONFIGURAION_SIZE_MISMATCH;
|
||||
return USB_ERROR_CONFIGURATION_SIZE_MISMATCH;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@ -276,7 +276,7 @@ static uint8_t usb_hid_parse_conf(usb_device_t *dev, uint8_t conf, uint16_t len)
|
||||
|
||||
if(len != 0) {
|
||||
hid_debugf("Config underrun: %d", len);
|
||||
return USB_ERROR_CONFIGURAION_SIZE_MISMATCH;
|
||||
return USB_ERROR_CONFIGURATION_SIZE_MISMATCH;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@ -77,7 +77,7 @@ static uint8_t usb_hub_parse_conf(usb_device_t *dev, uint8_t conf, uint16_t len,
|
||||
|
||||
if(len != 0) {
|
||||
iprintf("Config underrun: %d", len);
|
||||
return USB_ERROR_CONFIGURAION_SIZE_MISMATCH;
|
||||
return USB_ERROR_CONFIGURATION_SIZE_MISMATCH;
|
||||
}
|
||||
|
||||
return USB_ERROR_INVALID_MAX_PKT_SIZE;
|
||||
|
||||
@ -77,7 +77,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
uint8_t bDescLength; // descriptor length
|
||||
uint8_t bDescriptorType; // descriptor type
|
||||
uint8_t bNbrPorts; // number of ports a hub equiped with
|
||||
uint8_t bNbrPorts; // number of ports a hub equipped with
|
||||
|
||||
struct {
|
||||
uint16_t LogPwrSwitchMode : 2;
|
||||
|
||||
@ -247,7 +247,7 @@ static uint8_t pl2303_parse_conf0(usb_device_t *dev, uint16_t len) {
|
||||
|
||||
if(len != 0) {
|
||||
pl2303_debugf("Config underrun: %d", len);
|
||||
return USB_ERROR_CONFIGURAION_SIZE_MISMATCH;
|
||||
return USB_ERROR_CONFIGURATION_SIZE_MISMATCH;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@ -91,7 +91,7 @@ static uint8_t storage_parse_conf(usb_device_t *dev, uint8_t conf, uint16_t len)
|
||||
|
||||
if(len != 0) {
|
||||
storage_debugf("Config underrun: %d", len);
|
||||
return USB_ERROR_CONFIGURAION_SIZE_MISMATCH;
|
||||
return USB_ERROR_CONFIGURATION_SIZE_MISMATCH;
|
||||
}
|
||||
|
||||
return is_good_interface?0:USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED;
|
||||
@ -173,7 +173,7 @@ static uint8_t transaction(usb_device_t *dev, command_block_wrapper_t *cbw, uint
|
||||
|
||||
info->last_error = usb_out_transfer(dev, &(info->ep[STORAGE_EP_OUT]), sizeof(command_block_wrapper_t), (uint8_t*)cbw);
|
||||
if(info->last_error)
|
||||
iprintf("last_erro = %d\n", info->last_error);
|
||||
iprintf("last_error = %d\n", info->last_error);
|
||||
|
||||
if((ret= handle_usb_error(dev, STORAGE_EP_OUT))) {
|
||||
storage_debugf("Sending CBW failed");
|
||||
|
||||
@ -88,11 +88,11 @@ typedef struct {
|
||||
} __attribute__((packed)) setup_pkt_t;
|
||||
|
||||
// Additional Error Codes
|
||||
#define USB_ERROR_INVALID_MAX_PKT_SIZE 0xDA
|
||||
#define USB_ERROR_INVALID_MAX_PKT_SIZE 0xDA
|
||||
#define USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED 0xDB
|
||||
#define USB_ERROR_CONFIGURAION_SIZE_MISMATCH 0xDC
|
||||
#define USB_ERROR_CONFIGURATION_SIZE_MISMATCH 0xDC
|
||||
#define USB_ERROR_NO_SUCH_DEVICE 0xDE
|
||||
#define USB_ERROR_TRANSFER_TIMEOUT 0xFF
|
||||
#define USB_ERROR_TRANSFER_TIMEOUT 0xFF
|
||||
|
||||
struct usb_device_entry;
|
||||
struct usb_device_descriptor;
|
||||
@ -116,7 +116,7 @@ typedef struct {
|
||||
|
||||
// entry used for list of connected devices
|
||||
typedef struct usb_device_entry {
|
||||
const usb_device_class_config_t *class; // pointer to class hadlers
|
||||
const usb_device_class_config_t *class; // pointer to class handlers
|
||||
ep_t ep0; // information about endpoint 0
|
||||
uint8_t bAddress; // device address
|
||||
uint8_t parent; // parent device address
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user