⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 initial._c

📁 著名的RF射频芯片nRF2401应用程序
💻 _C
字号:
//ICC-AVR application builder : 2006-8-29 21:21:04
// Target : M8
// Crystal: 8.0000Mhz

#include <iom8v.h>
#include <macros.h>

void port_init(void)
{
 DDRB  = 0x46;     //0100 0110
 PORTB = 0x80;     //1000 0000
 
 DDRC  = 0x0A;     //0000 1010
 PORTC = 0x00;     //m103 output only
 
 DDRD  = 0xF0;     //1111 0000
 PORTD = 0xEC;     //1110 1100
 
}

void init_devices(void)
{
 CLI(); //disable all interrupts
 port_init();
 //nrf2401A_Init();
 MCUCR = 0x02;
 GICR  = 0x40;
 TIMSK = 0x00; //timer interrupt sources
 
 SEI(); //re-enable interrupts
 
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -