-
Notifications
You must be signed in to change notification settings - Fork 0
/
rp2040_bsp_default.c
121 lines (94 loc) · 3.72 KB
/
rp2040_bsp_default.c
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/****************************************************************************
* Copyright 2021 Gorgon Meducer (Email:embedded_zhuoran@hotmail.com) *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
****************************************************************************/
/*============================ INCLUDES ======================================*/
#include <stdint.h>
#include <stdbool.h>
/*============================ MACROS ========================================*/
/*============================ MACROFIED FUNCTIONS ===========================*/
/*============================ TYPES =========================================*/
/*============================ GLOBAL VARIABLES ==============================*/
/*============================ LOCAL VARIABLES ===============================*/
/*============================ PROTOTYPES ====================================*/
/*============================ IMPLEMENTATION ================================*/
/*----------------------------------------------------------------------------*
* BSP default APIs *
*----------------------------------------------------------------------------*/
__attribute__((weak))
void breath_led(void) {
}
__attribute__((weak))
void bsp_init(void) {
}
__attribute__((weak))
void GLCD_DrawBitmap( int_fast16_t x, int_fast16_t y,
int_fast16_t width, int_fast16_t height,
uint16_t *frame_ptr)
{
}
__attribute__((weak))
void Disp0_DrawBitmap( int16_t x,
int16_t y,
int16_t width,
int16_t height,
const uint8_t *bitmap)
{
}
__attribute__((weak))
void DEV_Digital_Write(uint16_t Pin, uint8_t Value) {}
__attribute__((weak))
uint8_t DEV_Digital_Read(uint16_t Pin)
{
return 0;
}
__attribute__((weak))
void DEV_GPIO_Mode(uint16_t Pin, uint16_t Mode) {}
__attribute__((weak))
void dev_key_init(uint8_t chPin) {}
__attribute__((weak))
bool dev_read_key(uint8_t chPin)
{
return false;
}
__attribute__((weak))
void DEV_SPI_WriteByte(uint8_t Value) {}
__attribute__((weak))
void DEV_SPI_Write_nByte(uint8_t *pData, uint32_t Len) {}
__attribute__((weak))
void DEV_Delay_ms(uint32_t xms)
{
}
__attribute__((weak))
void DEV_Delay_us(uint32_t xus) {
}
__attribute__((weak))
void DEV_I2C_Write(uint8_t addr, uint8_t reg, uint8_t Value) {}
__attribute__((weak))
void DEV_I2C_Write_nByte(uint8_t addr, uint8_t *pData, uint32_t Len) {}
__attribute__((weak))
uint8_t DEV_I2C_ReadByte(uint8_t addr, uint8_t reg)
{
return 0;
}
__attribute__((weak))
void DEV_SET_PWM(uint8_t Value) {}
__attribute__((weak))
uint8_t DEV_Module_Init(void)
{
return 0;
}
__attribute__((weak))
void DEV_Module_Exit(void) {}