Merge branch 'fuse'
This commit is contained in:
commit
ea5d7810f6
@ -309,9 +309,9 @@ static void start_note(FAR struct tone_upperhalf_s *upper, uint8_t note)
|
||||
upper->tone.frequency = g_notes_freq[note - 1];
|
||||
#ifdef CONFIG_PWM_MULTICHAN
|
||||
upper->tone.channels[0].channel = upper->channel;
|
||||
upper->tone.channels[0].duty = 50;
|
||||
upper->tone.channels[0].duty = b16HALF;
|
||||
#else
|
||||
upper->tone.duty = 50;
|
||||
upper->tone.duty = b16HALF;
|
||||
#endif
|
||||
|
||||
/* REVISIT: Should check the return value */
|
||||
|
@ -87,6 +87,11 @@ namespace std
|
||||
|
||||
// Declared in legacy strings.h
|
||||
|
||||
using ::bcmp;
|
||||
using ::bcopy;
|
||||
using ::bzero;
|
||||
using ::index;
|
||||
using ::rindex;
|
||||
using ::ffs;
|
||||
using ::strcasecmp;
|
||||
using ::strncasecmp;
|
||||
|
@ -47,20 +47,28 @@
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
/* Compatibility definitions */
|
||||
|
||||
#define bcmp(b1,b2,len) memcmp(b1,b2,(size_t)len)
|
||||
#define bcopy(b1,b2,len) (void)memmove(b2,b1,len)
|
||||
#if !defined(CONFIG_HAVE_INLINE) && !defined(__cplusplus)
|
||||
/* Compatibility definitions
|
||||
*
|
||||
* Marked LEGACY in Open Group Base Specifications Issue 6/IEEE Std 1003.1-2004
|
||||
* Removed from Open Group Base Specifications Issue 7/IEEE Std 1003.1-2008
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_LIBC_ARCH_BZERO
|
||||
# define bzero(s,n) (void)memset(s,0,n)
|
||||
#endif
|
||||
# define bcmp(b1,b2,len) memcmp(b1,b2,(size_t)len)
|
||||
# define bcopy(b1,b2,len) (void)memmove(b2,b1,len)
|
||||
|
||||
#define index(s,c) strchr(s,c)
|
||||
#define rindex(s,c) strrchr(s,c)
|
||||
# ifndef CONFIG_LIBC_ARCH_BZERO
|
||||
# define bzero(s,n) (void)memset(s,0,n)
|
||||
# endif
|
||||
|
||||
# define index(s,c) strchr(s,c)
|
||||
# define rindex(s,c) strrchr(s,c)
|
||||
|
||||
#endif /* !CONFIG_HAVE_INLINE && !__cplusplus */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
@ -72,9 +80,51 @@ extern "C"
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
int ffs(int j);
|
||||
int strcasecmp(FAR const char *, FAR const char *);
|
||||
int strncasecmp(FAR const char *, FAR const char *, size_t);
|
||||
#if defined(CONFIG_HAVE_INLINE) || defined(__cplusplus)
|
||||
/* Compatibility inline functions.
|
||||
*
|
||||
* Marked LEGACY in Open Group Base Specifications Issue 6/IEEE Std 1003.1-2004
|
||||
* Removed from Open Group Base Specifications Issue 7/IEEE Std 1003.1-2008
|
||||
*/
|
||||
|
||||
static inline int bcmp(FAR const void *b1, FAR const void *b2, size_t len)
|
||||
{
|
||||
return memcmp(b1, b2, len);
|
||||
}
|
||||
|
||||
static inline void bcopy(FAR const void *b1, FAR void *b2, size_t len)
|
||||
{
|
||||
(void)memmove(b1, b2, len);
|
||||
}
|
||||
|
||||
#ifndef CONFIG_LIBC_ARCH_BZERO
|
||||
static inline void bzero(FAR void *s, size_t len)
|
||||
{
|
||||
(void)memset(s, 0, len);
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline FAR char *index(FAR const char *s, int c)
|
||||
{
|
||||
return strchr(s, c);
|
||||
}
|
||||
|
||||
static inline FAR char *rindex(FAR const char *s, int c)
|
||||
{
|
||||
return strrchr(s, c);
|
||||
}
|
||||
#endif /* CONFIG_HAVE_INLINE || __cplusplus */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_LIBC_ARCH_BZERO
|
||||
void bzero(FAR void *s, size_t len);
|
||||
#endif
|
||||
int ffs(int j);
|
||||
int strcasecmp(FAR const char *, FAR const char *);
|
||||
int strncasecmp(FAR const char *, FAR const char *, size_t);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
|
@ -150,7 +150,7 @@ int pthread_mutex_lock(FAR pthread_mutex_t *mutex)
|
||||
|
||||
ret = pthread_takesemaphore((FAR sem_t *)&mutex->sem);
|
||||
|
||||
/* If we succussfully obtained the semaphore, then indicate
|
||||
/* If we successfully obtained the semaphore, then indicate
|
||||
* that we own it.
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user