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.
Fork of DACandticker_sample by
Revision 2:e27fd3b65155, committed 2018-01-24
- Comitter:
- WilliamMarshQMUL
- Date:
- Wed Jan 24 22:56:54 2018 +0000
- Parent:
- 1:18e0f8aef32f
- Commit message:
- Update for mbed 5
Changed in this revision
diff -r 18e0f8aef32f -r e27fd3b65155 main.cpp --- a/main.cpp Wed Feb 01 13:53:26 2017 +0000 +++ b/main.cpp Wed Jan 24 22:56:54 2018 +0000 @@ -3,10 +3,11 @@ // Periodically write to the AnalogOut to create a sine wave // Alternate between two fixed frequencies every 5 sec // +// Updated for mbed 5 + // THIS VERSION HAS NO DEBUGGING CODE #include "mbed.h" -#include "rtos.h" #include "sineTable.h" Ticker tick ; // Creates periodic interrupt @@ -14,7 +15,7 @@ // Function called periodically // Write new value to AnalogOut -volatile int index = 0 ; // this variable is not just for debugging!! +volatile int index = 0 ; // index into array of sin values void writeAout() { ao.write_u16(sine[index]) ; index = (index + 1) % 64 ;
diff -r 18e0f8aef32f -r e27fd3b65155 mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Wed Jan 24 22:56:54 2018 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#96d9a00d0a1d25095b330095fa81c40f7741777c
diff -r 18e0f8aef32f -r e27fd3b65155 mbed-rtos.lib --- a/mbed-rtos.lib Wed Feb 01 13:53:26 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#58563e6cba1e
diff -r 18e0f8aef32f -r e27fd3b65155 mbed.bld --- a/mbed.bld Wed Feb 01 13:53:26 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/ad3be0349dc5 \ No newline at end of file