| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
#ifndef LV_PXP_CFG_H |
| 13 |
#define LV_PXP_CFG_H |
| 14 |
|
| 15 |
#ifdef __cplusplus |
| 16 |
extern "C" { |
| 17 |
#endif |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
#include "../../../lv_conf_internal.h" |
| 24 |
|
| 25 |
#if LV_USE_PXP |
| 26 |
#if LV_USE_DRAW_PXP || LV_USE_ROTATE_PXP |
| 27 |
#include "fsl_cache.h" |
| 28 |
#include "fsl_pxp.h" |
| 29 |
|
| 30 |
#if ((LV_DRAW_BUF_ALIGN % 32) != 0) |
| 31 |
#error "If PXP is enabled the draw buffers should be aligned to 32-byte boundary, please set LV_DRAW_BUF_ALIGN to a multiple of 32 in lv_conf.h" |
| 32 |
#endif |
| 33 |
|
| 34 |
#include "../../../misc/lv_log.h" |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
#define PXP_ID PXP |
| 42 |
|
| 43 |
|
| 44 |
#define PXP_IRQ_ID PXP_IRQn |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
typedef struct { |
| 54 |
|
| 55 |
void (*pxp_interrupt_init)(void); |
| 56 |
|
| 57 |
|
| 58 |
void (*pxp_interrupt_deinit)(void); |
| 59 |
|
| 60 |
|
| 61 |
void (*pxp_run)(void); |
| 62 |
|
| 63 |
|
| 64 |
void (*pxp_wait)(void); |
| 65 |
} pxp_cfg_t; |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
void lv_pxp_init(void); |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
void lv_pxp_deinit(void); |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
void lv_pxp_reset(void); |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
void lv_pxp_run(void); |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
void lv_pxp_wait(void); |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
#endif |
| 102 |
#endif |
| 103 |
|
| 104 |
#ifdef __cplusplus |
| 105 |
} |
| 106 |
#endif |
| 107 |
|
| 108 |
#endif |