STM32F410CBU6 on-chip UART6 module class implementation file.
More...
#include <string.h>
#include <ctype.h>
#include "STM32F4xx.h"
#include "System_Resource.h"
#include "Anvilex_Library.h"
#include "UART6_STM32F410CBU6.h"
|
#define | __DIV_SAMPLING16(_PCLK_, _BAUD_) (((_PCLK_)*25)/(4*(_BAUD_))) |
|
#define | __DIVMANT_SAMPLING16(_PCLK_, _BAUD_) (__DIV_SAMPLING16((_PCLK_), (_BAUD_))/100) |
|
#define | __DIVFRAQ_SAMPLING16(_PCLK_, _BAUD_) (((__DIV_SAMPLING16((_PCLK_), (_BAUD_)) - (__DIVMANT_SAMPLING16((_PCLK_), (_BAUD_)) * 100)) * 16 + 50) / 100) |
|
#define | __UART_BRR_SAMPLING16(_PCLK_, _BAUD_) ((__DIVMANT_SAMPLING16((_PCLK_), (_BAUD_)) << 4)|(__DIVFRAQ_SAMPLING16((_PCLK_), (_BAUD_)) & 0x0F)) |
|
#define | __DIV_SAMPLING8(_PCLK_, _BAUD_) (((_PCLK_)*25)/(2*(_BAUD_))) |
|
#define | __DIVMANT_SAMPLING8(_PCLK_, _BAUD_) (__DIV_SAMPLING8((_PCLK_), (_BAUD_))/100) |
|
#define | __DIVFRAQ_SAMPLING8(_PCLK_, _BAUD_) (((__DIV_SAMPLING8((_PCLK_), (_BAUD_)) - (__DIVMANT_SAMPLING8((_PCLK_), (_BAUD_)) * 100)) * 16 + 50) / 100) |
|
#define | __UART_BRR_SAMPLING8(_PCLK_, _BAUD_) ((__DIVMANT_SAMPLING8((_PCLK_), (_BAUD_)) << 4)|(__DIVFRAQ_SAMPLING8((_PCLK_), (_BAUD_)) & 0x0F)) |
|
STM32F410CBU6 on-chip UART6 module class implementation file.
- Attention
- No special attention requered.
- Copyright
- (C) 2017-2020 ANVILEX LLC $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Targets/STM32F410CBU6/UART6_STM32F410CBU6.cpp $
- Revision
- 2279
- Date
- 2020-12-12 15:14:34 +0500 (Sa, 12 Dez 2020)
- Author
- minch
◆ __DIV_SAMPLING16
#define __DIV_SAMPLING16 |
( |
|
_PCLK_, |
|
|
|
_BAUD_ |
|
) |
| (((_PCLK_)*25)/(4*(_BAUD_))) |
◆ __DIV_SAMPLING8
#define __DIV_SAMPLING8 |
( |
|
_PCLK_, |
|
|
|
_BAUD_ |
|
) |
| (((_PCLK_)*25)/(2*(_BAUD_))) |
◆ __DIVFRAQ_SAMPLING16
◆ __DIVFRAQ_SAMPLING8
◆ __DIVMANT_SAMPLING16
#define __DIVMANT_SAMPLING16 |
( |
|
_PCLK_, |
|
|
|
_BAUD_ |
|
) |
| (__DIV_SAMPLING16((_PCLK_), (_BAUD_))/100) |
◆ __DIVMANT_SAMPLING8
#define __DIVMANT_SAMPLING8 |
( |
|
_PCLK_, |
|
|
|
_BAUD_ |
|
) |
| (__DIV_SAMPLING8((_PCLK_), (_BAUD_))/100) |
◆ __UART_BRR_SAMPLING16
◆ __UART_BRR_SAMPLING8