Advertisement
abdullahkahraman

Untitled

Jun 24th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.76 KB | None | 0 0
  1. /*
  2.  * io_definitions.h
  3.  *
  4.  *  Created on: Jun 19, 2013
  5.  *      Author: abdullah
  6.  */
  7. #include "derivative.h"
  8. #ifndef INIT_H_
  9. #define INIT_H_
  10.  
  11. #define touch_LED       PORT_PTGD_PTGD0
  12. #define touch_LED_OE    PORT_PTGOE_PTGOE0
  13. #define touch_LED_IE    PORT_PTGIE_PTGIE0
  14.  
  15. #define LED_ctrl        PORT_PTDD_PTDD0
  16. #define LED_ctrl_OE     PORT_PTDOE_PTDOE0
  17. #define LED_ctrl_IE     PORT_PTDIE_PTDIE0
  18. #define LED_ctrl_HDRVE  PORT_HDRVE_PTD0
  19.  
  20. #define LED1            PORT_PTCD_PTCD0
  21. #define LED1_OE         PORT_PTCOE_PTCOE0
  22. #define LED1_IE         PORT_PTCIE_PTCIE0
  23.  
  24. #define LED2            PORT_PTCD_PTCD1
  25. #define LED2_OE         PORT_PTCOE_PTCOE1
  26. #define LED2_IE         PORT_PTCIE_PTCIE1
  27.  
  28. #define LED3            PORT_PTCD_PTCD2
  29. #define LED3_OE         PORT_PTCOE_PTCOE2
  30. #define LED3_IE         PORT_PTCIE_PTCIE2
  31.  
  32. #define LED4            PORT_PTCD_PTCD3
  33. #define LED4_OE         PORT_PTCOE_PTCOE3
  34. #define LED4_IE         PORT_PTCIE_PTCIE3
  35.  
  36. #define LED5            PORT_PTBD_PTBD4
  37. #define LED5_OE         PORT_PTBOE_PTBOE4
  38. #define LED5_IE         PORT_PTBIE_PTBIE4
  39.  
  40. #define LED6            PORT_PTBD_PTBD5
  41. #define LED6_OE         PORT_PTBOE_PTBOE5
  42. #define LED6_IE         PORT_PTBIE_PTBIE5
  43.  
  44. #define LED7            PORT_PTCD_PTCD4
  45. #define LED7_OE         PORT_PTCOE_PTCOE4
  46. #define LED7_IE         PORT_PTCIE_PTCIE4
  47.  
  48. #define LED8            PORT_PTCD_PTCD5
  49. #define LED8_OE         PORT_PTCOE_PTCOE5
  50. #define LED8_IE         PORT_PTCIE_PTCIE5
  51.  
  52. #define TSI_LED         PORT_PTGD_PTCD0
  53. #define TSI_LED_OE      PORT_PTGOE_PTCOE0
  54. #define TSI_LED_IE      PORT_PTGIE_PTCIE0
  55.  
  56. #define MTIM0_reset     MTIM0_SC_TRST
  57. #define MTIM0_stop      MTIM0_SC_TSTP
  58. #define MTIM0_overflow  MTIM0_SC_TOF       
  59. #define MTIM0_count     MTIM0_CNT
  60. #define MTIM0_modulo    MTIM0_MOD
  61.  
  62. void initialize_CPU(void);
  63. void initialize_IO(void);
  64. void initialize_MTIM0(void);
  65. void initialize_TSI(void);
  66. void initialize_ADC(void);
  67. void show_SRS(void);
  68.  
  69. #endif /* IO_DEFINITIONS_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement