#define START_HSOSC_XOSC()
\ {
\ SLEEPCMD &= ~OSC_PD;
/* start 16MHz RCOSC & 32MHz XOSC */
\ while (!(SLEEPSTA & XOSC_STB));
/* wait for stable 32MHz XOSC */ \ }
#define STOP_HSOSC()
\ {
\ SLEEPCMD |= OSC_PD;
/* stop 16MHz RCOSC */
\ } /* ----------- Board Initialization ---------- */
#define HAL_BOARD_INIT()
\ {
\ /* Set to 16Mhz to set 32kHz OSC, then back to 32MHz */
\ START_HSOSC_XOSC();
\ SET_OSC_TO_HSOSC();
\ SET_32KHZ_OSC();
\ SET_OSC_TO_XOSC();
\ STOP_HSOSC();
i want to know the macro "START_HSOSC_XOSC()",i refer to the cc2541 usr guide ,but i don't relate this implement of "START_HSOSC_XOSC()" to cc2541 datasheet。 i even doublt that the clock operation is wrong !!!