Initial commit of cc2430 cpu port files. Currently used by /platform/sensinode.
This commit is contained in:
parent
c4ae18e37b
commit
c9954072c9
19 changed files with 3434 additions and 0 deletions
24
cpu/cc2430/dev/uart.h
Normal file
24
cpu/cc2430/dev/uart.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#ifndef UART_H
|
||||
#define UART_H
|
||||
|
||||
#include "contiki-conf.h"
|
||||
|
||||
#include "cc2430_sfr.h"
|
||||
|
||||
void uart0_init(uint32_t speed);
|
||||
void uart0_writeb(uint8_t byte);
|
||||
|
||||
void uart0_set_input(int (*input)(unsigned char c));
|
||||
|
||||
void uart0_rxISR( void ) __interrupt (URX0_VECTOR);
|
||||
void uart0_txISR( void ) __interrupt (UTX0_VECTOR);
|
||||
|
||||
void uart1_init(uint32_t speed);
|
||||
void uart1_writeb(uint8_t byte);
|
||||
|
||||
void uart1_set_input(int (*input)(unsigned char c));
|
||||
|
||||
void uart1_rxISR( void ) __interrupt (URX1_VECTOR);
|
||||
void uart1_txISR( void ) __interrupt (UTX1_VECTOR);
|
||||
|
||||
#endif /*UART_H*/
|
Loading…
Add table
Add a link
Reference in a new issue