]> oss.titaniummirror.com Git - rgblamp.git/commitdiff
Fix comments about port assignments
authorR. Steve McKown <rsmckown@gmail.com>
Thu, 1 Dec 2011 19:04:40 +0000 (12:04 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Thu, 1 Dec 2011 19:04:40 +0000 (12:04 -0700)
main.c
nbproject/private/private.xml

diff --git a/main.c b/main.c
index f062b41ff05a5dd3e67a6a36fb666c51e7252836..5abba0107b3e38a843907e41ef0e90601224f71a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -9,7 +9,7 @@
 #include <pic16f1827.h>
 
 #define RUNAT32MHZ /* else 16 MHz */
-#define LEDBIT          0x01 /* PORTB.3 */
+#define LEDBIT          0x01 /* PORTB.0 */
 
 #if defined(RUNAT32MHZ)
 __CONFIG(WDTE_OFF & FOSC_INTOSC);
@@ -33,14 +33,14 @@ void pic_init()
 
 void pwm_init()
 {
-    /* Initialize PWM on PORTB.0
+    /* Initialize PWM on PORTB.3
      * - Fosc = 32MHz
      * - Prescale = 16
      * - PRx value = 0xff
      * = f(pwm) = 1.95 kHz
      */
 
-    /* Disable output on PORTB.0 */
+    /* Disable output on PORTB.3 */
     TRISB |= 0x08;
 
     /* Configure ECCP1 */
@@ -53,14 +53,14 @@ void pwm_init()
     PR2 = 0xff;
     T2CON = 0b00000111;
 
-    /* Enable PWM output, PORTB.0 */
+    /* Enable PWM output, PORTB.3 */
     while (!TMR2IF); /* wait until timer overflow */
     TRISB &= ~0x08;
 }
 
 void led_init()
 {
-    PORTB &= ~LEDBIT; /* Led is PORTB.3 */
+    PORTB &= ~LEDBIT; /* Led is PORTB.0 */
     TRISB &= ~LEDBIT;
 }
 
index 8af8ccd5811ba32ff35b5621bb93f36c80d89987..c1f155a782bd6f432a8846f3d3b308ba6fa6856c 100644 (file)
@@ -1,7 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project-private xmlns="http://www.netbeans.org/ns/project-private/1">
     <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
-    <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/1">
-        <file>file:/home/smckown/workspace/picdimmy/main.c</file>
-    </open-files>
 </project-private>