From 4ebe995f5ed0e06208841c49d2a4b997d6cb0e45 Mon Sep 17 00:00:00 2001 From: Railz Date: Thu, 28 Feb 2019 16:23:16 +0100 Subject: [PATCH] Added comments --- Geigerzaehler/main.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Geigerzaehler/main.c b/Geigerzaehler/main.c index 3d6ffac..585c485 100644 --- a/Geigerzaehler/main.c +++ b/Geigerzaehler/main.c @@ -1,16 +1,19 @@ /* * geigerzaehler.main.c.c * - * Created: 28.02.2019 09:07:22 - * Author : John_Ditgens + * Created : 28.02.2019 09:07:22 + * 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 #include -// Todo: Clock speed missing - int main(void) { DDRD &= ~(1<<2); // Eingang PD2 @@ -25,8 +28,9 @@ int main(void) EICRA |= (1 << ISC11)|(1 << ISC10); EIMSK |= (1 <