STM8S/A Standard Peripherals Firmware Library
|
This file contains the main function for a basic communication between UART1 and UART3 using interrupts. More...
Go to the source code of this file.
Enumerations | |
enum | TestStatus { FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED } |
Functions | |
TestStatus | Buffercmp (uint8_t *pBuffer1, uint8_t *pBuffer2, uint16_t BufferLength) |
Compares two buffers. | |
static void | CLK_Config (void) |
Configure system clock to run at 16Mhz. | |
uint8_t | GetVar_NbrOfDataToRead1 (void) |
Returns NbrOfDataToRead1 value. | |
uint8_t | GetVar_NbrOfDataToRead2 (void) |
Returns NbrOfDataToRead2 value. | |
uint8_t | GetVar_NbrOfDataToTransfer1 (void) |
Returns NbrOfDataToTransfer1 value. | |
uint8_t | GetVar_NbrOfDataToTransfer2 (void) |
Returns NbrOfDataToTransfer2 value. | |
uint8_t | GetVar_RxCounter1 (void) |
Returns RxCounter1 value. | |
uint8_t | GetVar_RxCounter2 (void) |
Returns RxCounter2 value. | |
uint8_t | GetVar_TxCounter1 (void) |
Returns TxCounter1 value. | |
uint8_t | GetVar_TxCounter2 (void) |
Returns TxCounter2 value. | |
uint8_t | IncrementVar_RxCounter1 (void) |
Increments RxCounter1 variable and return its value. | |
uint8_t | IncrementVar_RxCounter2 (void) |
Increments RxCounter2 variable and return its value. | |
uint8_t | IncrementVar_TxCounter1 (void) |
Increments TxCounter1 variable and return its value. | |
uint8_t | IncrementVar_TxCounter2 (void) |
Increments TxCounter2 variable and return its value. | |
void | main (void) |
Main program. | |
static void | UART_Config (void) |
UART1 and UART3 Configuration for interrupt communication. | |
Variables | |
uint8_t | NbrOfDataToRead1 = RxBufferSize1 |
uint8_t | NbrOfDataToRead2 = RxBufferSize2 |
uint8_t | NbrOfDataToTransfer1 = TxBufferSize1 |
uint8_t | NbrOfDataToTransfer2 = TxBufferSize2 |
uint8_t | RxBuffer1 [RxBufferSize1] |
uint8_t | RxBuffer2 [RxBufferSize2] |
__IO uint8_t | RxCounter1 = 0x00 |
__IO uint8_t | RxCounter2 = 0x00 |
__IO TestStatus | TransferStatus1 = FAILED |
__IO TestStatus | TransferStatus2 = FAILED |
uint8_t | TxBuffer1 [] = "UART1 Interrupt Example: UART1 -> UART3 using Interrupt" |
uint8_t | TxBuffer2 [] = "UART1 Interrupt Example: UART3 -> UART1 using Interrupt" |
__IO uint8_t | TxCounter1 = 0x00 |
__IO uint8_t | TxCounter2 = 0x00 |
Detailed Description
This file contains the main function for a basic communication between UART1 and UART3 using interrupts.
- Author:
- MCD Application Team
- Version:
- V2.2.0
- Date:
- 30-September-2014
- Attention:
© COPYRIGHT 2014 STMicroelectronics
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file STM8S_StdPeriph_Examples/UART1/UART1_Interrupt/main.c.