image/svg+xml
Brteve's API for EveApps
Version 0.0.1
The reference document for common folder of EveApps project.
Loading...
Searching...
No Matches
EVE_Platform_RP2040.h
Go to the documentation of this file.
1
32
#ifndef EVE_PLATFORM_RP2040__H
33
#define EVE_PLATFORM_RP2040__H
34
35
#include "
EVE_Config.h
"
36
#if defined(RP2040_PLATFORM)
37
38
/* RP2040 platform libraries */
39
#include "pico/stdlib.h"
40
#include "hardware/spi.h"
41
/* #include "hardware/dma.h" */
42
/* #include "hardware/pio.h" */
43
44
/* Standard C libraries */
45
#include <unistd.h>
46
#include <stdlib.h>
47
#include <stdio.h>
48
#include <stdarg.h>
49
#include <string.h>
50
#include <assert.h>
51
56
#define EVE_DEFAULT_SPI0_MISO 4
57
#define EVE_DEFAULT_SPI0_CS 5
58
#define EVE_DEFAULT_SPI0_SCK 2
59
#define EVE_DEFAULT_SPI0_MOSI 3
60
#define EVE_DEFAULT_SPI0_INT 6
61
#define EVE_DEFAULT_SPI0_PWD 7
62
#define EVE_DEFAULT_SPI0_IO2 14
63
#define EVE_DEFAULT_SPI0_IO3 15
64
65
#define EVE_DEFAULT_SPI1_MISO 12
66
#define EVE_DEFAULT_SPI1_CS1 13
67
#define EVE_DEFAULT_SPI1_CS2 22
68
#define EVE_DEFAULT_SPI1_SCK 10
69
#define EVE_DEFAULT_SPI1_MOSI 11
70
#define EVE_DEFAULT_SPI1_INT 16
71
#define EVE_DEFAULT_SPI1_PWD 17
73
75
#define EVE_DEFAULT_SPI0_ONLY 1
76
82
#ifdef CFG_TUSB_DEBUG_PRINTF
83
#define eve_printf CFG_TUSB_DEBUG_PRINTF
84
#endif
85
86
#endif
87
#endif
/* #ifndef EVE_PLATFORM_RP2040__H */
88
89
/* end of file */
EVE_Config.h
This file processes the input definitions.
common
eve_hal
EVE_Platform_RP2040.h
Copyright © Bridgetek Pte Ltd