Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI sample code compilation error out of the box #11

Open
LovelyA72 opened this issue Jan 18, 2022 · 0 comments
Open

SPI sample code compilation error out of the box #11

LovelyA72 opened this issue Jan 18, 2022 · 0 comments

Comments

@LovelyA72
Copy link

I am compiling a fresh SPI_Flash sample code from this repository.
The code is unmodified.
I am getting the following errors

Rebuild started: Project: SPI_Flash
Rebuild target 'SPI_Flash'
compiling SPI_Flash.c...
compiling Common.c...
..\..\Include\Function_Define.h(9): error C231: 'BIT': redefinition
..\..\Include\Function_Define.h(10): error C231: 'UINT8': redefinition
..\..\Include\Function_Define.h(11): error C141: syntax error near 'UINT16', expected 'hdata'
..\..\Include\Function_Define.h(12): error C141: syntax error near 'UINT32', expected 'hdata'
..\..\Include\Function_Define.h(14): error C231: 'uint8_t': redefinition
..\..\Include\Function_Define.h(15): error C141: syntax error near 'uint16_t', expected 'hdata'
..\..\Include\Function_Define.h(16): error C141: syntax error near 'uint32_t', expected 'hdata'
..\..\Include\Function_Define.h(18): error C231: 'int8_t': redefinition
..\..\Include\Function_Define.h(19): error C141: syntax error near 'int16_t', expected 'hdata'
..\..\Include\Function_Define.h(20): error C141: syntax error near 'int32_t', expected 'hdata'
compiling Delay.c...
assembling STARTUP.A51...
Target not created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant