Code style fixes: cc2430
This commit is contained in:
parent
b4bb51e811
commit
874bec26a5
|
@ -686,8 +686,7 @@ off(void)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
const struct radio_driver cc2430_rf_driver =
|
const struct radio_driver cc2430_rf_driver = {
|
||||||
{
|
|
||||||
init,
|
init,
|
||||||
prepare,
|
prepare,
|
||||||
transmit,
|
transmit,
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Constants */
|
/* Constants */
|
||||||
typedef enum rf_address_mode_t
|
typedef enum rf_address_mode_t {
|
||||||
{
|
|
||||||
RF_DECODER_NONE = 0,
|
RF_DECODER_NONE = 0,
|
||||||
RF_DECODER_COORDINATOR,
|
RF_DECODER_COORDINATOR,
|
||||||
RF_SOFTACK_MONITOR,
|
RF_SOFTACK_MONITOR,
|
||||||
|
|
|
@ -25,7 +25,7 @@ void uart0_set_input(int (*input)(unsigned char c));
|
||||||
void uart0_rx_ISR(void) __interrupt(URX0_VECTOR);
|
void uart0_rx_ISR(void) __interrupt(URX0_VECTOR);
|
||||||
void uart0_tx_ISR(void) __interrupt(UTX0_VECTOR);
|
void uart0_tx_ISR(void) __interrupt(UTX0_VECTOR);
|
||||||
/* Macro to turn on / off UART RX Interrupt */
|
/* Macro to turn on / off UART RX Interrupt */
|
||||||
#define UART0_RX_INT(v) IEN0_URX0IE = v
|
#define UART0_RX_INT(v) do { IEN0_URX0IE = v; } while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* UART_0_H */
|
#endif /* UART_0_H */
|
||||||
|
|
|
@ -25,7 +25,7 @@ void uart1_set_input(int (*input)(unsigned char c));
|
||||||
void uart1_rx_ISR(void) __interrupt(URX1_VECTOR);
|
void uart1_rx_ISR(void) __interrupt(URX1_VECTOR);
|
||||||
void uart1_tx_ISR(void) __interrupt(UTX1_VECTOR);
|
void uart1_tx_ISR(void) __interrupt(UTX1_VECTOR);
|
||||||
/* Macro to turn on / off UART RX Interrupt */
|
/* Macro to turn on / off UART RX Interrupt */
|
||||||
#define UART1_RX_INT(v) IEN0_URX1IE = v
|
#define UART1_RX_INT(v) do { IEN0_URX1IE = v; } while(0)
|
||||||
#else
|
#else
|
||||||
#define UART1_RX_INT(v)
|
#define UART1_RX_INT(v)
|
||||||
#endif /* UART_ONE_CONF_WITH_INPUT */
|
#endif /* UART_ONE_CONF_WITH_INPUT */
|
||||||
|
|
|
@ -47,4 +47,3 @@ struct mtarch_thread {
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* __MTARCH_H__ */
|
#endif /* __MTARCH_H__ */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue