comparison L1/tpudrv/tpudrv12.c @ 18:a872b92dcd3c

tpudrv12.c: TPU_wait_idle() call removed to match TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 10 Jun 2016 06:42:21 +0000
parents 75a11d740a02
children
comparison
equal deleted inserted replaced
17:e8c05cfca8aa 18:a872b92dcd3c
780 *TP_Ptr++ = TPU_WAIT(100); 780 *TP_Ptr++ = TPU_WAIT(100);
781 /* code from tpudrv61.c follows, same for Rita and LoCosto */ 781 /* code from tpudrv61.c follows, same for Rita and LoCosto */
782 *TP_Ptr++ = TPU_SLEEP; 782 *TP_Ptr++ = TPU_SLEEP;
783 TP_Ptr = (SYS_UWORD16 *) TPU_RAM; 783 TP_Ptr = (SYS_UWORD16 *) TPU_RAM;
784 TP_Enable(1); 784 TP_Enable(1);
785 /* 785 #if 0 /* present in LoCosto but not in TCS211 */
786 * The following call does not appear in tpudrv12.obj, and 786 TPU_wait_idle();
787 * there is no TPU_wait_idle() function in Leonardo tpudrv.obj 787 #endif
788 * either. But this wait operation makes sense to me, so
789 * I'm keeping it as-is from the LoCosto version for now.
790 * -- Space Falcon
791 */
792 TPU_wait_idle();
793 } 788 }
794 789
795 // l1dmacro_RF_wakeup 790 // l1dmacro_RF_wakeup
796 //* wakeup RF from BIG or DEEP sleep 791 //* wakeup RF from BIG or DEEP sleep
797 792
830 *TP_Ptr++ = TPU_WAIT(117); 825 *TP_Ptr++ = TPU_WAIT(117);
831 /* code from tpudrv61.c follows, same for Rita and LoCosto */ 826 /* code from tpudrv61.c follows, same for Rita and LoCosto */
832 *TP_Ptr++ = TPU_SLEEP; 827 *TP_Ptr++ = TPU_SLEEP;
833 TP_Ptr = (SYS_UWORD16 *) TPU_RAM; 828 TP_Ptr = (SYS_UWORD16 *) TPU_RAM;
834 TP_Enable(1); 829 TP_Enable(1);
835 /* same issue as in the previous function */ 830 #if 0 /* present in LoCosto but not in TCS211 */
836 TPU_wait_idle(); 831 TPU_wait_idle();
832 #endif
837 } 833 }
838 834
839 835
840 // l1dmacro_init_hw 836 // l1dmacro_init_hw
841 // Reset VEGA, then remove reset 837 // Reset VEGA, then remove reset