Removed explicit settings of serial pins.

git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11625 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
isiora 2018-03-07 21:02:48 +00:00
parent b8ea2cc8db
commit 4ed0abf52a
3 changed files with 5 additions and 8 deletions

View File

@ -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.
*/

View File

@ -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;
}

View File

@ -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.