forked from xuos/xiuos
change ch438 on nuttx
This commit is contained in:
parent
8d6e9532cf
commit
cd5686de2e
|
@ -26,7 +26,7 @@
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Function Prototypes
|
* Private Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
static FAR void *getInterruptStatus(FAR void *arg);
|
static FAR void getInterruptStatus(FAR void *arg);
|
||||||
static void CH438SetOutput(void);
|
static void CH438SetOutput(void);
|
||||||
static void CH438SetInput(void);
|
static void CH438SetInput(void);
|
||||||
static uint8_t ReadCH438Data(uint8_t addr);
|
static uint8_t ReadCH438Data(uint8_t addr);
|
||||||
|
@ -109,7 +109,7 @@ static const struct file_operations g_ch438fops =
|
||||||
* thread task getInterruptStatus
|
* thread task getInterruptStatus
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
static FAR void *getInterruptStatus(FAR void *arg)
|
static FAR void getInterruptStatus(FAR void *arg)
|
||||||
{
|
{
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
while(1)
|
while(1)
|
||||||
|
@ -575,7 +575,7 @@ static void Ch438InitDefault(void)
|
||||||
param.sched_priority = 60;
|
param.sched_priority = 60;
|
||||||
pthread_attr_setschedparam(&attr, ¶m);
|
pthread_attr_setschedparam(&attr, ¶m);
|
||||||
pthread_attr_setstacksize(&attr, 2048);
|
pthread_attr_setstacksize(&attr, 2048);
|
||||||
ret = pthread_create(&thread, &attr, getInterruptStatus, NULL);
|
ret = pthread_create(&thread, &attr, (void*)getInterruptStatus, NULL);
|
||||||
if(ret < 0)
|
if(ret < 0)
|
||||||
{
|
{
|
||||||
ch438err("task create failed, status=%d\n", ret);
|
ch438err("task create failed, status=%d\n", ret);
|
||||||
|
|
Loading…
Reference in New Issue