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.
Dependencies: Queue mbed-rtos mbed
main.cpp
- Committer:
- andreixc
- Date:
- 2017-07-27
- Revision:
- 0:265e6a986bf1
File content as of revision 0:265e6a986bf1:
#include "mbed.h"
#include "rtos.h"
#include "ringbuf.h"
#include "serial_bus.h"
#include "can_bus.h"
Serial pc(USBTX, USBRX);
DigitalOut reset(p21);
DigitalOut enable(p22);
DigitalOut reflash(p23);
void main() {
pc.baud(115200);
/* setup the system before using it */
reset = 0;
enable = 1;
reflash = 1;
wait(0.1);
reset = 1;
wait(2.0);
pc.printf("mbed boot up... \r\n");
start_serial_bus();
while(1)
{
Thread::wait(100);
}
}