標題: 我的第一個stm8s207c8程序 [打印本頁]

作者: 阿拉丁ZHUXG    時間: 2017-10-22 21:00
標題: 我的第一個stm8s207c8程序
#include  "ggwj.h"

void BSP_Configuration(void);

int main(void)
{
  BSP_Configuration();  //先運行初始化程序

  while(1)
  {
    GZD_Demol();
    //FMQ_Demo();
    //SB_Demo();
  }

  }


void BSP_Configuration(void)     //初始化程序
{


//配置內部時鐘   1分頻
//CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV2);
//CLK_HSECmd(ENABLE);
//CLK_CANConfig(CLK_CANDIVIDER_2);


  GZD_Init();
  //FMQ_Init();
  //SB_Init();

}

/*斷言函數(shù):它的作用是在編程的過程中為程序提供參數(shù)檢查*/
#ifdef USE_FULL_ASSERT
void assert_failed(u8* file,u32 line)
{
  while(1)
  {

  }
}
#endif






歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1