blob: a541f88c5e8425103269dfdaca7f4c87c565c1db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
* com_task.h
*/
#ifndef COM_TASK_H_
#define COM_TASK_H_
#include "board.h"
#include "fsl_debug_console.h"
#include "fsl_dspi.h"
#include "fsl_gpio.h"
#include "fsl_edma.h"
#include "fsl_dspi_edma.h"
#include "fsl_dmamux.h"
#include "apalis-tk1-k20-api.h"
/* FreeRTOS kernel includes. */
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "timers.h"
#include "semphr.h"
#include "errno.h"
#define SPI_DMA
typedef struct _callback_message_t
{
status_t async_status;
SemaphoreHandle_t sem;
} callback_message_t;
extern TaskHandle_t spi_task_handle;
void generate_irq(uint8_t irq);
void clear_irq_flag(uint8_t irq);
void spi_task(void *pvParameters);
#define BIT(nr) (1UL << (nr))
#define ADC0_CHANNEL_CNT 4
#define TSC0_CHANNEL_CNT 4
#define CAN_RX_BUF_SIZE 256
extern volatile uint8_t registers[APALIS_TK1_K20_LAST_REG];
#endif /* COM_TASK_H_ */
|