Skip to content

Commit 03ee3d9

Browse files
authored
Merge pull request #26 from libdriver/dev
fix: fix doc errors
2 parents 27cbde7 + 0d05782 commit 03ee3d9

13 files changed

Lines changed: 78 additions & 72 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.0.4 (2025-03-02)
2+
3+
## Bug Fixes
4+
5+
- fix doc errors
6+
17
## 2.0.3 (2025-01-05)
28

39
## Bug Fixes

project/raspberrypi4b/interface/inc/wire.h

Lines changed: 3 additions & 3 deletions
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/wire.c

Lines changed: 3 additions & 3 deletions
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

Lines changed: 2 additions & 2 deletions
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);

project/stm32f407/interface/inc/uart.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extern "C"{
5757

5858
/**
5959
* @brief uart init with 8 data bits, 1 stop bit and no parity
60-
* @param[in] baud is the baud rate
60+
* @param[in] baud baud rate
6161
* @return status code
6262
* - 0 success
6363
* - 1 init failed
@@ -76,8 +76,8 @@ uint8_t uart_deinit(void);
7676

7777
/**
7878
* @brief uart write data
79-
* @param[in] *buf points to a data buffer
80-
* @param[in] len is the data length
79+
* @param[in] *buf pointer to a data buffer
80+
* @param[in] len data length
8181
* @return status code
8282
* - 0 success
8383
* - 1 write failed
@@ -87,8 +87,8 @@ uint8_t uart_write(uint8_t *buf, uint16_t len);
8787

8888
/**
8989
* @brief uart read data
90-
* @param[out] *buf points to a data buffer
91-
* @param[in] len is the data length
90+
* @param[out] *buf pointer to a data buffer
91+
* @param[in] len data length
9292
* @return length of the read data
9393
* @note this function will clear all received buffer even read length is less than received length
9494
*/
@@ -104,15 +104,15 @@ uint16_t uart_flush(void);
104104

105105
/**
106106
* @brief uart print format data
107-
* @param[in] fmt is the format data
107+
* @param[in] fmt format data
108108
* @return length of the sent data
109109
* @note none
110110
*/
111111
uint16_t uart_print(const char *const fmt, ...);
112112

113113
/**
114114
* @brief uart get the handle
115-
* @return points to a uart handle
115+
* @return pointer to a uart handle
116116
* @note none
117117
*/
118118
UART_HandleTypeDef* uart_get_handle(void);
@@ -131,7 +131,7 @@ void uart_irq_handler(void);
131131

132132
/**
133133
* @brief uart2 init with 8 data bits, 1 stop bit and no parity
134-
* @param[in] baud is the baud rate
134+
* @param[in] baud baud rate
135135
* @return status code
136136
* - 0 success
137137
* - 1 init failed
@@ -150,8 +150,8 @@ uint8_t uart2_deinit(void);
150150

151151
/**
152152
* @brief uart2 write data
153-
* @param[in] *buf points to a data buffer
154-
* @param[in] len is the data length
153+
* @param[in] *buf pointer to a data buffer
154+
* @param[in] len data length
155155
* @return status code
156156
* - 0 success
157157
* - 1 write failed
@@ -161,8 +161,8 @@ uint8_t uart2_write(uint8_t *buf, uint16_t len);
161161

162162
/**
163163
* @brief uart2 read data
164-
* @param[out] *buf points to a data buffer
165-
* @param[in] len is the data length
164+
* @param[out] *buf pointer to a data buffer
165+
* @param[in] len data length
166166
* @return length of the read data
167167
* @note this function will clear all received buffer even read length is less than received length
168168
*/
@@ -178,7 +178,7 @@ uint16_t uart2_flush(void);
178178

179179
/**
180180
* @brief uart2 get the handle
181-
* @return points to a uart handle
181+
* @return pointer to a uart handle
182182
* @note none
183183
*/
184184
UART_HandleTypeDef* uart2_get_handle(void);

project/stm32f407/interface/inc/wire.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ uint8_t wire_deinit(void);
6767

6868
/**
6969
* @brief wire bus read data
70-
* @param[out] *value points to a read data buffer
70+
* @param[out] *value pointer to a read data buffer
7171
* @return status code
7272
* - 0 success
7373
* @note none
@@ -76,7 +76,7 @@ uint8_t wire_read(uint8_t *value);
7676

7777
/**
7878
* @brief wire bus write data
79-
* @param[in] value is the write data
79+
* @param[in] value write data
8080
* @return status code
8181
* - 0 success
8282
* @note none
@@ -101,7 +101,7 @@ uint8_t wire_clock_deinit(void);
101101

102102
/**
103103
* @brief wire bus write the data
104-
* @param[in] value is the write data
104+
* @param[in] value write data
105105
* @return status code
106106
* - 0 success
107107
* @note none

project/stm32f407/interface/src/delay.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ uint8_t delay_init(void)
5757

5858
/**
5959
* @brief delay us
60-
* @param[in] us
60+
* @param[in] us time
6161
* @note none
6262
*/
6363
void delay_us(uint32_t us)
@@ -99,7 +99,7 @@ void delay_us(uint32_t us)
9999

100100
/**
101101
* @brief delay ms
102-
* @param[in] ms
102+
* @param[in] ms time
103103
* @note none
104104
*/
105105
void delay_ms(uint32_t ms)

project/stm32f407/interface/src/uart.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ volatile uint8_t g_uart2_tx_done; /**< uart2 tx done flag */
5959

6060
/**
6161
* @brief uart init with 8 data bits, 1 stop bit and no parity
62-
* @param[in] baud is the baud rate
62+
* @param[in] baud baud rate
6363
* @return status code
6464
* - 0 success
6565
* - 1 init failed
@@ -111,8 +111,8 @@ uint8_t uart_deinit(void)
111111

112112
/**
113113
* @brief uart write data
114-
* @param[in] *buf points to a data buffer
115-
* @param[in] len is the data length
114+
* @param[in] *buf pointer to a data buffer
115+
* @param[in] len data length
116116
* @return status code
117117
* - 0 success
118118
* - 1 write failed
@@ -151,8 +151,8 @@ uint8_t uart_write(uint8_t *buf, uint16_t len)
151151

152152
/**
153153
* @brief uart read data
154-
* @param[out] *buf points to a data buffer
155-
* @param[in] len is the data length
154+
* @param[out] *buf pointer to a data buffer
155+
* @param[in] len data length
156156
* @return length of the read data
157157
* @note this function will clear all received buffer even read length is less than received length
158158
*/
@@ -196,7 +196,7 @@ uint16_t uart_flush(void)
196196

197197
/**
198198
* @brief uart print format data
199-
* @param[in] fmt is the format data
199+
* @param[in] fmt format data
200200
* @return length of the sent data
201201
* @note none
202202
*/
@@ -226,7 +226,7 @@ uint16_t uart_print(const char *const fmt, ...)
226226

227227
/**
228228
* @brief uart2 init with 8 data bits, 1 stop bit and no parity
229-
* @param[in] baud is the baud rate
229+
* @param[in] baud baud rate
230230
* @return status code
231231
* - 0 success
232232
* - 1 init failed
@@ -278,8 +278,8 @@ uint8_t uart2_deinit(void)
278278

279279
/**
280280
* @brief uart2 write data
281-
* @param[in] *buf points to a data buffer
282-
* @param[in] len is the data length
281+
* @param[in] *buf pointer to a data buffer
282+
* @param[in] len data length
283283
* @return status code
284284
* - 0 success
285285
* - 1 write failed
@@ -318,8 +318,8 @@ uint8_t uart2_write(uint8_t *buf, uint16_t len)
318318

319319
/**
320320
* @brief uart2 read data
321-
* @param[out] *buf points to a data buffer
322-
* @param[in] len is the data length
321+
* @param[out] *buf pointer to a data buffer
322+
* @param[in] len data length
323323
* @return length of the read data
324324
* @note this function will clear all received buffer even read length is less than received length
325325
*/
@@ -363,7 +363,7 @@ uint16_t uart2_flush(void)
363363

364364
/**
365365
* @brief uart get the handle
366-
* @return points to a uart handle
366+
* @return pointer to a uart handle
367367
* @note none
368368
*/
369369
UART_HandleTypeDef* uart_get_handle(void)
@@ -373,7 +373,7 @@ UART_HandleTypeDef* uart_get_handle(void)
373373

374374
/**
375375
* @brief uart2 get the handle
376-
* @return points to a uart handle
376+
* @return pointer to a uart handle
377377
* @note none
378378
*/
379379
UART_HandleTypeDef* uart2_get_handle(void)

project/stm32f407/interface/src/wire.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ uint8_t wire_deinit(void)
103103

104104
/**
105105
* @brief wire bus read data
106-
* @param[out] *value points to a read data buffer
106+
* @param[out] *value pointer to a read data buffer
107107
* @return status code
108108
* - 0 success
109109
* @note none
@@ -121,7 +121,7 @@ uint8_t wire_read(uint8_t *value)
121121

122122
/**
123123
* @brief wire bus write data
124-
* @param[in] value is the write data
124+
* @param[in] value write data
125125
* @return status code
126126
* - 0 success
127127
* @note none
@@ -176,7 +176,7 @@ uint8_t wire_clock_deinit(void)
176176

177177
/**
178178
* @brief wire bus write the data
179-
* @param[in] value is the write data
179+
* @param[in] value write data
180180
* @return status code
181181
* - 0 success
182182
* @note none

project/stm32f407/usr/inc/shell.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ uint8_t shell_init(void);
8989

9090
/**
9191
* @brief shell register function
92-
* @param[in] *name points to a name buffer
93-
* @param[in] *fuc points to a function address
92+
* @param[in] *name pointer to a name buffer
93+
* @param[in] *fuc pointer to a function address
9494
* @return status code
9595
* - 0 success
9696
* - 1 buffer is full
@@ -100,8 +100,8 @@ uint8_t shell_register(char *name, uint8_t (*fuc)(uint8_t argc, char **argv));
100100

101101
/**
102102
* @brief shell parse command
103-
* @param[in] *buf points to a buffer address
104-
* @param[in] len is the buffer length
103+
* @param[in] *buf pointer to a buffer address
104+
* @param[in] len buffer length
105105
* @return status code
106106
* - 0 success
107107
* - 1 run failed

0 commit comments

Comments
 (0)