Zoltan Hudak / millis

Dependents:   QSL_SimplePublish MAX30100_FirstTry MAX30100_FirstTry MAX30100_V04 ... more

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Thu Jun 02 16:37:40 2016 +0000
Parent:
0:b69f7e12064b
Child:
2:ac7586424119
Commit message:
rev. 01

Changed in this revision

millis.cpp Show annotated file Show diff for this revision Revisions of this file
millis.h Show annotated file Show diff for this revision Revisions of this file
--- a/millis.cpp	Thu Jun 02 12:41:04 2016 +0000
+++ b/millis.cpp	Thu Jun 02 16:37:40 2016 +0000
@@ -21,15 +21,15 @@
 
 volatile unsigned long  _millis;
 
-void millisStart(void){
+void millisStart(void) {
     SysTick_Config(SystemCoreClock / 1000);
 }
 
-void SysTick_Handler(void){
+extern "C" void SysTick_Handler(void) {
     _millis++;
 }
 
-unsigned long millis(void){
+extern "C" unsigned long millis(void) {
     return _millis;
 }
 
--- a/millis.h	Thu Jun 02 12:41:04 2016 +0000
+++ b/millis.h	Thu Jun 02 16:37:40 2016 +0000
@@ -19,7 +19,7 @@
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
   */
 
-void           millisStart(void);
-unsigned long  millis(void);
+extern "C" void          millisStart(void);
+extern "C" unsigned long millis(void);
 
 #endif