diff options
Diffstat (limited to 'demos/Posix-GCC')
| -rw-r--r-- | demos/Posix-GCC/halconf.h | 34 | ||||
| -rw-r--r-- | demos/Posix-GCC/main.c | 18 | 
2 files changed, 23 insertions, 29 deletions
| diff --git a/demos/Posix-GCC/halconf.h b/demos/Posix-GCC/halconf.h index 7c6d8a758..682089a94 100644 --- a/demos/Posix-GCC/halconf.h +++ b/demos/Posix-GCC/halconf.h @@ -56,6 +56,13 @@  #endif
  /**
 + * @brief   Enables the EXT subsystem.
 + */
 +#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
 +#define HAL_USE_EXT                 FALSE
 +#endif
 +
 +/**
   * @brief   Enables the GPT subsystem.
   */
  #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
 @@ -98,6 +105,13 @@  #endif
  /**
 + * @brief   Enables the RTC subsystem.
 + */
 +#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
 +#define HAL_USE_RTC                 FALSE
 +#endif
 +
 +/**
   * @brief   Enables the SDC subsystem.
   */
  #if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
 @@ -185,6 +199,13 @@  /* MAC driver related settings.                                              */
  /*===========================================================================*/
 +/**
 + * @brief   Enables an event sources for incoming packets.
 + */
 +#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
 +#define MAC_USE_EVENTS              TRUE
 +#endif
 +
  /*===========================================================================*/
  /* MMC_SPI driver related settings.                                          */
  /*===========================================================================*/
 @@ -235,16 +256,9 @@  #endif
  /*===========================================================================*/
 -/* PAL driver related settings.                                              */
 -/*===========================================================================*/
 -
 -/*===========================================================================*/
 -/* PWM driver related settings.                                              */
 -/*===========================================================================*/
 -
 -/*===========================================================================*/
  /* SDC driver related settings.                                              */
  /*===========================================================================*/
 +
  /**
   * @brief   Number of initialization attempts before rejecting the card.
   * @note    Attempts are performed at 10mS intevals.
 @@ -316,10 +330,6 @@  #define SPI_USE_MUTUAL_EXCLUSION    TRUE
  #endif
 -/*===========================================================================*/
 -/* UART driver related settings.                                             */
 -/*===========================================================================*/
 -
  #endif /* _HALCONF_H_ */
  /** @} */
 diff --git a/demos/Posix-GCC/main.c b/demos/Posix-GCC/main.c index 543386a85..4904edec0 100644 --- a/demos/Posix-GCC/main.c +++ b/demos/Posix-GCC/main.c @@ -51,23 +51,7 @@ static void cmd_mem(BaseChannel *chp, int argc, char *argv[]) {  }
  static void cmd_threads(BaseChannel *chp, int argc, char *argv[]) {
 -  static const char *states[] = {
 -    "READY",
 -    "CURRENT",
 -    "SUSPENDED",
 -    "WTSEM",
 -    "WTMTX",
 -    "WTCOND",
 -    "SLEEPING",
 -    "WTEXIT",
 -    "WTOREVT",
 -    "WTANDEVT",
 -    "SNDMSGQ",
 -    "SNDMSG",
 -    "WTMSG",
 -    "WTQUEUE",
 -    "FINAL"
 -  };
 +  static const char *states[] = {THD_STATE_NAMES};
    Thread *tp;
    (void)argv;
 | 
