profor
Active member
Hello all,
probably question for @PaulStoffregen, is this delay in startup.c in ResetHandler funcrion really neccessary?
The thing is that i am using Teensy 4.0 as CAN gateway in my car and during 300 ms i will miss several important messages that needs to be forwarded to rest two CAN ports (i am using all three).
Can i change it down to let say 40 ms so Teensy will "get up" faster?
Thank You very much.
probably question for @PaulStoffregen, is this delay in startup.c in ResetHandler funcrion really neccessary?
Code:
startup_early_hook();
while (millis() < 20) ; // wait at least 20ms before starting USB
usb_init();
analog_init();
pwm_init();
tempmon_init();
startup_late_hook();
[B] while (millis() < 300) ; // wait at least 300ms before calling user code[/B]
//printf("before C++ constructors\n");
__libc_init_array();
//printf("after C++ constructors\n");
//printf("before setup\n");
main();
The thing is that i am using Teensy 4.0 as CAN gateway in my car and during 300 ms i will miss several important messages that needs to be forwarded to rest two CAN ports (i am using all three).
Can i change it down to let say 40 ms so Teensy will "get up" faster?
Thank You very much.