1234567891011121314151617181920212223242526272829303132 |
- #ifndef _SDK_OVERRIDE_EAGLE_SOC_H_
- #define _SDK_OVERRIDE_EAGLE_SOC_H_
- #include_next "eagle_soc.h"
- #define GPIO_SIGMA_DELTA 0x00000068 //defined in gpio register.xls
- #define GPIO_SIGMA_DELTA_SETTING_MASK (0x00000001ff)
- #define GPIO_SIGMA_DELTA_ENABLE 1
- #define GPIO_SIGMA_DELTA_DISABLE (~GPIO_SIGMA_DELTA_ENABLE)
- #define GPIO_SIGMA_DELTA_MSB 16
- #define GPIO_SIGMA_DELTA_LSB 16
- #define GPIO_SIGMA_DELTA_MASK (0x00000001<<GPIO_SIGMA_DELTA_LSB)
- #define GPIO_SIGMA_DELTA_GET(x) (((x) & GPIO_SIGMA_DELTA_MASK) >> GPIO_SIGMA_DELTA_LSB)
- #define GPIO_SIGMA_DELTA_SET(x) (((x) << GPIO_SIGMA_DELTA_LSB) & GPIO_SIGMA_DELTA_MASK)
- #define GPIO_SIGMA_DELTA_TARGET_MSB 7
- #define GPIO_SIGMA_DELTA_TARGET_LSB 0
- #define GPIO_SIGMA_DELTA_TARGET_MASK (0x000000FF<<GPIO_SIGMA_DELTA_TARGET_LSB)
- #define GPIO_SIGMA_DELTA_TARGET_GET(x) (((x) & GPIO_SIGMA_DELTA_TARGET_MASK) >> GPIO_SIGMA_DELTA_TARGET_LSB)
- #define GPIO_SIGMA_DELTA_TARGET_SET(x) (((x) << GPIO_SIGMA_DELTA_TARGET_LSB) & GPIO_SIGMA_DELTA_TARGET_MASK)
- #define GPIO_SIGMA_DELTA_PRESCALE_MSB 15
- #define GPIO_SIGMA_DELTA_PRESCALE_LSB 8
- #define GPIO_SIGMA_DELTA_PRESCALE_MASK (0x000000FF<<GPIO_SIGMA_DELTA_PRESCALE_LSB)
- #define GPIO_SIGMA_DELTA_PRESCALE_GET(x) (((x) & GPIO_SIGMA_DELTA_PRESCALE_MASK) >> GPIO_SIGMA_DELTA_PRESCALE_LSB)
- #define GPIO_SIGMA_DELTA_PRESCALE_SET(x) (((x) << GPIO_SIGMA_DELTA_PRESCALE_LSB) & GPIO_SIGMA_DELTA_PRESCALE_MASK)
- #endif
|