代码搜索结果
找到约 10,000 项符合
USART 的代码
usart.h
#if !defined(USART_H)
#define USART_H
#if defined UCART_C
void usart_putchar(char c);
void init_usart(void);
#else
extern void usart_putchar(char c);
extern void init_usart(void);
#endif
#end
usart.c
#include "includes.h"
#define USART_C
int usart_putchar(char c)
{
if (c == '\n')
usart_putchar('\r');
while(UCSRA & (1
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
#ifndef _SERIAL_H_
#define _SERIAL_H_
#define BAUD 9600
#define FOSC 4000000L
#define NINE 0 /* Use 9bit communication? FALSE=8bit */
#define DIVIDER ((int)(FOSC/(16UL * BAUD) -1))
usart.sdb
[p GLOBOPT AUTOSTATIC PIC14 PICMIDHI PICLOMID ]
"20 C:\Program Files\HI-TECH Software\PICC\9.50\include\pic16f7x.h
[v _TMR0 `Vuc 1 s 1 @1 ]
"21
[v _PCL `Vuc 1 s 1 @2 ]
"22
[v _STATUS `Vuc 1 s
usart.lst
HI-TECH Software PICC Macro Assembler V9.50PL2
Sat Sep 16 09:34:47 2006
1 processor 16F73
2
usart.cce
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
usart.c
#include
#include
#include "usart.h"
void
putch(unsigned char byte)
{
/* output one byte */
while(!TXIF) /* set when register is empty */
continue;
TXREG = byte;
}