Skip to content

Commit 04b68bb

Browse files
committed
fix: fix doc errors
1 parent 58f1cb8 commit 04b68bb

File tree

11 files changed

+120
-114
lines changed

11 files changed

+120
-114
lines changed

CHANGELOG.md

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

39
## Bug Fixes

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);

project/stm32f407/interface/inc/iic.h

+26-26
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ uint8_t iic_deinit(void);
6767

6868
/**
6969
* @brief iic bus write command
70-
* @param[in] addr is the iic device write address
71-
* @param[in] *buf points to a data buffer
72-
* @param[in] len is the length of the data buffer
70+
* @param[in] addr iic device write address
71+
* @param[in] *buf pointer to a data buffer
72+
* @param[in] len length of the data buffer
7373
* @return status code
7474
* - 0 success
7575
* - 1 write failed
@@ -79,10 +79,10 @@ uint8_t iic_write_cmd(uint8_t addr, uint8_t *buf, uint16_t len);
7979

8080
/**
8181
* @brief iic bus write
82-
* @param[in] addr is the iic device write address
83-
* @param[in] reg is the iic register address
84-
* @param[in] *buf points to a data buffer
85-
* @param[in] len is the length of the data buffer
82+
* @param[in] addr iic device write address
83+
* @param[in] reg iic register address
84+
* @param[in] *buf pointer to a data buffer
85+
* @param[in] len length of the data buffer
8686
* @return status code
8787
* - 0 success
8888
* - 1 write failed
@@ -92,10 +92,10 @@ uint8_t iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len);
9292

9393
/**
9494
* @brief iic bus write with 16 bits register address
95-
* @param[in] addr is the iic device write address
96-
* @param[in] reg is the iic register address
97-
* @param[in] *buf points to a data buffer
98-
* @param[in] len is the length of the data buffer
95+
* @param[in] addr iic device write address
96+
* @param[in] reg iic register address
97+
* @param[in] *buf pointer to a data buffer
98+
* @param[in] len length of the data buffer
9999
* @return status code
100100
* - 0 success
101101
* - 1 write failed
@@ -105,9 +105,9 @@ uint8_t iic_write_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t l
105105

106106
/**
107107
* @brief iic bus read command
108-
* @param[in] addr is the iic device write address
109-
* @param[out] *buf points to a data buffer
110-
* @param[in] len is the length of the data buffer
108+
* @param[in] addr iic device write address
109+
* @param[out] *buf pointer to a data buffer
110+
* @param[in] len length of the data buffer
111111
* @return status code
112112
* - 0 success
113113
* - 1 read failed
@@ -117,10 +117,10 @@ uint8_t iic_read_cmd(uint8_t addr, uint8_t *buf, uint16_t len);
117117

118118
/**
119119
* @brief iic bus read
120-
* @param[in] addr is the iic device write address
121-
* @param[in] reg is the iic register address
122-
* @param[out] *buf points to a data buffer
123-
* @param[in] len is the length of the data buffer
120+
* @param[in] addr iic device write address
121+
* @param[in] reg iic register address
122+
* @param[out] *buf pointer to a data buffer
123+
* @param[in] len length of the data buffer
124124
* @return status code
125125
* - 0 success
126126
* - 1 read failed
@@ -130,10 +130,10 @@ uint8_t iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len);
130130

131131
/**
132132
* @brief iic bus read with 10ms
133-
* @param[in] addr is the iic device write address
134-
* @param[in] reg is the iic register address
135-
* @param[out] *buf points to a data buffer
136-
* @param[in] len is the length of the data buffer
133+
* @param[in] addr iic device write address
134+
* @param[in] reg iic register address
135+
* @param[out] *buf pointer to a data buffer
136+
* @param[in] len length of the data buffer
137137
* @return status code
138138
* - 0 success
139139
* - 1 read failed
@@ -143,10 +143,10 @@ uint8_t iic_read_with_wait(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len
143143

144144
/**
145145
* @brief iic bus read with 16 bits register address
146-
* @param[in] addr is the iic device write address
147-
* @param[in] reg is the iic register address
148-
* @param[out] *buf points to a data buffer
149-
* @param[in] len is the length of the data buffer
146+
* @param[in] addr iic device write address
147+
* @param[in] reg iic register address
148+
* @param[out] *buf pointer to a data buffer
149+
* @param[in] len length of the data buffer
150150
* @return status code
151151
* - 0 success
152152
* - 1 read failed

project/stm32f407/interface/inc/uart.h

+13-13
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/src/delay.c

+2-2
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/iic.c

+28-28
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static void a_iic_nack(void)
194194

195195
/**
196196
* @brief iic send one byte
197-
* @param[in] txd is the sent byte
197+
* @param[in] txd sent byte
198198
* @note none
199199
*/
200200
static void a_iic_send_byte(uint8_t txd)
@@ -217,7 +217,7 @@ static void a_iic_send_byte(uint8_t txd)
217217

