mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:45:48 +01:00
Upgrade to latest mbed-drivers version
This commit is contained in:
parent
91bbfb6fb7
commit
e87b04caed
@ -173,8 +173,9 @@ static int example(void)
|
|||||||
#if defined(TARGET_LIKE_MBED)
|
#if defined(TARGET_LIKE_MBED)
|
||||||
|
|
||||||
#include "mbed/test_env.h"
|
#include "mbed/test_env.h"
|
||||||
|
#include "minar/minar.h"
|
||||||
|
|
||||||
int main() {
|
static void run() {
|
||||||
/* Use 115200 bps for consistency with other examples */
|
/* Use 115200 bps for consistency with other examples */
|
||||||
Serial pc(USBTX, USBRX);
|
Serial pc(USBTX, USBRX);
|
||||||
pc.baud(115200);
|
pc.baud(115200);
|
||||||
@ -186,6 +187,10 @@ int main() {
|
|||||||
MBED_HOSTTEST_RESULT(example() == 0);
|
MBED_HOSTTEST_RESULT(example() == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void app_start(int, char*[]) {
|
||||||
|
minar::Scheduler::postCallback(FunctionPointer0<void>(run).bind());
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
@ -933,8 +933,9 @@ int benchmark( int argc, char *argv[] )
|
|||||||
}
|
}
|
||||||
|
|
||||||
#include "mbed/test_env.h"
|
#include "mbed/test_env.h"
|
||||||
|
#include "minar/minar.h"
|
||||||
|
|
||||||
int main() {
|
static void run() {
|
||||||
/* Use 115200 bps for consistency with other examples */
|
/* Use 115200 bps for consistency with other examples */
|
||||||
Serial pc(USBTX, USBRX);
|
Serial pc(USBTX, USBRX);
|
||||||
pc.baud(115200);
|
pc.baud(115200);
|
||||||
@ -946,4 +947,8 @@ int main() {
|
|||||||
MBED_HOSTTEST_RESULT(benchmark(0, NULL) == 0);
|
MBED_HOSTTEST_RESULT(benchmark(0, NULL) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void app_start(int, char*[]) {
|
||||||
|
minar::Scheduler::postCallback(FunctionPointer0<void>(run).bind());
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* TARGET_LIKE_MBED */
|
#endif /* TARGET_LIKE_MBED */
|
||||||
|
@ -153,8 +153,9 @@ int example(void)
|
|||||||
#if defined(TARGET_LIKE_MBED)
|
#if defined(TARGET_LIKE_MBED)
|
||||||
|
|
||||||
#include "mbed/test_env.h"
|
#include "mbed/test_env.h"
|
||||||
|
#include "minar/minar.h"
|
||||||
|
|
||||||
int main() {
|
static void run() {
|
||||||
/* Use 115200 bps for consistency with other examples */
|
/* Use 115200 bps for consistency with other examples */
|
||||||
Serial pc(USBTX, USBRX);
|
Serial pc(USBTX, USBRX);
|
||||||
pc.baud(115200);
|
pc.baud(115200);
|
||||||
@ -166,6 +167,10 @@ int main() {
|
|||||||
MBED_HOSTTEST_RESULT(example() == 0);
|
MBED_HOSTTEST_RESULT(example() == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void app_start(int, char*[]) {
|
||||||
|
minar::Scheduler::postCallback(FunctionPointer0<void>(run).bind());
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
@ -244,8 +244,9 @@ int selftest( int argc, char *argv[] )
|
|||||||
#if defined(TARGET_LIKE_MBED)
|
#if defined(TARGET_LIKE_MBED)
|
||||||
|
|
||||||
#include "mbed/test_env.h"
|
#include "mbed/test_env.h"
|
||||||
|
#include "minar/minar.h"
|
||||||
|
|
||||||
int main() {
|
static void run() {
|
||||||
/* Use 115200 bps for consistency with other examples */
|
/* Use 115200 bps for consistency with other examples */
|
||||||
Serial pc(USBTX, USBRX);
|
Serial pc(USBTX, USBRX);
|
||||||
pc.baud(115200);
|
pc.baud(115200);
|
||||||
@ -257,6 +258,10 @@ int main() {
|
|||||||
MBED_HOSTTEST_RESULT(selftest(0, NULL) == 0);
|
MBED_HOSTTEST_RESULT(selftest(0, NULL) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void app_start(int, char*[]) {
|
||||||
|
minar::Scheduler::postCallback(FunctionPointer0<void>(run).bind());
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
@ -48,7 +48,7 @@ int main() {
|
|||||||
#define UNSAFE 0
|
#define UNSAFE 0
|
||||||
|
|
||||||
#include "mbed.h"
|
#include "mbed.h"
|
||||||
#include "mbed-net-lwip-eth/EthernetInterface.h"
|
#include "sal-iface-eth/EthernetInterface.h"
|
||||||
#include "mbed-net-sockets/TCPStream.h"
|
#include "mbed-net-sockets/TCPStream.h"
|
||||||
#include "minar/minar.h"
|
#include "minar/minar.h"
|
||||||
|
|
||||||
@ -495,8 +495,9 @@ int example_client() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#include "mbed/test_env.h"
|
#include "mbed/test_env.h"
|
||||||
|
#include "minar/minar.h"
|
||||||
|
|
||||||
int main() {
|
static void run() {
|
||||||
/* The default 9600 bps is too slow to print full TLS debug info and could
|
/* The default 9600 bps is too slow to print full TLS debug info and could
|
||||||
* cause the other party to time out. Select a higher baud rate for
|
* cause the other party to time out. Select a higher baud rate for
|
||||||
* printf(), regardless of debug level for the sake of uniformity. */
|
* printf(), regardless of debug level for the sake of uniformity. */
|
||||||
@ -510,4 +511,8 @@ int main() {
|
|||||||
MBED_HOSTTEST_RESULT(example_client() == 0);
|
MBED_HOSTTEST_RESULT(example_client() == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void app_start(int, char*[]) {
|
||||||
|
minar::Scheduler::postCallback(FunctionPointer0<void>(run).bind());
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* TARGET_LIKE_MBED */
|
#endif /* TARGET_LIKE_MBED */
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
"mbed": { "cmsis-core": "~0.2.3" }
|
"mbed": { "cmsis-core": "~0.2.3" }
|
||||||
},
|
},
|
||||||
"testTargetDependencies": {
|
"testTargetDependencies": {
|
||||||
"mbed": { "mbed-net-sockets": "~0.2.0" }
|
"mbed": {
|
||||||
|
"mbed-drivers": "~0.6.3",
|
||||||
|
"sockets": "~0.2.1"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user