فهرست منبع

Merge pull request #67 from mactcp/main

Switch to latest toolchain
Eric Helgeson 3 سال پیش
والد
کامیت
32219ce18b
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      platformio.ini
  2. 2 2
      src/BlueSCSI.cpp

+ 1 - 1
platformio.ini

@@ -17,7 +17,7 @@ upload_protocol = stlink
 ; 1.80201.181220 ; 921kb/sec
 ; 1.90201.191206 ; 912kb/sec
 ; 1.90301.200702 ; default - 955kb/sec
-platform_packages = toolchain-gccarmnoneeabi@1.60301.0
+platform_packages = toolchain-gccarmnoneeabi
 
 build_unflags = 
     -Os

+ 2 - 2
src/BlueSCSI.cpp

@@ -857,7 +857,7 @@ void readDataPhase(int len, byte* p)
 /*
  * See writeDataLoop for optimization info.
  */
-void readDataLoop(uint32_t blockSize) __attribute__ ((aligned(8)));
+void readDataLoop(uint32_t blockSize) __attribute__ ((aligned(16)));
 void readDataLoop(uint32_t blockSize)
 {
   register byte *dstptr= m_buf;
@@ -878,7 +878,7 @@ void readDataLoop(uint32_t blockSize)
     REQ_OFF();
     *dstptr++ = ~(ret >> 8);
     // Move wait loop in to a single 8 byte prefetch buffer
-    asm("nop.w");
+    asm("nop.w;nop");
     WAIT_ACK_INACTIVE();
     REQ_ON();
     // Extra 1 cycle delay