Skip to content

Commit eb30b3e

Browse files
committed
fix: fix doc errors
1 parent e77e851 commit eb30b3e

File tree

18 files changed

+201
-195
lines changed

18 files changed

+201
-195
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.0.5 (2025-03-05)
2+
3+
## Bug Fixes
4+
5+
- fix doc errors
6+
17
## 1.0.4 (2025-01-05)
28

39
## Bug Fixes

project/raspberrypi4b/interface/inc/spi.h

+36-36
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ typedef enum
6767

6868
/**
6969
* @brief spi bus init
70-
* @param[in] *name points to a spi device name buffer
71-
* @param[out] *fd points to a spi device handle buffer
72-
* @param[in] mode is the spi mode.
73-
* @param[in] freq is the spi running frequence
70+
* @param[in] *name pointer to a spi device name buffer
71+
* @param[out] *fd pointer to a spi device handle buffer
72+
* @param[in] mode spi mode.
73+
* @param[in] freq spi running frequence
7474
* @return status code
7575
* - 0 success
7676
* - 1 init failed
@@ -80,7 +80,7 @@ uint8_t spi_init(char *name, int *fd, spi_mode_type_t mode, uint32_t freq);
8080

8181
/**
8282
* @brief spi bus deinit
83-
* @param[in] fd is the spi handle
83+
* @param[in] fd spi handle
8484
* @return status code
8585
* - 0 success
8686
* - 1 deinit failed
@@ -90,9 +90,9 @@ uint8_t spi_deinit(int fd);
9090

9191
/**
9292
* @brief spi bus read command
93-
* @param[in] fd is the spi handle
94-
* @param[out] *buf points to a data buffer
95-
* @param[in] len is the length of the data buffer
93+
* @param[in] fd spi handle
94+
* @param[out] *buf pointer to a data buffer
95+
* @param[in] len length of the data buffer
9696
* @return status code
9797
* - 0 success
9898
* - 1 read failed
@@ -102,10 +102,10 @@ uint8_t spi_read_cmd(int fd, uint8_t *buf, uint16_t len);
102102

103103
/**
104104
* @brief spi bus read
105-
* @param[in] fd is the spi handle
106-
* @param[in] reg is the spi register address
107-
* @param[out] *buf points to a data buffer
108-
* @param[in] len is the length of the data buffer
105+
* @param[in] fd spi handle
106+
* @param[in] reg spi register address
107+
* @param[out] *buf pointer to a data buffer
108+
* @param[in] len length of the data buffer
109109
* @return status code
110110
* - 0 success
111111
* - 1 read failed
@@ -115,10 +115,10 @@ uint8_t spi_read(int fd, uint8_t reg, uint8_t *buf, uint16_t len);
115115

116116
/**
117117
* @brief spi bus read address 16
118-
* @param[in] fd is the spi handle
119-
* @param[in] reg is the spi register address
120-
* @param[out] *buf points to a data buffer
121-
* @param[in] len is the length of the data buffer
118+
* @param[in] fd spi handle
119+
* @param[in] reg spi register address
120+
* @param[out] *buf pointer to a data buffer
121+
* @param[in] len length of the data buffer
122122
* @return status code
123123
* - 0 success
124124
* - 1 read failed
@@ -128,9 +128,9 @@ uint8_t spi_read_address16(int fd, uint16_t reg, uint8_t *buf, uint16_t len);
128128

129129
/**
130130
* @brief spi bus write command
131-
* @param[in] fd is the spi handle
132-
* @param[in] *buf points to a data buffer
133-
* @param[in] len is the length of the data buffer
131+
* @param[in] fd spi handle
132+
* @param[in] *buf pointer to a data buffer
133+
* @param[in] len length of the data buffer
134134
* @return status code
135135
* - 0 success
136136
* - 1 write failed
@@ -140,10 +140,10 @@ uint8_t spi_write_cmd(int fd, uint8_t *buf, uint16_t len);
140140

141141
/**
142142
* @brief spi bus write
143-
* @param[in] fd is the spi handle
144-
* @param[in] reg is the spi register address
145-
* @param[in] *buf points to a data buffer
146-
* @param[in] len is the length of the data buffer
143+
* @param[in] fd spi handle
144+
* @param[in] reg spi register address
145+
* @param[in] *buf pointer to a data buffer
146+
* @param[in] len length of the data buffer
147147
* @return status code
148148
* - 0 success
149149
* - 1 write failed
@@ -153,10 +153,10 @@ uint8_t spi_write(int fd, uint8_t reg, uint8_t *buf, uint16_t len);
153153

154154
/**
155155
* @brief spi bus write address 16
156-
* @param[in] fd is the spi handle
157-
* @param[in] reg is the spi register address
158-
* @param[in] *buf points to a data buffer
159-
* @param[in] len is the length of the data buffer
156+
* @param[in] fd spi handle
157+
* @param[in] reg spi register address
158+
* @param[in] *buf pointer to a data buffer
159+
* @param[in] len length of the data buffer
160160
* @return status code
161161
* - 0 success
162162
* - 1 write failed
@@ -166,11 +166,11 @@ uint8_t spi_write_address16(int fd, uint16_t reg, uint8_t *buf, uint16_t len);
166166

167167
/**
168168
* @brief spi bus write read
169-
* @param[in] fd is the spi handle
170-
* @param[in] *in_buf points to an input buffer
171-
* @param[in] in_len is the input length
172-
* @param[out] *out_buf points to an output buffer
173-
* @param[in] out_len is the output length
169+
* @param[in] fd spi handle
170+
* @param[in] *in_buf pointer to an input buffer
171+
* @param[in] in_len input length
172+
* @param[out] *out_buf pointer to an output buffer
173+
* @param[in] out_len output length
174174
* @return status code
175175
* - 0 success
176176
* - 1 write read failed
@@ -180,10 +180,10 @@ uint8_t spi_write_read(int fd, uint8_t *in_buf, uint32_t in_len, uint8_t *out_bu
180180

181181
/**
182182
* @brief spi transmit
183-
* @param[in] fd is the spi handle
184-
* @param[in] *tx points to a tx buffer
185-
* @param[out] *rx points to a rx buffer
186-
* @param[in] len is the length of the data buffer
183+
* @param[in] fd spi handle
184+
* @param[in] *tx pointer to a tx buffer
185+
* @param[out] *rx pointer to a rx buffer
186+
* @param[in] len length of the data buffer
187187
* @return status code
188188
* - 0 success
189189
* - 1 transmit failed

project/raspberrypi4b/interface/inc/wire.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ uint8_t wire_deinit(void);
7070

7171
/**
7272
* @brief wire bus read data
73-
* @param[out] *value points to a data buffer
73+
* @param[out] *value pointer to a data buffer
7474
* @return status code
7575
* - 0 success
7676
* - 1 read failed
@@ -80,7 +80,7 @@ uint8_t wire_read(uint8_t *value);
8080

8181
/**
8282
* @brief wire bus write data
83-
* @param[in] value is the write data
83+
* @param[in] value write data
8484
* @return status code
8585
* - 0 success
8686
* - 1 write failed
@@ -107,7 +107,7 @@ uint8_t wire_clock_deinit(void);
107107

108108
/**
109109
* @brief wire bus write data
110-
* @param[in] value is the write data
110+
* @param[in] value write data
111111
* @return status code
112112
* - 0 success
113113
* - 1 write failed

project/raspberrypi4b/interface/src/gpio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extern uint8_t (*g_gpio_irq)(void); /**< gpio irq */
5858

