Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mbed_functions.cpp
00001 // mbed_functions.cpp 00002 00003 #include "header.h" 00004 /***************************************************** 00005 subroutines - commonly used functions 00006 *****************************************************/ 00007 00008 /*** short delay */ 00009 void delay_s(void){ 00010 int j; /* loop variable */ 00011 00012 for(j=0;j<2000;j++){ 00013 asm("NOP"); 00014 } 00015 } 00016 /*** long delay */ 00017 void delay_l(void){ 00018 int i; /* loop variable */ 00019 00020 for(i=0;i<500;i++){ 00021 delay_s(); 00022 } 00023 }
Generated on Fri Jul 15 2022 11:04:51 by
1.7.2