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

📄 main.c

📁 nordic 2.4G RF transceiver nRF24z01 firmware source code.
💻 C
字号:
/*= main.c =====================================================================
 *
 * Copyright (C) 2005 Nordic Semiconductor
 *
 * This file is distributed in the hope that it will be useful, but WITHOUT
 * WARRANTY OF ANY KIND.
 *
 * Author(s): B鴕ge Strand
 *
 * Compiler: Tested with WinAVR, avr-gcc (GCC) 3.4.3
 *
 * Revision: 1.0 
 *
 *==============================================================================
 */


#include "main.h"

int main(void) {
	mcu_init();
	#ifdef SLAVE_SPI
		mcu_spi_master_init();						// Enable SPI slave interface to Z1
	#endif
	#ifdef SLAVE_2W
		mcu_2w_master_init();						// Enable 2-wire slave interface to Z1
	#endif
	mcu_uart_init();								// Enable UART for debug

	volume = 0xFF;									// Volume is not initiated, dac_init() gives default value
	
	DB_PRINTF (PSTR ("\r\n\r\n---------RESET---------\r\n\r\n"));
	db_hex();										// Run debug interface
}

⌨️ 快捷键说明

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