Defined clock Frequency and multiplication factor
This commit is contained in:
		
							parent
							
								
									322eb69756
								
							
						
					
					
						commit
						0dc4b7361e
					
				
							
								
								
									
										4
									
								
								main.c
								
								
								
								
							
							
						
						
									
										4
									
								
								main.c
								
								
								
								
							| 
						 | 
				
			
			@ -4,4 +4,6 @@
 | 
			
		|||
// SysTick memory-mapped registers
 | 
			
		||||
#define STCTRL *((volatile uint32_t *) 0xE000E010)          // CONTROL AND STATUS
 | 
			
		||||
#define STRELOAD *((volatile uint32_t *) 0xE000E014)        // RELOAD VALUE
 | 
			
		||||
#define STCURRENT *((volatile uint32_t *) 0xE000E018)       // CURRENT VALUE
 | 
			
		||||
#define STCURRENT *((volatile uint32_t *) 0xE000E018)       // CURRENT VALUE
 | 
			
		||||
#define CLOCK_HZ 16000000       // CLOCK FREQUENCY OF EK-TM4C123GXL
 | 
			
		||||
#define SYSTICK_RELOAD_VALUE(us) ((CLOCK_HZ / 1000000) * (us) - 1)  // SYSTICK RELOAD VALUE
 | 
			
		||||
		Loading…
	
		Reference in New Issue