Skip to content

Commit 6b6b9ed

Browse files
authored
Merge pull request #30 from libdriver/dev
fix: fix doc errors
2 parents bbe3311 + a98da08 commit 6b6b9ed

4 files changed

Lines changed: 28 additions & 17 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.6 (2024-12-29)
2+
3+
## Bug Fixes
4+
5+
- fix doc errors
6+
17
## 2.0.5 (2024-12-28)
28

39
## Bug Fixes

project/raspberrypi4b/driver/src/raspberrypi4b_driver_ssd1306_interface.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ uint8_t ssd1306_interface_iic_deinit(void)
8787

8888
/**
8989
* @brief interface iic bus write
90-
* @param[in] addr is the iic device write address
91-
* @param[in] reg is the iic register address
92-
* @param[in] *buf points to a data buffer
93-
* @param[in] len is the length of the data buffer
90+
* @param[in] addr iic device write address
91+
* @param[in] reg iic register address
92+
* @param[in] *buf pointer to a data buffer
93+
* @param[in] len length of the data buffer
9494
* @return status code
9595
* - 0 success
9696
* - 1 write failed
@@ -127,8 +127,8 @@ uint8_t ssd1306_interface_spi_deinit(void)
127127

128128
/**
129129
* @brief interface spi bus write
130-
* @param[in] *buf points to a data buffer
131-
* @param[in] len is the length of data buffer
130+
* @param[in] *buf pointer to a data buffer
131+
* @param[in] len length of data buffer
132132
* @return status code
133133
* - 0 success
134134
* - 1 write failed
@@ -141,7 +141,7 @@ uint8_t ssd1306_interface_spi_write_cmd(uint8_t *buf, uint16_t len)
141141

142142
/**
143143
* @brief interface delay ms
144-
* @param[in] ms
144+
* @param[in] ms time
145145
* @note none
146146
*/
147147
void ssd1306_interface_delay_ms(uint32_t ms)
@@ -151,7 +151,7 @@ void ssd1306_interface_delay_ms(uint32_t ms)
151151

152152
/**
153153
* @brief interface print format data
154-
* @param[in] fmt is the format data
154+
* @param[in] fmt format data
155155
* @note none
156156
*/
157157
void ssd1306_interface_debug_print(const char *const fmt, ...)
@@ -195,7 +195,7 @@ uint8_t ssd1306_interface_spi_cmd_data_gpio_deinit(void)
195195

196196
/**
197197
* @brief interface command && data gpio write
198-
* @param[in] value is the written value
198+
* @param[in] value written value
199199
* @return status code
200200
* - 0 success
201201
* - 1 gpio write failed
@@ -232,7 +232,7 @@ uint8_t ssd1306_interface_reset_gpio_deinit(void)
232232

233233
/**
234234
* @brief interface reset gpio write
235-
* @param[in] value is the written value
235+
* @param[in] value written value
236236
* @return status code
237237
* - 0 success
238238
* - 1 gpio write failed

project/raspberrypi4b/src/client.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,13 @@ static int gs_conn_fd; /**< network handle */
5353
static struct sockaddr_in gs_server_addr; /**< server address */
5454

5555
/**
56-
* @brief main function
57-
* @note none
56+
* @brief main function
57+
* @param[in] argc arg numbers
58+
* @param[in] **argv arg address
59+
* @return status code
60+
* - 0 success
61+
* - 1 run failed
62+
* @note none
5863
*/
5964
int main(uint8_t argc, char **argv)
6065
{

project/raspberrypi4b/src/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ static struct sockaddr_in gs_server_addr; /**< server address */
5757

5858
/**
5959
* @brief ssd1306 full function
60-
* @param[in] argc is arg numbers
61-
* @param[in] **argv is the arg address
60+
* @param[in] argc arg numbers
61+
* @param[in] **argv arg address
6262
* @return status code
6363
* - 0 success
6464
* - 1 run failed
@@ -1104,8 +1104,8 @@ static uint8_t a_socket_init(void)
11041104

11051105
/**
11061106
* @brief socket read
1107-
* @param[in] *buf points to a buffer address
1108-
* @param[in] len is the buffer length
1107+
* @param[in] *buf pointer to a buffer address
1108+
* @param[in] len buffer length
11091109
* @return status code
11101110
* - 0 success
11111111
* - 1 read failed
@@ -1136,7 +1136,7 @@ static uint16_t a_socket_read(uint8_t *buf, uint16_t len)
11361136

11371137
/**
11381138
* @brief signal handler
1139-
* @param[in] signum is the signal number
1139+
* @param[in] signum signal number
11401140
* @note none
11411141
*/
11421142
static void a_sig_handler(int signum)

0 commit comments

Comments
 (0)