Non-std character in CMSIS source code
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-12-28 10:05 AM
Posted on December 28, 2015 at 19:05
The boiler-plate header section of the .h files in the STM32 section of CMSIS have a stray non-standard ISO character the messes up standard unix / linux system tools, eg. grep , sed , etc.
This seems to be automatically reproduced in each file so this character is identically present in line 12 of every file in the CMSIS/ST/STM32F4xx directory. It is the apostrophe in ''peripheral's''. This odd character is causing a false end of line for sed and causing grep to see these files as ''binary'' and not display text matches. A test case is to try to find occurrences of a defined constant using grep:grep -R SPI_CR2_DS_2 .
The .h files are reported as being binary and search results are not displayed.
Expected result: the code base should use standard ISO characters accessible on all platforms.
/**
******************************************************************************
* @file stm32f407xx.h
* @author MCD Application Team
* @version V2.4.2
* @date 13-November-2015
* @brief CMSIS STM32F407xx Device Peripheral Access Layer Header File.
*
* This file contains:
* - Data structures and the address mapping for all peripherals
* - Peripheral's registers declarations and bits definition
* - Macros to access peripheral's registers hardware
*
******************************************************************************
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-12-29 5:40 AM
Posted on December 29, 2015 at 14:40
Hi mouser,
Thanks for bringing this feedback to our attention. It is reported internally.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-12-29 6:39 AM
Posted on December 29, 2015 at 15:39
There is also a lot of trailing whitespace in those files.
