Code style fixes: cc253x
This commit is contained in:
parent
874bec26a5
commit
380ee3bae9
12 changed files with 74 additions and 76 deletions
|
@ -18,16 +18,16 @@
|
|||
#include "dev/leds.h"
|
||||
|
||||
#if UART0_ENABLE
|
||||
static int (*uart0_input_handler)(unsigned char c);
|
||||
static int (* uart0_input_handler)(unsigned char c);
|
||||
#endif
|
||||
#if UART1_ENABLE
|
||||
static int (*uart1_input_handler)(unsigned char c);
|
||||
static int (* uart1_input_handler)(unsigned char c);
|
||||
#endif
|
||||
|
||||
#if UART0_ENABLE
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
uart0_set_input(int (*input)(unsigned char c))
|
||||
uart0_set_input(int (* input)(unsigned char c))
|
||||
{
|
||||
uart0_input_handler = input;
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ uart0_set_input(int (*input)(unsigned char c))
|
|||
#pragma exclude bits
|
||||
#endif
|
||||
void
|
||||
uart0_rx_isr(void) __interrupt (URX0_VECTOR)
|
||||
uart0_rx_isr(void) __interrupt(URX0_VECTOR)
|
||||
{
|
||||
ENERGEST_ON(ENERGEST_TYPE_IRQ);
|
||||
leds_toggle(LEDS_YELLOW);
|
||||
|
@ -55,7 +55,7 @@ uart0_rx_isr(void) __interrupt (URX0_VECTOR)
|
|||
#if UART1_ENABLE
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
uart1_set_input(int (*input)(unsigned char c))
|
||||
uart1_set_input(int (* input)(unsigned char c))
|
||||
{
|
||||
uart1_input_handler = input;
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ uart1_set_input(int (*input)(unsigned char c))
|
|||
#pragma exclude bits
|
||||
#endif
|
||||
void
|
||||
uart1_rx_isr(void) __interrupt (URX1_VECTOR)
|
||||
uart1_rx_isr(void) __interrupt(URX1_VECTOR)
|
||||
{
|
||||
ENERGEST_ON(ENERGEST_TYPE_IRQ);
|
||||
URX1IF = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue