@Embedded_Sys_Path · 215 subscribers
The short link opens the channel straight in the Telegram app — not in a browser tab.
tg.me/go/Embedded_Sys_PathIs this your channel? Add @tgme as admin — and see how many people click your links. Get the stats →
Channel created February 6, 2024per Telegram
We have been tracking it since August 16, 2026
In all that time the channel has changed neither its name, nor its @username, nor its avatar.
We show only what we have seen ourselves.
[media, no text]
🌱پاسخ 👇 چون کامپایلر ممکنه با خودش بگه: من این flag رو نگاه کردم، صفره و توی این حلقه هم هیچجا تغییرش نمیدی؛ پس لازم نیست هی دوباره از حافظه بخونمش بنابراین ممکنه مقدار flag رو یک بار بخونه و همون مقدار صفر رو نگه داره. اما مشکل اینجاست که Interrupt خارج از روند عادی برنامه میتونه flag رو تغیی…
فرض کن این کد رو داریم: volatile int flag = 0; void main(void) { while (flag == 0) { // wait } } void ISR(void) { flag = 1; } اگر flag داخل Interrupt تغییر کنه، چرا استفاده از volatile مهمه؟ مگه CPU خودش نمیبینه که مقدار flag عوض شده؟ 🤔
[media, no text]
[media, no text]