-
-
Notifications
You must be signed in to change notification settings - Fork 0
Arduino
Georgi Angelov edited this page Feb 25, 2023
·
16 revisions
Can support all MZ chips ... for now only EFMxxx series
( I don't have any other chips and it takes time )
It should work like a normal Arduino. There are two differences
- some functions ( as itoa ) are Microchip "standard"
- The platform is called "Arduino" ( capitalized )
when using libraries from the web, Check and Edit
library.properties ... architectures=Arduino ( capitalized )
Miliseconds software timers, executed with loop()
void timer_cb(struct swTimer_t *timer){
digitalToggle( LED );
}
swTimer_t T = swTimer(1000 ms, ONESHOT or PERIODIC, timer_cb);
swTimerStart( T );
custom_module = $MODULES/common/md-freertos.py
setup() & loop() is executed in OS main task
Default ARDUINO_STACK_SIZE = ( 10 * 1024 ) or pre-define it