mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
移动文件夹
This commit is contained in:
15
software/Power_Pico/User/Tasks/Inc/user_HardwareInitTask.h
Normal file
15
software/Power_Pico/User/Tasks/Inc/user_HardwareInitTask.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef __USER_HARDWAREINITTASK_H__
|
||||
#define __USER_HARDWAREINITTASK_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void HardwareInitTask(void *argument);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
16
software/Power_Pico/User/Tasks/Inc/user_KeyTask.h
Normal file
16
software/Power_Pico/User/Tasks/Inc/user_KeyTask.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef __USER_KEYTASK_H__
|
||||
#define __USER_KEYTASK_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void KeyTask(void *argument);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
16
software/Power_Pico/User/Tasks/Inc/user_LVGLTask.h
Normal file
16
software/Power_Pico/User/Tasks/Inc/user_LVGLTask.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef __USER_LVGLTASK_H__
|
||||
#define __USER_LVGLTASK_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void LvHandlerTask(void *argument);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
16
software/Power_Pico/User/Tasks/Inc/user_MessageTask.h
Normal file
16
software/Power_Pico/User/Tasks/Inc/user_MessageTask.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef __USER_MESSAGETASK_H__
|
||||
#define __USER_MESSAGETASK_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void MessageTask(void *argument);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
40
software/Power_Pico/User/Tasks/Inc/user_PDUFPTask.h
Normal file
40
software/Power_Pico/User/Tasks/Inc/user_PDUFPTask.h
Normal file
@@ -0,0 +1,40 @@
|
||||
#ifndef __USER_PDUFPTASK_H__
|
||||
#define __USER_PDUFPTASK_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "user_TasksInit.h"
|
||||
|
||||
// 定义UI层发送给PD UFP Task的指令的信号 //
|
||||
typedef enum {
|
||||
PD_CMD_START = 0,
|
||||
PD_CMD_STOP,
|
||||
PD_CMD_SET_PPS,
|
||||
} PD_command_t;
|
||||
|
||||
// 定义PD UFP Task任务发送到UI层的处理信号 //
|
||||
typedef enum {
|
||||
PD_EVT_PPS_READY = 0,
|
||||
PD_EVT_PPS_FAILED,
|
||||
} PD_handle_event_t;
|
||||
|
||||
// UI层发送到PD UFP Task任务的命令信号结构体 //
|
||||
typedef struct
|
||||
{
|
||||
PD_command_t event;
|
||||
float set_voltage;
|
||||
float set_current;
|
||||
} PD_command_msg_t;
|
||||
|
||||
|
||||
void PDUFPTask(void *argument);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
23
software/Power_Pico/User/Tasks/Inc/user_TasksInit.h
Normal file
23
software/Power_Pico/User/Tasks/Inc/user_TasksInit.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef __USER_TASKSINIT_H__
|
||||
#define __USER_TASKSINIT_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "FreeRTOS.h"
|
||||
#include "cmsis_os.h"
|
||||
|
||||
extern osMessageQueueId_t Key_MessageQueue;
|
||||
extern osMessageQueueId_t PD_cmd_MessageQueue;
|
||||
extern osMessageQueueId_t PD_handle_event_MsgQueue;
|
||||
|
||||
void User_Tasks_Init(void);
|
||||
void TaskTickHook(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user