1 #ifndef _HAL_DIV_H_ 2 #define _HAL_DIV_H_ 3 4 #include "ACM32Fxx_HAL.h" 5 6 /************************************************************************ 7 * function : hardwareNN_Div_q32 8 * Description: Computes q = b div c and a = b mod c. 9 cDigits must be 1, and *c < 0xffffffff 10 * input : UINT32 *b -- input b databuffer 11 UINT32 *c -- input c databuffer 12 * output: UINT32 *q -- quotient of result 13 UINT32 *a -- remainder of result 14 15 * return: none 16 ************************************************************************/ 17 void HAL_DIV_Q32(UINT32 *q,UINT32 *a,UINT32 *b,UINT32 bDigits,UINT32 *c,UINT32 cDigits); 18 19 20 21 #endif 22 23 24 25