Skip to content

emb/runtime/volatile, emb/machine#8

Merged
xushiwei merged 3 commits into
goplus:mainfrom
xushiwei:q
Jun 26, 2025
Merged

emb/runtime/volatile, emb/machine#8
xushiwei merged 3 commits into
goplus:mainfrom
xushiwei:q

Conversation

@xushiwei

Copy link
Copy Markdown
Member

No description provided.

@xushiwei xushiwei merged commit bc42bc7 into goplus:main Jun 26, 2025
2 checks passed

// 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A Note is recommended to use "MARKER(uid): note body" format.

Details

lint 解释

这个lint结果提示建议在注释中使用特定的格式,即“MARKER(uid): note body”,以提高代码的可读性和一致性。

错误用法

以下是一个错误的注释示例:

// 这是一个错误的注释格式

正确用法

以下是一个正确的注释示例:

// MARKER(12345): 这是一个正确的注释格式,使用了推荐的格式

💡 以上内容由 AI 辅助生成,如有疑问欢迎反馈交流

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant