Code style fixes: cc2530dk
This commit is contained in:
parent
380ee3bae9
commit
351a4d39b9
8 changed files with 36 additions and 37 deletions
|
@ -40,26 +40,26 @@ static CC_AT_DATA struct timer debouncetimer;
|
|||
/*---------------------------------------------------------------------------*/
|
||||
/* Button 1 - SmartRF and cc2531 USB Dongle */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static
|
||||
int value_b1(int type)
|
||||
static int
|
||||
value_b1(int type)
|
||||
{
|
||||
type;
|
||||
return BUTTON_READ(1) || !timer_expired(&debouncetimer);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static
|
||||
int status_b1(int type)
|
||||
static int
|
||||
status_b1(int type)
|
||||
{
|
||||
switch (type) {
|
||||
switch(type) {
|
||||
case SENSORS_ACTIVE:
|
||||
case SENSORS_READY:
|
||||
return BUTTON_IRQ_ENABLED(1);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static
|
||||
int configure_b1(int type, int value)
|
||||
static int
|
||||
configure_b1(int type, int value)
|
||||
{
|
||||
switch(type) {
|
||||
case SENSORS_HW_INIT:
|
||||
|
@ -88,26 +88,26 @@ int configure_b1(int type, int value)
|
|||
/* Button 2 - cc2531 USb Dongle only */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if MODEL_CC2531
|
||||
static
|
||||
int value_b2(int type)
|
||||
static int
|
||||
value_b2(int type)
|
||||
{
|
||||
type;
|
||||
return BUTTON_READ(2) || !timer_expired(&debouncetimer);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static
|
||||
int status_b2(int type)
|
||||
static int
|
||||
status_b2(int type)
|
||||
{
|
||||
switch (type) {
|
||||
switch(type) {
|
||||
case SENSORS_ACTIVE:
|
||||
case SENSORS_READY:
|
||||
return BUTTON_IRQ_ENABLED(2);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static
|
||||
int configure_b2(int type, int value)
|
||||
static int
|
||||
configure_b2(int type, int value)
|
||||
{
|
||||
switch(type) {
|
||||
case SENSORS_HW_INIT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue