STM32F0xx Standard Peripherals Firmware Library
|
STM32F0xx_StdPeriph_Examples/I2C/I2C_TwoBoards/main.c File Reference
Main program body. More...
#include "main.h"
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 = 1, 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 | |
uint8_t | Buffer_Check (uint8_t *pBuffer, uint8_t *pBuffer1, uint8_t *pBuffer2, uint8_t *pBuffer3, uint16_t BufferLength) |
Compares a buffer to a list of buffers. | |
TestStatus | Buffer_Compare (uint8_t *pBuffer1, uint8_t *pBuffer2, uint16_t BufferLength) |
Compares two buffers. | |
int | main (void) |
Main program. | |
void | Switch_Color (void) |
Swap the color of the line on LCD. | |
void | Switch_ErrorColor (void) |
Swap the color of the line on LCD. | |
static void | TIM17_Config (uint32_t Period) |
Configures TIM17 and associated resources to generate an update interrupt. | |
static void | TIM6_Config (void) |
Configures TIM6 and associated resources to generate an update interrupt each 50 ms. | |
Variables | |
__IO uint32_t | ActionState = ACTION_NONE |
uint32_t | BufferSize = BUFFER_SIZE |
uint8_t | Color = 0 |
uint32_t | Divider = 1 |
uint32_t | PeriodicValue = 15000 |
__IO uint32_t | RecieverMode = 0 |
CPAL_TransferTypeDef | sRxStructure |
CPAL_TransferTypeDef | sTxStructure |
__IO uint32_t | TransmitMode = 0 |
uint8_t | tRxBuffer [MAX_BUFF_SIZE] |
const uint8_t | tSignal1 [] = "STM32 CPAL 2xBoards Example: Signal Signal1" |
const uint8_t | tSignal2 [] = "STM32 CPAL 2xBoards Example: Signal Signal2" |
const uint8_t | tStateSignal [] = "STM32 CPAL 2xBoards Example: Signal State " |
Detailed Description
Main program body.
- Author:
- MCD Application Team
- Version:
- V1.4.0
- Date:
- 24-July-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 STM32F0xx_StdPeriph_Examples/I2C/I2C_TwoBoards/main.c.