> Pic14enh. devices has two config word at 0x8007 and 0x8008.I tried with the
> following ways: First try:unsigned short __at(_CONFIG1) config1Reg = 
> (_FCMEN_OFF
> & _IESO_OFF & _BOREN_ON & _CPD_ON & _CP_ON & _MCLRE_OFF & _PWRTE_ON & 
> _WDTE_OFF
> & _FOSC_HS);

Hi Tamas,

have you tried
unsigned short __at( 0x8007) config1Reg = (_FCMEN_OFF  & _IESO_OFF & _BOREN_ON 
& _CPD_ON & _CP_ON &  MCLRE_OFF & _PWRTE_ON & _WDTE_OFF & _FOSC_HS);
? I did not but it can work.

Be carefull to check all constants for the target MCU. In this case I would 
prefer "unsigned short __at( 0x8007) config1Reg = 0xAABB".

Vaclav

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to