X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fmagpie_fw_dev%2Ftarget%2Frompatch%2Fusb_api_patch.c;h=d9a394dedbefb0d670f6ba95482690e5cb8de6fc;hb=9cbbdfbb58d4703c76b1867e50897cb8da629dbe;hp=872b50d5823b34d5f02e4a44eca9a99dc7e9fad5;hpb=e9e39b3bf6b4de3b609a5e4ec941254aecfe5cf4;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/magpie_fw_dev/target/rompatch/usb_api_patch.c b/target_firmware/magpie_fw_dev/target/rompatch/usb_api_patch.c index 872b50d..d9a394d 100755 --- a/target_firmware/magpie_fw_dev/target/rompatch/usb_api_patch.c +++ b/target_firmware/magpie_fw_dev/target/rompatch/usb_api_patch.c @@ -434,7 +434,6 @@ ERR_DONE: static void turn_off_merlin() { volatile uint32_t default_data[9]; - volatile uint32_t read_data = 0; uint32_t i=0; if(1) @@ -553,7 +552,6 @@ volatile uint32_t gpio = 0x0; */ void zfTurnOffPower_patch(void) { - uint32_t i=0; A_PRINTF("+++ goto suspend ......\n"); // setting the go suspend here, power down right away... @@ -605,8 +603,6 @@ void zfResetUSBFIFO_patch(void) static void _fw_reset_dma_fifo() { - int i; - HAL_BYTE_REG_WRITE(0x100ae, (HAL_BYTE_REG_READ(0x100ae)|0x10)); HAL_BYTE_REG_WRITE(0x100ae, (HAL_BYTE_REG_READ(0x100af)|0x10)); A_PRINTF("_fw_reset_dma_fifo\n"); @@ -795,7 +791,7 @@ BOOLEAN bGet_descriptor_patch(void) uint8_t *p = (uint8_t *)u8UsbDeviceDescriptor; uint32_t u32Tmp=0; /* Copy Usb Device Descriptor */ - memcpy(UsbDeviceDescriptorPatch, p, sizeof(UsbDeviceDescriptorPatch)); + ath_hal_memcpy(UsbDeviceDescriptorPatch, p, sizeof(UsbDeviceDescriptorPatch)); A_SFLASH_READ_4B(u32Tmp, FLASH_SIZE - EE_DATA_RESERVED_LEN + FLASH_USB_VENDOR_ID_OFFSET*2); UsbDeviceDescriptorPatch[VENDOR_ID_OFFSET] = mSWAP_BYTE(mLOW_WORD0(u32Tmp)); @@ -816,7 +812,7 @@ BOOLEAN bGet_descriptor_patch(void) uint8_t *p = (uint8_t *)u8ConfigDescriptorEX; /* Copy ConfigDescriptor */ - memcpy(ConfigDescriptorPatch, p, sizeof(ConfigDescriptorPatch)); + ath_hal_memcpy(ConfigDescriptorPatch, p, sizeof(ConfigDescriptorPatch)); p = (uint8_t *)ConfigDescriptorPatch;