Skip to content

Commit 374da34

Browse files
committed
include: fix typo in header files
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent e0f990c commit 374da34

File tree

17 files changed

+32
-34
lines changed

17 files changed

+32
-34
lines changed

include/circbuf.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ int circbuf_delete(int handle);
2828
* Store one byte to circular buffer
2929
* @param handle [in] Handle to circular buffer
3030
* @param data [in] Data byte
31-
* @return 0 on succes, -1 on error
31+
* @return 0 on success, -1 on error
3232
*/
3333
int circbuf_push_byte(int handle, unsigned char data);
3434

3535
/**
36-
* Store bufferd data to circular buffer
36+
* Store buffered data to circular buffer
3737
* @param handle [in] Handle to circular buffer
3838
* @param data [in] input data buffer
3939
* @param len [in] Length of data in buffer
@@ -87,13 +87,13 @@ int circbuf_isempty(int handle);
8787

8888
/**
8989
* Get available bytes in buffer
90-
* @param handle [in] Handle to cirular buffer
90+
* @param handle [in] Handle to circular buffer
9191
* @return number of bytes available or negative value on error
9292
*/
9393
int circbuf_getcount(int handle);
9494

9595
/**
96-
* Clear and reset curcular buffer
96+
* Clear and reset circular buffer
9797
* @param handle [in] Handle to circular buffer
9898
* @return Always returns 0
9999
*/

include/command.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/**
1111
* Maximum number of allowed arguments
12-
* including commmand
12+
* including command
1313
*/
1414
#define CMD_MAX_ARGS 16
1515

include/filter.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/**
22
* @file filter.h
3-
* @author Ajay Bhargav
43
* @brief Filter library to use with ADC
5-
*
64
*/
75

86
#ifndef INC_FILTER_H_

include/gpslib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ struct gpsdata_t {
9494
double lng; /**< Longitude in degree */
9595
float altitude; /**< Altitude value in meters */
9696
double odom; /**< Odometer value in meteres */
97-
float hdop,pdop; /**< Hdop and Pdop values */
97+
float hdop,pdop; /**< HDOP and PDOP values */
9898
};
9999

100100
/**

include/hw/bluetooth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ int bt_device_init(int mode, const char *name, int use_btcli);
8484

8585
/**
8686
* Turn on/off bluetooth hardware. Bluetooth is enabled by default when device is initialized.
87-
* @param on_off [in] TRUE (1) to turn on or FLASE (0) to turn off
87+
* @param on_off [in] TRUE (1) to turn on or FALSE (0) to turn off
8888
* @return For return value see @ref bterr_e
8989
*/
9090
int bt_device_power(int on_off);

include/hw/gpio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ int gpio_setdir(int handle, int dir);
100100
* GPIO driver provide slow trigger option without debounce support to check and confirm
101101
* active trigger. On active trigger, callback function is called with state of gpio.
102102
* Triggers are only possible on gpio configured as inputs.
103-
* If input level changes after first transition is detected and deounce time,
103+
* If input level changes after first transition is detected and debounce time,
104104
* internal debounce timer is reset for resampling of IO state.
105105
* @param handle Handle to gpio object returned by @ref gpio_request
106106
* @param fn Callback function of type @ref gpio_callback_f

include/hw/imu_sensor.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @file imu_sensor.h
33
* @author Ajay Bhargav
4-
* @brief IMU Sensor fuson library
4+
* @brief IMU Sensor fusion library
55
*
66
*/
77

@@ -73,7 +73,7 @@ typedef void (*imu_eventcb_f)(int event);
7373
/**
7474
* @brief IMU configuration structure
7575
*
76-
* accleration threshold values provided are in unit of g
76+
* acceleration threshold values provided are in unit of g
7777
* e.g. a value of 0.5 is 0.5g = 9.8 x 0.5 = 4.9m/s2
7878
*
7979
* when configuration is not provided, below are the default threshold values
@@ -90,10 +90,10 @@ struct imuconf_t {
9090
float static_threshold; /**< acceleration value below which sensor is considered static */
9191
float motion_detect_threshold; /**< acceleration greater than or equal to this generates motion active event */
9292
float harsh_accel_threshold; /**< acceleration threshold for harsh acceleration */
93-
float harsh_break_threshold; /**< deacceleration threshold for harsh breaking event */
93+
float harsh_break_threshold; /**< deceleration threshold for harsh breaking event */
9494
float harsh_turn_threshold; /**< acceleration threshold while turning */
9595
float tilt_angle; /**< Tilt threshold angle in degree */
96-
float alpha_coff; /**< Alpha cofficient, currently not used */
96+
float alpha_coff; /**< Alpha coefficient, currently not used */
9797
int sample_ms; /**< Data sample rate in miliseconds. lower the better, 20ms is optimal. */
9898
};
9999

@@ -250,7 +250,7 @@ int imu_get_linearaccel(float *ax, float *ay, float *az);
250250

251251
/**
252252
* @brief Get acceleration magnitude without gravity component with direction
253-
* posivity value represents acceleration and negative value represent
253+
* positivity value represents acceleration and negative value represent
254254
* deceleration.
255255
*
256256
* @param force Value of force magnitude in unit of g

include/modem.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extern "C"
1515
#endif
1616

1717
/**
18-
* Maximum recvieve SMS size
18+
* Maximum receieve SMS size
1919
*/
2020
#define SMS_RECV_MAX_SZ 160
2121
#define PH_NUM_MAX_SZ 21
@@ -26,7 +26,7 @@ extern "C"
2626
enum mderror_e
2727
{
2828
MD_SUCCESS = 0, /**< success */
29-
MD_ERR_FAILED = -1, /**< faiure, unknown cause */
29+
MD_ERR_FAILED = -1, /**< failure, unknown cause */
3030
MD_ERR_TIMEOUT = -2, /**< operation timeout */
3131
MD_ERR_BUSY = -3, /**< modem busy */
3232
MD_ERR_INVALID_PARAM = -4, /**< Invalid parameter */
@@ -138,7 +138,7 @@ int md_sms_delete(int index, int mode);
138138
* Set modem CFUN state
139139
*
140140
* @param cfun [in] CFUN value to set
141-
* @param rst [in] reset after setting cfun value
141+
* @param rst [in] reset after setting CFUN value
142142
* @return 0 on success, error otherwise (@ref mderror_e)
143143
*/
144144
int md_cfun_set(int cfun, int rst);
@@ -152,7 +152,7 @@ int md_cfun_get(void);
152152
/**
153153
* Initiate a call
154154
* This is a non-blocking call, If operation is success
155-
* Call status will be retured as URC response.
155+
* Call status will be returned as URC response.
156156
*
157157
* @param phonenum [in] Number to call
158158
* @return 0 on success, error otherwise (@ref mderror_e)

include/net/sockets.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ int socket_request(int type);
137137
/**
138138
* Set socket options
139139
* @param id [in] Socket ID
140-
* @param opts [in] socket option sturcture see @ref sockopt_t
140+
* @param opts [in] socket option structure see @ref sockopt_t
141141
* @return 0 on success, negative value on error
142142
*/
143143
int socket_setopt(int id, struct sockopt_t *opts);

include/plat/def_pwm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ enum pwm1_prd_e {
1818
};
1919

2020
/**
21-
* PWM Channel 1 - Fixed Ontime/Duty cycle in milliseconds
21+
* PWM Channel 1 - Fixed On-time/Duty cycle in milliseconds
2222
* @note: Only for Platform with RDA8910 SoC
2323
*/
2424
enum pwm1_duty_e {

0 commit comments

Comments
 (0)