Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 276 → Rev 277

/PIC Stuff/PICX_16F1829_Controller/defines.h
27,9 → 27,6
#define UART_RX_TRIS TRISCbits.TRISC5
#define UART_TX_TRIS TRISCbits.TRISC4
 
#define BTN_CAP_0_TRIS TRISCbits.TRISC6
#define BTN_CAP_1_TRIS TRISCbits.TRISC7
 
#define BTN_INT_TRIS TRISAbits.TRISA2
 
#define I2C_ADDR_3_TRIS TRISCbits.TRISC3
52,6 → 49,14
 
#define I2C_2_CLK_TRIS TRISBbits.TRISB7
#define I2C_2_DAT_TRIS TRISBbits.TRISB5
 
#define CPS_R_TRIS TRISCbits.TRISC6
#define CPS_L_TRIS TRISCbits.TRISC7
#define CPS_R_ANSL ANSELCbits.ANSC6
#define CPS_L_ANSL ANSELCbits.ANSC7
#define CPS_R_WPU WPUCbits.WPUC6
#define CPS_L_WPU WPUCbits.WPUC7
 
// </editor-fold>
 
#define _XTAL_FREQ 32000000
73,6 → 78,12
 
#define I2C1_SLAVE_PREFIX 0x10
 
#define DIR_BRIGHTNESS 0x40
#define DIR_S 0x00
#define DIR_W 0x01
#define DIR_N 0x02
#define DIR_E 0x03
 
typedef union {
struct {
unsigned BTN_L_N :1;
112,8 → 123,11
void Reset_Board(uint8_t next_state);
uint8_t Get_Last_Reset(void);
 
void Check_I2C(void);
void Check_I2C_Idle(void);
void Idle_Animation(void);
 
uint8_t Direction_Rotate_Clockwise(uint8_t);
uint8_t Direction_Rotate_CClockwise(uint8_t);
 
#endif /* DEFINES_H */