cc2530看门狗1

#include "iocc2530.h"
#define LED1 P1_0
void led_init(void){
    P1SEL &=~ 0X01;
    P1DIR |=  0X01;
}
void systemsz(void){
    char a,b;  
    CLKCONCMD &=0X80;
        a=CLKCONCMD;
    do{
        b=CLKCONSTA;
    }while(a!=b);
}
void kan_init(void){
    WDCTL =0X00;
    WDCTL |=0X08;
}
void yc(int a){
    int i,j;
    for(i=0;i

你可能感兴趣的:(单片机)