STM32F0xx Standard Peripherals Firmware Library
|
Main program body. More...
#include "main.h"
Go to the source code of this file.
Defines | |
#define | BUFFER_SIZE (countof(CRCBuffer) - 1) |
#define | countof(a) (uint8_t)(sizeof(a) / sizeof(*(a))) |
Functions | |
static uint8_t | CRC_8BitsCompute (uint8_t *data, uint32_t size) |
Compute CRC value for input message. | |
static void | CRC_Config (uint8_t poly) |
Configure CRC peripheral to use 8-bit polynomials. | |
int | main (void) |
Main program. | |
Variables | |
uint8_t | ComputedCRC = 0 |
uint8_t | CRCBuffer [] = "STM32F0xx CortexM0 Device running on STM32072B-EVAL" |
uint8_t | ExpectedCRC = 0xAF |
Detailed Description
Main program body.
Header for main.c module.
- 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/CRC/CRC_8BitsCRCMessage/main.c.