23
23
#include " platform/SingletonPtr.h"
24
24
#include " platform/PlatformMutex.h"
25
25
26
- /* This is invalid warning from the compiler for below section of code
26
+ /* This is an invalid warning from the compiler for the below section of code
27
27
if ((width < 8) && (NULL == _crc_table)) {
28
28
p_crc = (uint32_t)(p_crc << (8 - width));
29
29
}
@@ -47,16 +47,16 @@ extern SingletonPtr<PlatformMutex> mbed_crc_mutex;
47
47
48
48
/* * CRC object provides CRC generation through hardware or software
49
49
*
50
- * CRC sums can be generated using three different method : hardware, software ROM tables
50
+ * CRC sums can be generated using three different methods : hardware, software ROM tables
51
51
* and bitwise computation. The mode used is selected automatically based on required
52
52
* polynomial and hardware capabilities. Any polynomial in standard form (`x^3 + x + 1`)
53
53
* can be used for computation, but custom ones can affect the performance.
54
54
*
55
- * First choice is the hardware mode, the supported polynomial are hardware specific and
56
- * you will need to consult your MCU manual to discover them. Next ROM polynomial tables
57
- * are tried (you can find list of supported polynomials here ::crc_polynomial) if selected
58
- * configuration is supported it will accelerate the software computations. If ROM tables
59
- * are not available for selected polynomial then CRC is computed at runtime bit by bit
55
+ * First choice is the hardware mode. The supported polynomials are hardware specific, and
56
+ * you need to consult your MCU manual to discover them. Next, ROM polynomial tables
57
+ * are tried (you can find list of supported polynomials here ::crc_polynomial). If the selected
58
+ * configuration is supported, it will accelerate the software computations. If ROM tables
59
+ * are not available for the selected polynomial, then CRC is computed at run time bit by bit
60
60
* for all data input.
61
61
* @note Synchronization level: Thread safe
62
62
*
0 commit comments