Changeset e5a79e54 in rtems
- Timestamp:
- 07/17/15 05:56:09 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- b56ddbb
- Parents:
- db01d0c
- git-author:
- Sebastian Huber <sebastian.huber@…> (07/17/15 05:56:09)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (07/17/15 05:59:35)
- Location:
- c/src/lib/libcpu/powerpc/mpc83xx/i2c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.c
rdb01d0c re5a79e54 20 20 #include <bsp.h> 21 21 #include <bsp/irq.h> 22 #if defined( __GEN83xx_BSP_h)22 #if defined(LIBBSP_POWERPC_GEN83XX_BSP_H) 23 23 #include <mpc83xx/mpc83xx_i2cdrv.h> 24 24 #elif defined(LIBBSP_POWERPC_MPC55XXEVB_BSP_H) … … 32 32 #undef DEBUG 33 33 34 #if defined( __GEN83xx_BSP_h)34 #if defined(LIBBSP_POWERPC_GEN83XX_BSP_H) 35 35 #define I2CCR_MEN (1 << 7) /* module enable */ 36 36 #elif defined(LIBBSP_POWERPC_MPC55XXEVB_BSP_H) … … 79 79 int fdr_val; 80 80 } dividers[] ={ 81 #if defined( __GEN83xx_BSP_h)81 #if defined(LIBBSP_POWERPC_GEN83XX_BSP_H) 82 82 { 256,0x20 }, { 288,0x21 }, { 320,0x22 }, { 352,0x23 }, 83 83 { 384,0x00 }, { 416,0x01 }, { 448,0x25 }, { 480,0x02 }, … … 204 204 * clear IRQ flag 205 205 */ 206 #if defined( __GEN83xx_BSP_h)206 #if defined(LIBBSP_POWERPC_GEN83XX_BSP_H) 207 207 softc_ptr->reg_ptr->i2csr &= ~I2CSR_MIF; 208 208 #elif defined(LIBBSP_POWERPC_MPC55XXEVB_BSP_H) … … 377 377 * set control register to module enable 378 378 */ 379 #if defined( __GEN83xx_BSP_h)379 #if defined(LIBBSP_POWERPC_GEN83XX_BSP_H) 380 380 softc_ptr->reg_ptr->i2ccr = I2CCR_MEN; 381 381 #elif defined(LIBBSP_POWERPC_MPC55XXEVB_BSP_H) -
c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.h
rdb01d0c re5a79e54 25 25 #include <bsp.h> 26 26 27 #ifdef __GEN83xx_BSP_h27 #ifdef LIBBSP_POWERPC_GEN83XX_BSP_H 28 28 #include <mpc83xx/mpc83xx.h> 29 29 #endif
Note: See TracChangeset
for help on using the changeset viewer.