#include <msp430x16x.h>Include dependency graph for dio.c:

Go to the source code of this file.
Functions | |
| void | init_dio (void) |
|
|
P1 Usage
P2 Usage
P3 Usage
P4 Usage
P5 Usage
P6 Usage
Definition at line 47 of file dio.c. Referenced by init_bsp(). 00047 {
00062 P1DIR = 0x00;
00063
00078 P2DIR = 0x70;
00079
00080
00095 P3SEL = 0xF0; // Select pins 3.4-3.7 as serial port pins
00096 P3DIR = 0x5F; // Make both serial TX pins (3.4 and 3.6) outputs.
00097 P3OUT = 0x0F; // 1 for full rate, 0 for divide by 8
00098
00113 P4SEL = 0x0F;
00114 P4DIR=0xF0;
00115
00130 P5DIR=0xFF;
00131 P5OUT=0xFF; // do NOT use bit 4 (set to 0) as it will kill speed sensors.
00132
00147 P6SEL = 0xFF; // select all of the P6/analog pins as alternate function
00148 P6DIR=0x00;
00149 }
|
1.3.9.1