mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
NSH library: Allow USB trace without a USB console
This commit is contained in:
@@ -46,6 +46,9 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
|
#define SAM_PWM_NCHANNELS 4 /* Four channels numbered 0..3 */
|
||||||
|
|
||||||
/* PWM Register Offsets *************************************************************/
|
/* PWM Register Offsets *************************************************************/
|
||||||
|
|
||||||
#define SAM_PWM_CLK_OFFSET 0x0000 /* PWM Clock Register */
|
#define SAM_PWM_CLK_OFFSET 0x0000 /* PWM Clock Register */
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ static int do_composite_archinitialize(void)
|
|||||||
|
|
||||||
int composite_archinitialize(void)
|
int composite_archinitialize(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_NSH_ARCHINIT)
|
#if defined(CONFIG_NSH_ARCHINIT) && defined(CONFIG_NSH_BUILTIN_APPS)
|
||||||
return OK;
|
return OK;
|
||||||
#else
|
#else
|
||||||
return do_composite_archinitialize();
|
return do_composite_archinitialize();
|
||||||
|
|||||||
Reference in New Issue
Block a user