mirror of
https://github.com/apache/nuttx.git
synced 2026-08-12 07:55:32 +00:00
Fix compiler errors in up_itm_syslog.c. From Pierre-Noel Bouteville
This commit is contained in:
parent
87a45f7f2f
commit
bf565dc94b
1 changed files with 8 additions and 3 deletions
|
|
@ -41,9 +41,14 @@
|
|||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <nuttx/syslog/syslog.h>
|
||||
|
||||
#include "nvic.h"
|
||||
#include "itm.h"
|
||||
#include "tpi.h"
|
||||
#include "dwt.h"
|
||||
#include "up_arch.h"
|
||||
#include "itm_syslog.h"
|
||||
|
||||
|
|
@ -94,7 +99,7 @@ void itm_syslog_initialize(void)
|
|||
|
||||
regval = getreg32(NVIC_DEMCR);
|
||||
regval |= NVIC_DEMCR_TRCENA;
|
||||
putreg32(putreg, NVIC_DEMCR);
|
||||
putreg32(regval, NVIC_DEMCR);
|
||||
|
||||
putreg32(0xc5acce55,ITM_LAR);
|
||||
putreg32(0, ITM_TER);
|
||||
|
|
@ -125,13 +130,13 @@ void itm_syslog_initialize(void)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
int syslog_putc(int ch);
|
||||
int syslog_putc(int ch)
|
||||
{
|
||||
/* ITM enabled */
|
||||
|
||||
if ((getreg32(ITM_TCR) & ITM_TCR_ITMENA_Msk) == 0)
|
||||
{
|
||||
return;
|
||||
return EOF;
|
||||
}
|
||||
|
||||
/* ITM Port "CONFIG_ARMV7M_ITMSYSLOG_PORT" enabled */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue