-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpins.h
More file actions
32 lines (24 loc) · 791 Bytes
/
Copy pathpins.h
File metadata and controls
32 lines (24 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//autogenerated by msp430-gen.py
#ifndef _PINS_H
#define _PINS_H
#define CLOCK_PINS (BIT2|BIT5|BIT4)
#define CLOCK_DIR P1DIR
#define CLOCK_SEL0 P1SEL0
#define CLOCK_SEL1 P1SEL1
#define UART_TX_PIN BIT3
#define UART_RX_PIN BIT4
#define UART_TX_PIN_NUM 5
#define UART_RX_PIN_NUM 6
#define UART_PINS (UART_RX_PIN|UART_TX_PIN)
#define UART_PORT 3
//define serial pins
#define BUS_PIN_SDA BIT1
#define BUS_PIN_SCL BIT0
#define BUS_PINS_I2C (BUS_PIN_SDA|BUS_PIN_SCL)
#define BUS_PIN_SCK BIT2
#define BUS_PIN_SOMI BIT3
#define BUS_PIN_SIMO BIT4
#define BUS_PINS_SPI (BUS_PIN_SOMI|BUS_PIN_SIMO|BUS_PIN_SCK)
#define BUS_PINS_SER (BUS_PINS_SPI|BUS_PINS_I2C)
int sys_addr =0x11;
#endif