Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 3634

编译报 identifier "UPCS0" is undefined

$
0
0

最近购买了一个ADS1x9xEVM评估板,编译源代码工程时,报在identifier "UPCS0" is undefined。

评估板的MCU为 ,MSP430f5529

报错文件为usb.c 

BYTE USB_enable()

{

.....

 if (USB_PLL_XT == 2)
    {
        USBPLLCTL = UPCS0 + UPFDEN + UPLLEN;// Select XT2 as Ref / Select PLL for USB / Discrim. on, enable PLL
    }
    else
    {
        USBPLLCTL = UPFDEN + UPLLEN;        // Select XT1 as Ref / Select PLL for USB / Discrim. on, enable PLL
    }

....

}

我搜索了一下在include的文件msp430f5529.h里面能够找到UPFDEN , UPLLEN的定义,但是找不到UPCS0定义。

请问该UPCS0需要怎么定义?或者是否需要哪个头文件?谢谢!


Viewing all articles
Browse latest Browse all 3634

Trending Articles