5959
/**
6060
* @brief gpio interrupt pthread
61-
* @param *p ponts to an args buffer
61+
* @param *p pointer to an args buffer
6262
* @return NULL
6363
* @note none
6464
*/

project/raspberrypi4b/interface/src/spi.c

+36-36
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141

4242
/**
4343
* @brief spi bus init
44-
* @param[in] *name points to a spi device name buffer
45-
* @param[out] *fd points to a spi device handle buffer
46-
* @param[in] mode is the spi mode.
47-
* @param[in] freq is the spi running frequence
44+
* @param[in] *name pointer to a spi device name buffer
45+
* @param[out] *fd pointer to a spi device handle buffer
46+
* @param[in] mode spi mode.
47+
* @param[in] freq spi running frequence
4848
* @return status code
4949
* - 0 success
5050
* - 1 init failed
@@ -138,7 +138,7 @@ uint8_t spi_init(char *name, int *fd, spi_mode_type_t mode, uint32_t freq)
138138

139139
/**
140140
* @brief spi bus deinit
141-
* @param[in] fd is the spi handle
141+
* @param[in] fd spi handle
142142
* @return status code
143143
* - 0 success
144144
* - 1 deinit failed
@@ -161,9 +161,9 @@ uint8_t spi_deinit(int fd)
161161

162162
/**
163163
* @brief spi bus read command
164-
* @param[in] fd is the spi handle
165-
* @param[out] *buf points to a data buffer
166-
* @param[in] len is the length of the data buffer
164+
* @param[in] fd spi handle
165+
* @param[out] *buf pointer to a data buffer
166+
* @param[in] len length of the data buffer
167167
* @return status code
168168
* - 0 success
169169
* - 1 read failed
@@ -196,10 +196,10 @@ uint8_t spi_read_cmd(int fd, uint8_t *buf, uint16_t len)
196196

197197
/**
198198
* @brief spi bus read
199-
* @param[in] fd is the spi handle
200-
* @param[in] reg is the spi register address
201-
* @param[out] *buf points to a data buffer
202-
* @param[in] len is the length of the data buffer
199+
* @param[in] fd spi handle
200+
* @param[in] reg spi register address
201+
* @param[out] *buf pointer to a data buffer
202+
* @param[in] len length of the data buffer
203203
* @return status code
204204
* - 0 success
205205
* - 1 read failed
@@ -242,10 +242,10 @@ uint8_t spi_read(int fd, uint8_t reg, uint8_t *buf, uint16_t len)
242242

243243
/**
244244
* @brief spi bus read address 16
245-
* @param[in] fd is the spi handle
246-
* @param[in] reg is the spi register address
247-
* @param[out] *buf points to a data buffer
248-
* @param[in] len is the length of the data buffer
245+
* @param[in] fd spi handle
246+
* @param[in] reg spi register address
247+
* @param[out] *buf pointer to a data buffer
248+
* @param[in] len length of the data buffer
249249
* @return status code
250250
* - 0 success
251251
* - 1 read failed
@@ -289,9 +289,9 @@ uint8_t spi_read_address16(int fd, uint16_t reg, uint8_t *buf, uint16_t len)
289289

290290
/**
291291
* @brief spi bus write command
292-
* @param[in] fd is the spi handle
293-
* @param[in] *buf points to a data buffer
294-
* @param[in] len is the length of the data buffer
292+
* @param[in] fd spi handle
293+
* @param[in] *buf pointer to a data buffer
294+
* @param[in] len length of the data buffer
295295
* @return status code
296296
* - 0 success
297297
* - 1 write failed
@@ -324,10 +324,10 @@ uint8_t spi_write_cmd(int fd, uint8_t *buf, uint16_t len)
324324

325325
/**
326326
* @brief spi bus write
327-
* @param[in] fd is the spi handle
328-
* @param[in] reg is the spi register address
329-
* @param[in] *buf points to a data buffer
330-
* @param[in] len is the length of the data buffer
327+
* @param[in] fd spi handle
328+
* @param[in] reg spi register address
329+
* @param[in] *buf pointer to a data buffer
330+
* @param[in] len length of the data buffer
331331
* @return status code
332332
* - 0 success
333333
* - 1 write failed
@@ -365,10 +365,10 @@ uint8_t spi_write(int fd, uint8_t reg, uint8_t *buf, uint16_t len)
365365

366366
/**
367367
* @brief spi bus write address 16
368-
* @param[in] fd is the spi handle
369-
* @param[in] reg is the spi register address
370-
* @param[in] *buf points to a data buffer
371-
* @param[in] len is the length of the data buffer
368+
* @param[in] fd spi handle
369+
* @param[in] reg spi register address
370+
* @param[in] *buf pointer to a data buffer
371+
* @param[in] len length of the data buffer
372372
* @return status code
373373
* - 0 success
374374
* - 1 write failed
@@ -407,11 +407,11 @@ uint8_t spi_write_address16(int fd, uint16_t reg, uint8_t *buf, uint16_t len)
407407

408408
/**
409409
* @brief spi bus write read
410-
* @param[in] fd is the spi handle
411-
* @param[in] *in_buf points to an input buffer
412-
* @param[in] in_len is the input length
413-
* @param[out] *out_buf points to an output buffer
414-
* @param[in] out_len is the output length
410+
* @param[in] fd spi handle
411+
* @param[in] *in_buf pointer to an input buffer
412+
* @param[in] in_len input length
413+
* @param[out] *out_buf pointer to an output buffer
414+
* @param[in] out_len output length
415415
* @return status code
416416
* - 0 success
417417
* - 1 write read failed
@@ -478,10 +478,10 @@ uint8_t spi_write_read(int fd, uint8_t *in_buf, uint32_t in_len, uint8_t *out_bu
478478

479479
/**
480480
* @brief spi transmit
481-
* @param[in] fd is the spi handle
482-
* @param[in] *tx points to a tx buffer
483-
* @param[out] *rx points to a rx buffer
484-
* @param[in] len is the length of the data buffer
481+
* @param[in] fd spi handle
482+
* @param[in] *tx pointer to a tx buffer
483+
* @param[out] *rx pointer to a rx buffer
484+
* @param[in] len length of the data buffer
485485
* @return status code
486486
* - 0 success
487487
* - 1 transmit failed

project/raspberrypi4b/interface/src/wire.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ uint8_t wire_deinit(void)
108108

109109
/**
110110
* @brief wire bus read data
111-
* @param[out] *value points to a data buffer
111+
* @param[out] *value pointer to a data buffer
112112
* @return status code
113113
* - 0 success
114114
* - 1 read failed
@@ -153,7 +153,7 @@ uint8_t wire_read(uint8_t *value)
153153

154154
/**
155155
* @brief wire bus write data
156-
* @param[in] value is the write data
156+
* @param[in] value write data
157157
* @return status code
158158
* - 0 success
159159
* - 1 write failed
@@ -244,7 +244,7 @@ uint8_t wire_clock_deinit(void)
244244

245245
/**
246246
* @brief wire bus write data
247-
* @param[in] value is the write data
247+
* @param[in] value write data
248248
* @return status code
249249
* - 0 success
250250
* - 1 write failed

project/stm32f407/interface/inc/delay.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ uint8_t delay_init(void);
5959

6060
/**
6161
* @brief delay us
62-
* @param[in] us
62+
* @param[in] us time
6363
* @note none
6464
*/
6565
void delay_us(uint32_t us);
6666

6767
/**
6868
* @brief delay ms
69-
* @param[in] ms
69+
* @param[in] ms time
7070
* @note none
7171
*/
7272
void delay_ms(uint32_t ms);

0 commit comments

Comments
 (0)