my_idea.c
来自「uart 0f ATMEGA 32 .basic tx rx.」· C语言 代码 · 共 40 行
C
40 行
// ***********************************************************
// Project:
// Author:
// Module description:
// ***********************************************************
#include <avr\io.h> // Most basic include files
#include <avr\interrupt.h> // Add the necessary ones
#include <avr\signal.h> // here
// Define here the global static variables
//
int My_global;
// Interrupt handler example for INT0
//
SIGNAL(SIG_INTERRUPT0) {
}
// It is recommended to use this coding style to
// follow better the mixed C-assembly code in the
// Program Memory window
//
void my_function(void) { // Put the open brace '{' here
asm("nop"); // Inline assembly example
}
// ***********************************************************
// Main program
//
int main(void) {
while(1) { // Infinite loop; define here the
my_function(); // system behaviour
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?