From 4ed0abf52a07720d22fdb8e2ff95ca06f8ebded5 Mon Sep 17 00:00:00 2001 From: isiora Date: Wed, 7 Mar 2018 21:02:48 +0000 Subject: [PATCH] Removed explicit settings of serial pins. git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11625 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c | 3 --- demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/tsclient.c | 2 +- demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/tsclient.h | 8 ++++---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c index 637501930..f5bbd49ec 100755 --- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c +++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c @@ -71,9 +71,6 @@ int main(void) { */ sdStart(&SD0, &sdcfg); - /* Redirecting UART0 RX on PD2 and UART0 TX on PD3. */ - palSetGroupMode(PIOB, PAL_PORT_BIT(26) | PAL_PORT_BIT(27), 0U, - PAL_SAMA_FUNC_PERIPH_C); /* * Creates the blinker thread. */ diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/tsclient.c b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/tsclient.c index b9dba0e66..776d0487e 100644 --- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/tsclient.c +++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/tsclient.c @@ -97,7 +97,7 @@ msg_t tsInvokeService(ts_service_t handle, ts_params_area_t data, while ((msg_t)result == SMC_SVC_INTR) { if (svc_nsec_time != 0) chThdSleepMicroseconds(svc_nsec_time); - result = tsInvoke1(handle, data, size, TS_GRANTED_TIMESLICE); + result = tsInvoke1(TS_HND_STQRY, handle, 0, TS_GRANTED_TIMESLICE); } return (msg_t)result; } diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/tsclient.h b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/tsclient.h index 6389bdb01..0bb605950 100644 --- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/tsclient.h +++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/tsclient.h @@ -34,7 +34,7 @@ /* Service registry errors as returned by smc.*/ #define SMC_SVC_OK MSG_OK /* No error.*/ -#define SMC_SVC_INTR (msg_t)-1 /* Service interrupted ( == MSG_TIMEOUT).*/ +#define SMC_SVC_INTR (msg_t)-1 /* Service interrupted.*/ #define SMC_SVC_NOENT (msg_t)-2 /* No existent service.*/ #define SMC_SVC_INVALID (msg_t)-3 /* Invalid service parameter(s).*/ #define SMC_SVC_BADH (msg_t)-4 /* Invalid service handle.*/ @@ -110,9 +110,9 @@ static inline int64_t tsInvoke0(ts_service_t handle, ts_params_area_t data, * @param[in] svc_datalen Size of the svc_data memory area. * @param[in] yieldtime The time yield to SEC service to run, in microsec. * - * @return A 64bit value. It is the OR of the 32bit service - * status combined with a 32bit event mask (in the - * hi-word). + * @return A 64bit value. It is composed by the 32bit service + * status in the lo-word with the 32bit event mask in + * the hi-word. * The retval values are returned in the lower word * as 32bit int. * @retval SMC_SVC_OK generic success value.