prepare for LL
This commit is contained in:
		
							parent
							
								
									84d00d8178
								
							
						
					
					
						commit
						91beef5d0b
					
				
					 16 changed files with 0 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								myapps/OLD/first/src/main.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								myapps/OLD/first/src/main.c
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| //#include <stdint.h>
 | ||||
| #include "stm32g0xx.h" | ||||
| 
 | ||||
| #define LED_PIN 4 | ||||
| 
 | ||||
| int main(void) | ||||
| { | ||||
|   RCC->IOPENR |= RCC_IOPENR_GPIOAEN; | ||||
|   GPIOA->MODER |= GPIO_MODER_MODE5_0; | ||||
|    | ||||
|   while(1) | ||||
|   { | ||||
|     GPIOA->ODR ^= (1<<LED_PIN);  // toggle diodes
 | ||||
|     for (uint32_t i = 0; i < 1000000; i++); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue