linuxOS_AP06/app/lvgl_demo/flexbus/main.h

37 lines
708 B
C
Raw Normal View History

2025-06-03 04:28:32 +00:00
#ifndef __MAIN_H__
#define __MAIN_H__
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <malloc.h>
#include <math.h>
#include <poll.h>
#include <pthread.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <lvgl/lvgl.h>
#include "lv_port_init.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
#define ALIGN(x, a) (((x) + (a - 1)) & ~(a - 1))
int flexbus_read(int32_t *x, int32_t *y, int32_t count);
void flexbus_set_rate(int _rate);
int flexbus_get_rate(void);
#endif