main.c

来自「nordic 2.4G RF transceiver nRF24z01 firm」· C语言 代码 · 共 35 行

C
35
字号
/*= 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 + =
减小字号Ctrl + -
显示快捷键?