You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.3 KiB
30 lines
1.3 KiB
#if defined __ICC8051__
|
|
|
|
#define AXCOMPILER_H
|
|
# define SBIT(name, addr, bit)
|
|
# define SFR(name, addr)
|
|
# define SFRX(name, addr) __no_init __root volatile unsigned char __xdata name @ addr ;
|
|
# define SFR16(name, addr)
|
|
# define SFR16E(name, fulladdr)
|
|
# define SFR16LEX(name, addr)
|
|
# define SFR32(name, fulladdr)
|
|
# define SFR32E(name, fulladdr)
|
|
|
|
#include "ax8052.h"
|
|
|
|
SFRX(REF, 0x7F16) /* Reference Tuning */
|
|
SFRX(POWCTRL0, 0x7F10) /* Power Control 0 */
|
|
SFRX(POWCTRL1, 0x7F11) /* Power Control 1 */
|
|
SFRX(ADCCALG00GAIN0, 0x7030) /* ADC Calibration Range 00 Gain Low Byte */
|
|
SFRX(ADCCALG00GAIN1, 0x7031) /* ADC Calibration Range 00 Gain High Byte */
|
|
SFRX(ADCCALG01GAIN0, 0x7032) /* ADC Calibration Range 01 Gain Low Byte */
|
|
SFRX(ADCCALG01GAIN1, 0x7033) /* ADC Calibration Range 01 Gain High Byte */
|
|
SFRX(ADCCALG10GAIN0, 0x7034) /* ADC Calibration Range 10 Gain Low Byte */
|
|
SFRX(ADCCALG10GAIN1, 0x7035) /* ADC Calibration Range 10 Gain High Byte */
|
|
SFRX(ADCCALTEMPGAIN0, 0x7038) /* ADC Calibration Temperature Gain Low Byte */
|
|
SFRX(ADCCALTEMPGAIN1, 0x7039) /* ADC Calibration Temperature Gain High Byte */
|
|
SFRX(ADCCALTEMPOFFS0, 0x703A) /* ADC Calibration Temperature Offset Low Byte */
|
|
SFRX(ADCCALTEMPOFFS1, 0x703B) /* ADC Calibration Temperature Offset High Byte */
|
|
|
|
#endif
|