mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Code style fixes: cc2430
This commit is contained in:
parent
b4bb51e811
commit
874bec26a5
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -47,4 +47,3 @@ struct mtarch_thread {
|
||||
};
|
||||
|
||||
#endif /* __MTARCH_H__ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user