3605d91f39
								
									
										
											
								
							 
						 
						
							
								
								optimized delayNanoseconds  
							
							shifting both sides by 16 bit gives pretty good accuracy with fast code:
        movw    r3, #9155 
        ldr     r2, .L2
        mul     r0, r3, r0
        lsrs    r0, r0, #1 
        umull   r3, r0, r2, r0
        lsrs    r0, r0, #8 
.L2:
        .word   144122641
with 984 MHz it allows nsec to be max ~143000  max which is plenty 
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								efc41ea92d
								
							 
						 
						
							
								
								add analogWriteResolution()  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								b9066ead1f
								
							 
						 
						
							
								
								Fix typo (thanks tonton81)  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								487b234b72
								
							 
						 
						
							
								
								Fix PWM on pin 9 (thanks Manitou)  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								1312d8bc61
								
							 
						 
						
							
								
								Fix I/O register macros  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								576c748f2f
								
							 
						 
						
							
								
								pinMode configure pins for output drive in all modes, needed for direct I/O libs  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								f21cf2cf2f
								
							 
						 
						
							
								
								Add more pin defs, needed for Encoder  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								acc3eeb91b
								
									
										
											
								
							 
						 
						
							
								
								Add delayNanoseconds()  
							
							This makes sense now, and would be useful for shorter wait-times. Could be used for PulseIn etc.  where we need defined very short delays. 
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								c4ab57c003
								
							 
						 
						
							
								
								EventResponder, MillisTimer, yield  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								459ab88998
								
							 
						 
						
							
								
								fast memcpy/memset  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								4d620d12cd
								
							 
						 
						
							
								
								(Hopefully) fix C++ constructors  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								66b0de6c15
								
							 
						 
						
							
								
								Fix digitalRead() while pin is output mode  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								585a9009b8
								
									
										
											
								
							 
						 
						
							
								
								Update imxrt.h  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								bd6602e10a
								
									
										
											
								
							 
						 
						
							
								
								IRQ_SOFTWARE = 70  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								dac015d92e
								
							 
						 
						
							
								
								Add attachInterrupt  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								cf68a26fb6
								
									
										
											
								
							 
						 
						
							
								
								Renumbered IRQ_RESERVED1-7, IRQ_SOFTWARE = 62  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								4402a96138
								
									
										
											
								
							 
						 
						
							
								
								corrected SAI1/3_CLK_PODF  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								e97247b30b
								
							 
						 
						
							
								
								Add util headers  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								2a8b5d066e
								
									
										
											
								
							 
						 
						
							
								
								rmv warning "implicit declaration of function 'delay'"  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								eb3d0484b1
								
							 
						 
						
							
								
								Add tone function  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								a1ff3e9256
								
							 
						 
						
							
								
								Fix USB serial issues printing before device ready  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								7153086e77
								
							 
						 
						
							
								
								Don't disturb pin 13 (leftover debugging code)  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								4317a52591
								
									
										
											
								
							 
						 
						
							
								
								SCB_SHPR3 = 0x20000000;  // Systick = priority 32  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								95ad3b5a30
								
									
										
											
								
							 
						 
						
							
								
								default 128 priority for all interrupts  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								0a7c35fb3c
								
							 
						 
						
							
								
								Fix pin defines for pins 0 & 1, fixes PWM issue  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								9174cad274
								
							 
						 
						
							
								
								Fix crash at startup with Og optimization  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								742625eb00
								
							 
						 
						
							
								
								Fix crash as startup with Fastest (O3) optimization  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								986ff3797d
								
							 
						 
						
							
								
								Fix tempmon address,  fixes   #299  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								49fa787c2c
								
									
										
											
								
							 
						 
						
							
								
								SPDIF register bit defs  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								e648aecf04
								
									
										
											
								
							 
						 
						
							
								
								Tempmon registers - bit definitions  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								d2d7fb7423
								
									
										
											
								
							 
						 
						
							
								
								(n)..  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								223f543fde
								
									
										
											
								
							 
						 
						
							
								
								Whitespace: Tabsize 8 (?)  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								809e38dbdf
								
									
										
											
								
							 
						 
						
							
								
								Reset Control Bit Definitions  
							
							- comment SRC_GPR1..SRC_GPR10 (used by the ROM code) 
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								3ac5eff53d
								
							 
						 
						
							
								
								Update imxrt.h (for SPI transaction)  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								262f3eaa99
								
							 
						 
						
							
								
								Add DMAChannel for IMXRT  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								35ddbd7a4f
								
							 
						 
						
							
								
								Improve I2C defines  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								26ebd85d35
								
							 
						 
						
							
								
								Import Wiring math functions  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								f5d5f0a187
								
							 
						 
						
							
								
								Fix C++ new/delete  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								4e51477dbb
								
							 
						 
						
							
								
								More syscall functions  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								1989b49cf3
								
							 
						 
						
							
								
								Fix malloc, using OCRAM rather than DTCM  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								68db3fbeb8
								
							 
						 
						
							
								
								Update imxrt.h  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								38d7836125
								
							 
						 
						
							
								
								Update imxrt.h  
							
							Deleted a duplicate define: #define CCM_CBCMR_PERIPH_CLK2_SEL_MASK		((uint32_t)(0x03 << 12))
 and added tempmon registers 
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								c93cf0f039
								
							 
						 
						
							
								
								Implement set_arm_clock  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								f0a549961c
								
							 
						 
						
							
								
								Use USB serial number from Mac Address in fuses  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								7548dc7492
								
							 
						 
						
							
								
								Configure UART clock before use  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								37c8161601
								
							 
						 
						
							
								
								Transmit only polling HardwareSerial on imxrt  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								e3bb2b648a
								
							 
						 
						
							
								
								IntervalTimer on imxrt  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								e77897e77e
								
							 
						 
						
							
								
								Enable FPU & stack dump in unused isr  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								168314b429
								
							 
						 
						
							
								
								More conservative flash startup parameters  
							
							
							
						 
						6 år sedan  
				
					
						
							
								 
						
							
								89e54de809
								
							 
						 
						
							
								
								analogRead & analogWrite on imxrt  
							
							
							
						 
						6 år sedan