2022-08-25 12:01 PM
i´m new here, and i´m starting to work with STM32F103C8 (blupill)
I´ve created a very simple code. It´s shown in image down.
The problem is:
The editor doen´t recognize the variable type int8_t and int32_t (probably int16_t too).
And when a try to build the code, the editor show me a message: adc0 undeclared.
I don´t know how to resolve this. I´ve tried to declare stdio, nothing changes.
Does anyone could ,pelase, help me??
Thanksss
Solved! Go to Solution.
2022-08-25 01:07 PM
How well do you know the C language?
When you declare a variable, you do so by specifying its type and the name you give it:
int8_t counter;
char c;
You can assign values to these variables
counter = counter + 1;
c = 't';
You can declare at the same time as assigning
int32_t total = 0;
2022-08-25 12:37 PM
You need the line
#include <stdint.h>
somewhere near the top of your file
2022-08-25 12:41 PM
i've tried it now, But the mistake persists.
:(
2022-08-25 01:07 PM
How well do you know the C language?
When you declare a variable, you do so by specifying its type and the name you give it:
int8_t counter;
char c;
You can assign values to these variables
counter = counter + 1;
c = 't';
You can declare at the same time as assigning
int32_t total = 0;
2022-08-25 01:10 PM
Oh. I dind´t see that. Thanks