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

📄 host.h

📁 this the firmware provided freely for the trf7960
💻 H
字号:
//----------------------------------
//Header file with functions for
//host communication.
//It uses the hardware USART
//in the MSP430.
//----------------------------------
#include <MSP430x15x.h>     	//can't be greater than 256+13
#include <stdio.h>
#include "hardware.h"
#include "globals.h"

#define BAUD0	0x3B	//baud rate generator = 115200
#define BAUD1	0x00
#define BAUD0EN 0x2B	//baud rate for DCO = 4.9MHz
#define BAUD1EN 0x00

void USARTset(void);
void BaudSet(unsigned char mode);
void kputchar(char TXchar);
void put_bksp(void);
void put_space(void);
void put_crlf(void);
void send_cstring(char *pstr);
unsigned char Nibble2Ascii (unsigned char anibble);
void Put_byte(unsigned char abyte);
unsigned char Get_nibble(void);
unsigned char Get_line (unsigned char *pline);
void HostCommands(void);
#pragma vector=USART0RX_VECTOR
__interrupt void RXhandler(void);

⌨️ 快捷键说明

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