218218
/**
219219
* @brief iic read one byte
220-
* @param[in] ack is the sent ack
220+
* @param[in] ack sent ack
221221
* @return read byte
222222
* @note none
223223
*/
@@ -253,9 +253,9 @@ static uint8_t a_iic_read_byte(uint8_t ack)
253253

254254
/**
255255
* @brief iic bus write command
256-
* @param[in] addr is the iic device write address
257-
* @param[in] *buf points to a data buffer
258-
* @param[in] len is the length of the data buffer
256+
* @param[in] addr iic device write address
257+
* @param[in] *buf pointer to a data buffer
258+
* @param[in] len length of the data buffer
259259
* @return status code
260260
* - 0 success
261261
* - 1 write failed
@@ -298,10 +298,10 @@ uint8_t iic_write_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
298298

299299
/**
300300
* @brief iic bus write
301-
* @param[in] addr is the iic device write address
302-
* @param[in] reg is the iic register address
303-
* @param[in] *buf points to a data buffer
304-
* @param[in] len is the length of the data buffer
301+
* @param[in] addr iic device write address
302+
* @param[in] reg iic register address
303+
* @param[in] *buf pointer to a data buffer
304+
* @param[in] len length of the data buffer
305305
* @return status code
306306
* - 0 success
307307
* - 1 write failed
@@ -353,10 +353,10 @@ uint8_t iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
353353

354354
/**
355355
* @brief iic bus write with 16 bits register address
356-
* @param[in] addr is the iic device write address
357-
* @param[in] reg is the iic register address
358-
* @param[in] *buf points to a data buffer
359-
* @param[in] len is the length of the data buffer
356+
* @param[in] addr iic device write address
357+
* @param[in] reg iic register address
358+
* @param[in] *buf pointer to a data buffer
359+
* @param[in] len length of the data buffer
360360
* @return status code
361361
* - 0 success
362362
* - 1 write failed
@@ -417,9 +417,9 @@ uint8_t iic_write_address16(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t l
417417

418418
/**
419419
* @brief iic bus read command
420-
* @param[in] addr is the iic device write address
421-
* @param[out] *buf points to a data buffer
422-
* @param[in] len is the length of the data buffer
420+
* @param[in] addr iic device write address
421+
* @param[out] *buf pointer to a data buffer
422+
* @param[in] len length of the data buffer
423423
* @return status code
424424
* - 0 success
425425
* - 1 read failed
@@ -465,10 +465,10 @@ uint8_t iic_read_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
465465

466466
/**
467467
* @brief iic bus read
468-
* @param[in] addr is the iic device write address
469-
* @param[in] reg is the iic register address
470-
* @param[out] *buf points to a data buffer
471-
* @param[in] len is the length of the data buffer
468+
* @param[in] addr iic device write address
469+
* @param[in] reg iic register address
470+
* @param[out] *buf pointer to a data buffer
471+
* @param[in] len length of the data buffer
472472
* @return status code
473473
* - 0 success
474474
* - 1 read failed
@@ -535,10 +535,10 @@ uint8_t iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
535535

536536
/**
537537
* @brief iic bus read with 10ms
538-
* @param[in] addr is the iic device write address
539-
* @param[in] reg is the iic register address
540-
* @param[out] *buf points to a data buffer
541-
* @param[in] len is the length of the data buffer
538+
* @param[in] addr iic device write address
539+
* @param[in] reg iic register address
540+
* @param[out] *buf pointer to a data buffer
541+
* @param[in] len length of the data buffer
542542
* @return status code
543543
* - 0 success
544544
* - 1 read failed
@@ -608,10 +608,10 @@ uint8_t iic_read_with_wait(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len
608608

609609
/**
610610
* @brief iic bus read with 16 bits register address
611-
* @param[in] addr is the iic device write address
612-
* @param[in] reg is the iic register address
613-
* @param[out] *buf points to a data buffer
614-
* @param[in] len is the length of the data buffer
611+
* @param[in] addr iic device write address
612+
* @param[in] reg iic register address
613+
* @param[out] *buf pointer to a data buffer
614+
* @param[in] len length of the data buffer
615615
* @return status code
616616
* - 0 success
617617
* - 1 read failed

0 commit comments

Comments
 (0)