Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * io_definitions.h
- *
- * Created on: Jun 19, 2013
- * Author: abdullah
- */
- #include "derivative.h"
- #ifndef INIT_H_
- #define INIT_H_
- #define touch_LED PORT_PTGD_PTGD0
- #define touch_LED_OE PORT_PTGOE_PTGOE0
- #define touch_LED_IE PORT_PTGIE_PTGIE0
- #define LED_ctrl PORT_PTDD_PTDD0
- #define LED_ctrl_OE PORT_PTDOE_PTDOE0
- #define LED_ctrl_IE PORT_PTDIE_PTDIE0
- #define LED_ctrl_HDRVE PORT_HDRVE_PTD0
- #define LED1 PORT_PTCD_PTCD0
- #define LED1_OE PORT_PTCOE_PTCOE0
- #define LED1_IE PORT_PTCIE_PTCIE0
- #define LED2 PORT_PTCD_PTCD1
- #define LED2_OE PORT_PTCOE_PTCOE1
- #define LED2_IE PORT_PTCIE_PTCIE1
- #define LED3 PORT_PTCD_PTCD2
- #define LED3_OE PORT_PTCOE_PTCOE2
- #define LED3_IE PORT_PTCIE_PTCIE2
- #define LED4 PORT_PTCD_PTCD3
- #define LED4_OE PORT_PTCOE_PTCOE3
- #define LED4_IE PORT_PTCIE_PTCIE3
- #define LED5 PORT_PTBD_PTBD4
- #define LED5_OE PORT_PTBOE_PTBOE4
- #define LED5_IE PORT_PTBIE_PTBIE4
- #define LED6 PORT_PTBD_PTBD5
- #define LED6_OE PORT_PTBOE_PTBOE5
- #define LED6_IE PORT_PTBIE_PTBIE5
- #define LED7 PORT_PTCD_PTCD4
- #define LED7_OE PORT_PTCOE_PTCOE4
- #define LED7_IE PORT_PTCIE_PTCIE4
- #define LED8 PORT_PTCD_PTCD5
- #define LED8_OE PORT_PTCOE_PTCOE5
- #define LED8_IE PORT_PTCIE_PTCIE5
- #define TSI_LED PORT_PTGD_PTCD0
- #define TSI_LED_OE PORT_PTGOE_PTCOE0
- #define TSI_LED_IE PORT_PTGIE_PTCIE0
- #define MTIM0_reset MTIM0_SC_TRST
- #define MTIM0_stop MTIM0_SC_TSTP
- #define MTIM0_overflow MTIM0_SC_TOF
- #define MTIM0_count MTIM0_CNT
- #define MTIM0_modulo MTIM0_MOD
- void initialize_CPU(void);
- void initialize_IO(void);
- void initialize_MTIM0(void);
- void initialize_TSI(void);
- void initialize_ADC(void);
- void show_SRS(void);
- #endif /* IO_DEFINITIONS_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement