|
Forum Index : Microcontroller and PC projects : Pico CFunction header
| Author | Message | ||||
| GerryL Regular Member Joined: 24/01/2019 Location: AustraliaPosts: 41 |
This one may be for disco4now or matherp, but just wondering why in PicoCFunctions.h the function, #define putConsole(a,b) ((void(*)(int, int)) Vector_putConsole) (a,b) has 2 parameters of a and b. Other platforms such as the H7 and MMPlus only have the one parameter. Gerry |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1041 |
The second parameter determines whether the output is flushed immediately. This is the definition in Picomite void (putConsole)(int c, int flush) This bit of code does the flush. if (flush) { fflush(stdout); tud_cdc_write_flush(); } Picomites use the tinyUSB library so most likely why they have the extra parameter. F4 H7FotSF4xGT |
||||
| GerryL Regular Member Joined: 24/01/2019 Location: AustraliaPosts: 41 |
thanks Gerry |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |