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.
Revision 0:4b715176f9aa, committed 2017-04-08
- Comitter:
- jamrootz
- Date:
- Sat Apr 08 21:07:02 2017 +0000
- Child:
- 1:98f07443b933
- Commit message:
- Updated to transfer each byte
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Apr 08 21:07:02 2017 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" + +Serial pc(USBTX, USBRX); + +#define POWER_PCONP (*(volatile unsigned int *)(0x400FC0C4)) +#define CAN_SRAM_SIZE 0x4000 + +int main() { + //Power on the CAN peripheral + POWER_PCONP |= 0x00006000; + + //Start collecting at the first address in CAN SRAM (16K) + volatile char *dat = (volatile char *)0x40038000; + + //pc.printf("Sending CAN SRAM contents\r\n"); + + for(int i=0; i < CAN_SRAM_SIZE; i++) { + //pc.printf("A%d",i); + pc.putc((char) *dat); + dat++; + } + +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Apr 08 21:07:02 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7e07b6fb45cf \ No newline at end of file