X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/47384e3c5029381d8b9fff2dbacbeec7c1e71845..03ee87b35abdb8b92e8b55ec040fa943f9a6786c:/Projects/LEDNotifier/LEDNotifier.c diff --git a/Projects/LEDNotifier/LEDNotifier.c b/Projects/LEDNotifier/LEDNotifier.c index 5a7ebd563..00b6e2698 100644 --- a/Projects/LEDNotifier/LEDNotifier.c +++ b/Projects/LEDNotifier/LEDNotifier.c @@ -1,21 +1,21 @@ /* LUFA Library - Copyright (C) Dean Camera, 2009. + Copyright (C) Dean Camera, 2010. dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ /* - Copyright 2009 Dean Camera (dean [at] fourwalledcubicle [dot] com) - - Permission to use, copy, modify, and distribute this software - and its documentation for any purpose and without fee is hereby - granted, provided that the above copyright notice appear in all - copies and that both that the copyright notice and this - permission notice and warranty disclaimer appear in supporting - documentation, and that the name of the author not be used in - advertising or publicity pertaining to distribution of the + Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com) + + Permission to use, copy, modify, distribute, and sell this + software and its documentation for any purpose is hereby granted + without fee, provided that the above copyright notice appear in + all copies and that both that the copyright notice and this + permission notice and warranty disclaimer appear in supporting + documentation, and that the name of the author not be used in + advertising or publicity pertaining to distribution of the software without specific, written prior permission. The author disclaim all warranties with regard to this @@ -30,11 +30,11 @@ /** \file * - * Main source file for the HotmailNotfier project. This file contains the main tasks of + * Main source file for the LEDNotfier project. This file contains the main tasks of * the demo and is responsible for the initial application hardware configuration. */ -#include "HotmailNotifier.h" +#include "LEDNotifier.h" /** LUFA CDC Class driver interface configuration and state information. This structure is * passed to all CDC Class driver functions, so that multiple instances of the same class @@ -78,7 +78,7 @@ ISR(TIMER0_COMPA_vect, ISR_BLOCK) { uint8_t LEDMask = LEDS_ALL_LEDS; - if (++SoftPWM_Count == 0x1F) + if (++SoftPWM_Count == 0b00011111) SoftPWM_Count = 0; if (SoftPWM_Count >= SoftPWM_Channel1_Duty) @@ -122,7 +122,7 @@ int main(void) if (Channel & (1 << 6)) SoftPWM_Channel2_Duty = Duty; - + if (Channel & (1 << 7)) SoftPWM_Channel3_Duty = Duty;