训练营PLSR题目
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
431 B

  1. #ifndef __PSCARR_H__
  2. #define __PSCARR_H__
  3. #include "stdint.h"
  4. #include "math.h"
  5. extern const unsigned short ARRPSC[1098][2];
  6. extern uint16_t psc;
  7. extern uint16_t arr;
  8. void Frequency_Change_PSC_And_ARR(uint32_t Frequency, uint16_t* psc, uint16_t* arr); /* 输出要配置的PSC和ARR */
  9. uint8_t CalculatePSCARR(uint32_t desired_freq, uint32_t timer_clk, uint16_t max_arr,
  10. uint16_t *psc, uint16_t *arr);
  11. #endif