Upgrade to latest mbed-drivers version
This commit is contained in:
parent
91bbfb6fb7
commit
e87b04caed
6 changed files with 35 additions and 7 deletions
|
@ -244,8 +244,9 @@ int selftest( int argc, char *argv[] )
|
|||
#if defined(TARGET_LIKE_MBED)
|
||||
|
||||
#include "mbed/test_env.h"
|
||||
#include "minar/minar.h"
|
||||
|
||||
int main() {
|
||||
static void run() {
|
||||
/* Use 115200 bps for consistency with other examples */
|
||||
Serial pc(USBTX, USBRX);
|
||||
pc.baud(115200);
|
||||
|
@ -257,6 +258,10 @@ int main() {
|
|||
MBED_HOSTTEST_RESULT(selftest(0, NULL) == 0);
|
||||
}
|
||||
|
||||
void app_start(int, char*[]) {
|
||||
minar::Scheduler::postCallback(FunctionPointer0<void>(run).bind());
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue