with gcc-arm-none-eabi-7-2017-q4-major the default typedef of time_t is "long long int". older releases typedef time_t as "long int". mbed lib cannot handle this correctly This applies to exported projects as "GCC (ARM-Embedded)"

Dependencies:   mbed

Fork of USBSerial_HelloWorld by Samuel Mokrani

Committer:
samux
Date:
Thu Nov 17 12:01:22 2011 +0000
Revision:
4:95c491d36524
Parent:
0:a3e641b0dfc2
Child:
5:ee94acbf45df

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
samux 0:a3e641b0dfc2 1 #include "mbed.h"
samux 0:a3e641b0dfc2 2 #include "USBSerial.h"
samux 0:a3e641b0dfc2 3
samux 0:a3e641b0dfc2 4 //Virtual serial port over USB
samux 0:a3e641b0dfc2 5 USBSerial serial;
samux 0:a3e641b0dfc2 6
samux 4:95c491d36524 7 Serial pc(USBTX, USBRX);
samux 4:95c491d36524 8
samux 0:a3e641b0dfc2 9 int main(void) {
samux 0:a3e641b0dfc2 10
samux 0:a3e641b0dfc2 11 while(1)
samux 0:a3e641b0dfc2 12 {
samux 4:95c491d36524 13 serial.print("I am a virtual serial port!\r\n");
samux 0:a3e641b0dfc2 14 wait(1);
samux 0:a3e641b0dfc2 15 }
samux 0:a3e641b0dfc2 16 }