Subversion Repositories HomeAutomation

Rev

Rev 282 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 282 Rev 297
Line 2... Line 2...
2
 *
2
 *
3
 *                  Main application
3
 *                  Main application
4
 *
4
 *
5
 *********************************************************************
5
 *********************************************************************
6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canTemp/Source/Main.c $
6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canTemp/Source/Main.c $
7
 * Last changed:    $LastChangedDate: 2007-02-03 16:58:13 +0100 (Sat, 03 Feb 2007) $
7
 * Last changed:    $LastChangedDate: 2007-02-08 18:24:59 +0100 (Thu, 08 Feb 2007) $
8
 * By:              $LastChangedBy: johboh $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 282 $
9
 * Revision:        $Revision: 297 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
 
12
 
13
#include <compiler.h>
13
#include <compiler.h>
14
#include <stackTasks.h>
14
#include <stackTasks.h>
Line 45... Line 45...
45
 
45
 
46
    #ifdef USE_BLINDS
46
    #ifdef USE_BLINDS
47
        blindsInit();
47
        blindsInit();
48
    #endif
48
    #endif
49
 
49
 
-
 
50
    BLINDS0P_IO=1;
50
 
51
 
51
    while(1)
52
    while(1)
52
    {
53
    {
53
        static TICK t = 0;
54
        static TICK t = 0;
54
        static TICK temperature = 0;
55
        static TICK temperature = 0;
Line 134... Line 135...
134
*/
135
*/
135
void mainInit()
136
void mainInit()
136
{
137
{
137
    LED0_TRIS=0;
138
    LED0_TRIS=0;
138
    BLINDS0_TRIS=0;
139
    BLINDS0_TRIS=0;
-
 
140
    BLINDS0P_TRIS=0;
139
 
141
 
140
    // Enable Interrupts
142
    // Enable Interrupts
141
    INTCONbits.GIEH = 1;
143
    INTCONbits.GIEH = 1;
142
    INTCONbits.GIEL = 1;
144
    INTCONbits.GIEL = 1;
143
 
145