From a88a46a9a9bcbb92eeee57cf4447c8f96d0c30dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Czy=C5=BC?= <35401835+krawacik3@users.noreply.github.com> Date: Mon, 2 Dec 2019 12:33:24 +0100 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3e4d561..b3568c9 100644 --- a/README.md +++ b/README.md @@ -31,25 +31,25 @@ After including header in your code, you can use all features such as *set*, *re Syntax is quite simple and easy to use: ```cpp -operation(); +operation(); ``` ### Examples: -Set bit UE(USART enable) in USART1 Control Register 1: +In peripheral USART1: Set bit UE(USART enable) in CR1(Control Register 1): ```cpp set(); ``` -Reset bit UE(USART enable) in USART1 Control Register 1: +In peripheral USART1: Reset bit UE(USART enable) in CR1(Control Register 1): ```cpp reset(); ``` -Read Channel 1 Transfer Complete flag in DMA1 ISR Register: +In peripheral DMA1: Read TCIF1(Channel 1 Transfer Complete flag) in ISR: ```cpp bool transferComplete = read(); ``` -Set Memory address for DMA1 channel 2: +In peripheral DMA1: Set MA(Memory address) for CMAR2(DMA channel 2 memory address register): ```cpp set(0xDEADBEEF); ```