STM32duino supported data types

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
Pawalec
Posts: 1
Joined: Thu Nov 16, 2023 4:59 pm

STM32duino supported data types

Post by Pawalec »

Hi, I have a question, about using 64-bit lenght data types. I'm using Arduino IDE (1.8.19), and if I put a declaration like this:
uint64 bigNumber=0;
it is compiling, but if I have:


unsigned int number1=0;
uint64 bigNumber=0;
uint64_t number2=0;
void setup() {
Serial.begin(9600);
}

void loop() {
bigNumber=micros()*100;
number1=micros()*100;
number2=bigNumber/number1;
Serial.print(bigNumber);
Serial.print(" ");
Serial.print(number1);
Serial.print(" ");
Serial.println(number2);
delay(100);
}

Printed numbers goes to 4.2B and goes back to 0. I found that Serial print could only print 32bit, so that's why I add number2, and it shows always 0 or 1. I suppose, if it is compiling, uint64 data type exists, but how can I find out about this?
I don't really need it, but I would like to know, how it is?
Post Reply

Return to “IDE's”