Merge branch 'master' of https://gitea.railduction.eu/JohnD/Geigerzaehler
This commit is contained in:
		
						commit
						10745df378
					
				@ -1,16 +1,19 @@
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * geigerzaehler.main.c.c
 | 
					 * geigerzaehler.main.c.c
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Created: 28.02.2019 09:07:22
 | 
					 * Created			:	28.02.2019 09:07:22
 | 
				
			||||||
 * Author : John_Ditgens
 | 
					 * Author			:	John Ditgens, Alexander Brandscheidt
 | 
				
			||||||
 | 
					 * Git-Repository	:	https://gitea.Railduction.eu/JohnD/Geigerzaehler.git
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * MController		:	AtMega328P
 | 
				
			||||||
 | 
					 * Board			:	Arduino Nano
 | 
				
			||||||
 */ 
 | 
					 */ 
 | 
				
			||||||
#define F_CPU ...UL 					// Taktfrequenz (...)Hz
 | 
					#define F_CPU 20000000UL 					// Clock speed: 20 MHz	- Maximum of AtMega328P
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Imports
 | 
				
			||||||
#include <avr/io.h>
 | 
					#include <avr/io.h>
 | 
				
			||||||
#include <avr/interrupt.h>
 | 
					#include <avr/interrupt.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Todo: Clock speed missing
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int main(void)
 | 
					int main(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    DDRD &= ~(1<<2); 					// Activate PD2
 | 
					    DDRD &= ~(1<<2); 					// Activate PD2
 | 
				
			||||||
@ -25,8 +28,9 @@ int main(void)
 | 
				
			|||||||
    EICRA |= (1 << ISC11)|(1 << ISC10);	// Only at raising edge
 | 
					    EICRA |= (1 << ISC11)|(1 << ISC10);	// Only at raising edge
 | 
				
			||||||
    EIMSK |= (1 <<INT1);				// Activate Interrupt INT1
 | 
					    EIMSK |= (1 <<INT1);				// Activate Interrupt INT1
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
    sei();
 | 
					    sei();		// Activate global interrupts
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 | 
						// Endless loop
 | 
				
			||||||
    while (1) 
 | 
					    while (1) 
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user