代码搜索结果
找到约 10,000 项符合
USART 的代码
usart.h
#if !defined(USART_H)
#define USART_H
#if defined UCART_C
int usart_putchar(char c);
void init_usart(void);
#else
extern int usart_putchar(char c);
extern void init_usart(void);
#endif
#endif
usart.h
/***************************************************
usart.h 2006.11.19 Panda The header file of usart.c
*******************************************************/
#ifndef _USART_H
#define _US
usart.c
/*************************************************************
* Target: usart communication
* File name: usart.c
* Date: 2006.11.19
* Author: Panda
**********************************************
usart.c
//*----------------------------------------------------------------------------
//* File Name : usart.c
//* Object : usart application written in C
//* Creation :
usart.mak
CC = iccavr
CFLAGS = -IC:\icc\include\ -e -DATMEGA -DATMega32 -l -g -Mavr_enhanced
ASFLAGS = $(CFLAGS) -Wa-g
LFLAGS = -LC:\icc\lib\ -g -ucrtatmega.o -bfunc_lit:0x54.0x8000 -dram_end:0x85f -bda
usart.mp
NOTE: AVR Code addresses are word addresses
All other addresses (including ones in FLASH) are byte addresses
Area Addr Size Decimal Bytes (Attributes)
----------
usart._c
#include
#include
#include
void port_init(void)
{
PORTA = 0x00;
DDRA = 0x00;
PORTB = 0x00;
DDRB = 0x00;
PORTC = 0x00; //m103 output only
DDRC = 0x00;
usart.hex
:040000000C943B0021
:140054005757572E4F55524156522E434F4D204D59204E4104
:140068004D4520495320504153594F4E4700CFE5D8E0CDBFFD
:14007C00DEBFC051D0400AEA08830024E2E8F0E010E0E43869
:14009000F10711F0019
usart.c
#include
#include
#include
void port_init(void)
{
PORTA = 0x00;
DDRA = 0x00;
PORTB = 0x00;
DDRB = 0x00;
PORTC = 0x00; //m103 output only
DDRC = 0x00;