change ch438 on nuttx

This commit is contained in:
wgzAIIT 2022-05-10 11:31:59 +08:00
parent 8d6e9532cf
commit cd5686de2e
1 changed files with 106 additions and 106 deletions

View File

@ -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, &param); pthread_attr_setschedparam(&attr, &param);
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);