Code style fixes: cc2430

This commit is contained in:
George Oikonomou 2012-12-16 12:44:44 +00:00
parent b4bb51e811
commit 874bec26a5
16 changed files with 99 additions and 102 deletions

View file

@ -686,8 +686,7 @@ off(void)
return 1;
}
/*---------------------------------------------------------------------------*/
const struct radio_driver cc2430_rf_driver =
{
const struct radio_driver cc2430_rf_driver = {
init,
prepare,
transmit,

View file

@ -16,8 +16,7 @@
#endif
/* Constants */
typedef enum rf_address_mode_t
{
typedef enum rf_address_mode_t {
RF_DECODER_NONE = 0,
RF_DECODER_COORDINATOR,
RF_SOFTACK_MONITOR,

View file

@ -25,7 +25,7 @@ void uart0_set_input(int (*input)(unsigned char c));
void uart0_rx_ISR(void) __interrupt(URX0_VECTOR);
void uart0_tx_ISR(void) __interrupt(UTX0_VECTOR);
/* 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 /* UART_0_H */

View file

@ -25,7 +25,7 @@ void uart1_set_input(int (*input)(unsigned char c));
void uart1_rx_ISR(void) __interrupt(URX1_VECTOR);
void uart1_tx_ISR(void) __interrupt(UTX1_VECTOR);
/* 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
#define UART1_RX_INT(v)
#endif /* UART_ONE_CONF_WITH_INPUT */

View file

@ -47,4 +47,3 @@ struct mtarch_thread {
};
#endif /* __MTARCH_H__ */