2018年1月11日 星期四

暫存器處理

#define ARM_SAI_MODE_Pos   8
#define ARM_SAI_MODE_Msk   (1U << ARM_SAI_MODE_Pos)


 /* Get HCLK prescaler */
  tmp = RCC->CFGR & RCC_CFGR_HPRE;
  tmp = tmp >> 4;
  presc = APBAHBPrescTable[tmp];

static __I uint8_t APBAHBPrescTable[16] = {0, 0, 0, 0, 1, 2, 3, 4, 1, 2, 3, 4, 6, 7, 8, 9};

沒有留言:

張貼留言