STM32F429 on-chip UART7 module class implementation file.
More...
#include <string.h>
#include <ctype.h>
#include "stm32f429xx.h"
#include "System_Resource.h"
#include "Anvilex_Library.h"
#include "UART7_STM32F429.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)) |
|
STM32F429 on-chip UART7 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/STM32F429/UART7_STM32F429.cpp $
- Revision
- 2779
- Date
- 2021-07-07 11:42:44 +0500 (Mi, 07 Jul 2021)
- Author
- ggavrituhin
◆ __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