From 08b28e29c39e3068b4b7de8c3f43aec2713243d9 Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Sat, 22 Jan 2022 00:35:04 -0500 Subject: [PATCH] v1.2.0 to fix `multiple-definitions linker error ### Releases v1.2.0 1. Fix `multiple-definitions` linker error. Drop `src_cpp` and `src_h` directories 2. Add example [multiFileProject](examples/multiFileProject) to demo for multiple-file project. 3. Optimize library code by using `reference-passing` instead of `value-passing` 4. Update all examples --- examples/multiFileProject/multiFileProject.cpp | 5 +++-- examples/multiFileProject/multiFileProject.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/multiFileProject/multiFileProject.cpp b/examples/multiFileProject/multiFileProject.cpp index 87ad62e..ac73e94 100644 --- a/examples/multiFileProject/multiFileProject.cpp +++ b/examples/multiFileProject/multiFileProject.cpp @@ -1,9 +1,10 @@ /**************************************************************************************************************************** multiFileProject.cpp - For Teensy boards + RPi_Pico_ISR_Timer-Impl.h + For RP2040-based boards such as RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040. Written by Khoi Hoang - Built by Khoi Hoang https://github.com/khoih-prog/Teensy_TimerInterrupt + Built by Khoi Hoang https://github.com/khoih-prog/RPI_PICO_TimerInterrupt Licensed under MIT license Now even you use all these new 16 ISR-based timers,with their maximum interval practically unlimited (limited only by diff --git a/examples/multiFileProject/multiFileProject.h b/examples/multiFileProject/multiFileProject.h index 6d4e091..b52b9a4 100644 --- a/examples/multiFileProject/multiFileProject.h +++ b/examples/multiFileProject/multiFileProject.h @@ -1,9 +1,10 @@ /**************************************************************************************************************************** multiFileProject.h - For Teensy boards + RPi_Pico_ISR_Timer-Impl.h + For RP2040-based boards such as RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040. Written by Khoi Hoang - Built by Khoi Hoang https://github.com/khoih-prog/Teensy_TimerInterrupt + Built by Khoi Hoang https://github.com/khoih-prog/RPI_PICO_TimerInterrupt Licensed under MIT license Now even you use all these new 16 ISR-based timers,with their maximum interval practically unlimited (limited only by