bb_reg.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright 2010-2016 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. #ifndef _SOC_BB_REG_H_
  14. #define _SOC_BB_REG_H_
  15. /* Some of the baseband control registers.
  16. * PU/PD fields defined here are used in sleep related functions.
  17. */
  18. #define BBPD_CTRL (DR_REG_BB_BASE + 0x0054)
  19. #define BB_FFT_FORCE_PU (BIT(3))
  20. #define BB_FFT_FORCE_PU_M (BIT(3))
  21. #define BB_FFT_FORCE_PU_V 1
  22. #define BB_FFT_FORCE_PU_S 3
  23. #define BB_FFT_FORCE_PD (BIT(2))
  24. #define BB_FFT_FORCE_PD_M (BIT(2))
  25. #define BB_FFT_FORCE_PD_V 1
  26. #define BB_FFT_FORCE_PD_S 2
  27. #define BB_DC_EST_FORCE_PU (BIT(1))
  28. #define BB_DC_EST_FORCE_PU_M (BIT(1))
  29. #define BB_DC_EST_FORCE_PU_V 1
  30. #define BB_DC_EST_FORCE_PU_S 1
  31. #define BB_DC_EST_FORCE_PD (BIT(0))
  32. #define BB_DC_EST_FORCE_PD_M (BIT(0))
  33. #define BB_DC_EST_FORCE_PD_V 1
  34. #define BB_DC_EST_FORCE_PD_S 0
  35. #endif /* _SOC_BB_REG_H_ */