summaryrefslogtreecommitdiff
path: root/bsp/acm32/acm32f0x0-nucleo/libraries/HAL_Driver/Inc/HAL_DIV.h
blob: 86168307e2919fb159a30e46ce2cacfa066639a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _HAL_DIV_H_
#define _HAL_DIV_H_

#include "ACM32Fxx_HAL.h"

/************************************************************************
* function   : hardwareNN_Div_q32
* Description: Computes q = b div c and a = b mod c.
               cDigits must be 1, and *c < 0xffffffff
* input :      UINT32 *b -- input b databuffer
               UINT32 *c -- input c databuffer
* output:      UINT32 *q -- quotient of result
               UINT32 *a -- remainder of result

* return:      none
************************************************************************/
void HAL_DIV_Q32(UINT32 *q,UINT32 *a,UINT32 *b,UINT32 bDigits,UINT32 *c,UINT32 cDigits);



#endif