emb/runtime/volatile, emb/machine#8
Conversation
|
|
||
| // The Serial port always points to the default UART in a simulated environment. | ||
| // | ||
| // TODO: perhaps this should be a special serial object that outputs via WASI |
There was a problem hiding this comment.
A Note is recommended to use "MARKER(uid): note body" format.
Details
lint 解释
这个lint结果提示在注释中使用“MARKER(uid): note body”格式是一个推荐的做法。这意味着在编写注释时,应该遵循这种特定的格式来提高代码的可读性和一致性。
错误用法
以下是一个错误的注释示例:
// 这是一个注释正确用法
以下是一个正确的注释示例:
// MARKER(12345): 这是一个注释💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流
| func (i2c *I2C) getFreqRange(br uint32) uint32 { | ||
| // This is a 'magic' value calculated by STM32CubeMX | ||
| // for 80MHz PCLK1. | ||
| // TODO: Do calculations based on PCLK1 |
There was a problem hiding this comment.
A Note is recommended to use "MARKER(uid): note body" format.
Details
lint 解释
这个lint结果提示在注释中使用“MARKER(uid): note body”格式是一个推荐的做法。这意味着在编写注释时,应该遵循特定的格式来提高代码的可读性和一致性。
错误用法
以下是一个错误的注释示例:
// 这是一个错误的注释示例正确用法
以下是一个正确的注释示例:
// MARKER(12345): 这是一个正确的注释示例💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流
| } | ||
|
|
||
| // Get returns the current value of a ADC pin in the range 0..0xffff. | ||
| // TODO: DMA based implementation. |
There was a problem hiding this comment.
A Note is recommended to use "MARKER(uid): note body" format.
Details
lint 解释
这个lint结果提示建议使用“MARKER(uid): note body”格式来编写注释。
错误用法
// 这是一个错误的注释示例正确用法
// MARKER(12345): 这是一个正确的注释示例💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流
| // Configure initializes i2c peripheral and configures I2C config's pins passed. | ||
| // Here's a list of valid SDA and SCL GPIO pins on bus I2C0 of the rp2040: | ||
| // | ||
| // SDA: 0, 4, 8, 12, 16, 20 |
There was a problem hiding this comment.
A Note is recommended to use "MARKER(uid): note body" format.
Details
lint 解释
这个lint结果提示建议在注释中使用特定的格式,即“MARKER(uid): note body”,以提高代码的可读性和一致性。
错误用法
以下是一个错误的注释示例:
// 这是一个注释正确用法
以下是正确的注释示例:
// MARKER(12345): 这是一个注释💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流
| // Here's a list of valid SDA and SCL GPIO pins on bus I2C0 of the rp2040: | ||
| // | ||
| // SDA: 0, 4, 8, 12, 16, 20 | ||
| // SCL: 1, 5, 9, 13, 17, 21 |
There was a problem hiding this comment.
A Note is recommended to use "MARKER(uid): note body" format.
Details
lint 解释
这个lint结果提示建议在注释中使用特定的格式,即“MARKER(uid): note body”,以提高代码的可读性和一致性。
错误用法
以下是一个错误的注释示例:
// 这是一个注释正确用法
以下是正确的注释示例:
// MARKER(12345): 这是一个注释💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流
| // | ||
| // Same as above for I2C1 bus: | ||
| // | ||
| // SDA: 2, 6, 10, 14, 18, 26 |
There was a problem hiding this comment.
A Note is recommended to use "MARKER(uid): note body" format.
Details
lint 解释
这个lint结果提示建议在注释中使用特定的格式,即“MARKER(uid): note body”,以提高代码的可读性和一致性。
错误用法
以下是一个错误的注释示例:
// 这是一个注释正确用法
以下是正确的注释示例:
// MARKER(12345): 这是一个注释💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流
| // Same as above for I2C1 bus: | ||
| // | ||
| // SDA: 2, 6, 10, 14, 18, 26 | ||
| // SCL: 3, 7, 11, 15, 19, 27 |
There was a problem hiding this comment.
A Note is recommended to use "MARKER(uid): note body" format.
Details
lint 解释
这个lint结果提示建议在注释中使用特定的格式,即“MARKER(uid): note body”,以提高代码的可读性和一致性。
错误用法
以下是一个错误的注释示例:
// 这是一个注释正确用法
以下是正确的注释示例:
// MARKER(12345): 这是一个注释💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流
| if usbLineInfo.dwDTERate == 1200 && usbLineInfo.lineState&usb_CDC_LINESTATE_DTR == 0 { | ||
| machine.EnterBootloader() | ||
| } else { | ||
| // TODO: cancel any reset |
There was a problem hiding this comment.
A Note is recommended to use "MARKER(uid): note body" format.
Details
lint 解释
这个lint结果提示在注释中使用“MARKER(uid): note body”格式是一个建议。这意味着在编写注释时,应该遵循这种特定的格式来提高代码的可读性和一致性。
错误用法
以下是一个错误的注释示例:
// 这是一个错误的注释示例正确用法
以下是一个正确的注释示例:
// MARKER(12345): 这是一个正确的注释示例💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流
| } | ||
|
|
||
| if setup.BRequest == usb_CDC_SEND_BREAK { | ||
| // TODO: something with this value? |
There was a problem hiding this comment.
A Note is recommended to use "MARKER(uid): note body" format.
Details
lint 解释
这个lint结果提示建议在注释中使用特定的格式,即“MARKER(uid): note body”,以提高代码的可读性和一致性。
错误用法
以下是一个错误的注释示例:
// 这是一个错误的注释格式正确用法
以下是一个正确的注释示例:
// MARKER(12345): 这是一个正确的注释格式,使用了推荐的格式💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流
| if usbLineInfo.dwDTERate == 1200 && usbLineInfo.lineState&usb_CDC_LINESTATE_DTR == 0 { | ||
| machine.EnterBootloader() | ||
| } else { | ||
| // TODO: cancel any reset |
There was a problem hiding this comment.
A Note is recommended to use "MARKER(uid): note body" format.
Details
lint 解释
这个lint结果提示建议在注释中使用特定的格式,即“MARKER(uid): note body”,以提高代码的可读性和一致性。
错误用法
以下是一个错误的注释示例:
// 这是一个错误的注释格式正确用法
以下是一个正确的注释示例:
// MARKER(12345): 这是一个正确的注释格式,使用了推荐的格式💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流
No description provided.