Remove TABs

This commit is contained in:
Gregory Nutt
2015-10-04 16:01:02 -06:00
parent fc58f7e538
commit ef5959a9d1
4 changed files with 45 additions and 48 deletions
+20 -20
View File
@@ -108,19 +108,19 @@ void board_led_on(int led)
switch (led)
{
case 0:
case 2:
off = true;
break;
case 0:
case 2:
off = true;
break;
case 1:
off = false;
case 1:
off = false;
g_ncstate = false;
break;
break;
default:
return;
}
default:
return;
}
lpc17_gpiowrite(LPCXPRESSO_LED, off);
}
@@ -135,18 +135,18 @@ void board_led_off(int led)
switch (led)
{
case 0:
case 1:
off = false;
break;
case 0:
case 1:
off = false;
break;
case 2:
off = g_ncstate;
break;
case 2:
off = g_ncstate;
break;
default:
return;
}
default:
return;
}
lpc17_gpiowrite(LPCXPRESSO_LED, off);
}
+2 -1
View File
@@ -235,10 +235,11 @@ void board_led_off(int led)
}
else if (led > LED_STACKCREATED)
{
/* This shouldn't happen */
/* This shouldn't happen */
led--;
}
ledset = g_ledstate[led];
up_setleds(ledset & GREENYELLOW_LED_MASK, ledset & RED_LED_MASK);
g_prevled[g_nestlevel]= led;
+14 -18
View File
@@ -44,40 +44,36 @@
* Public Functions
****************************************************************************/
/** Set external clock frequency, or disable it
*/
/* Set external clock frequency, or disable it */
int chipcon_setXclock(int prescaler)
{
// check present state, if it is enabled (in the chip!)
// change state and with OK if everything is OK.
return ERROR;
// check present state, if it is enabled (in the chip!)
// change state and with OK if everything is OK.
return ERROR;
}
int chipcon_setchannel(uint16_t channel)
{
}
void chipcon_init(int spino)
{
// create stream driver, where STDIN is packet oriented
// means that two messages received are kept separated
// in internal buffers.
// default mode is AUTO, RX enabled and auto TX on writes and
// when chipcon is IDLE.
// create stream driver, where STDIN is packet oriented
// means that two messages received are kept separated
// in internal buffers.
// default mode is AUTO, RX enabled and auto TX on writes and
// when chipcon is IDLE.
}
void chipcon_open(void)
{
}
void chipcon_ioctl(void)
{
// access to setXclock
// access to setXclock
}
+9 -9
View File
@@ -121,11 +121,11 @@ typedef unsigned char vsn_sif_gpio_t;
# define VSN_SIF_GPIO_READ_MASK 0x40 ///< Readout mask
#define VSN_SIF_ANOUT_LOW 0 // Pseudo Analog Output acts as GPIO
#define VSN_SIF_ANOUT_HIGH 1 // Pseudo Analog Output acts as GPIO high
#define VSN_SIF_ANOUT_HIGHPWR 2 // ... acts as high power output
#define VSN_SIF_ANOUT_PWM 3 // ... acts as PWM output
#define VSN_SIF_ANOUT_PWMPWR 4 // acts as power PWM output
#define VSN_SIF_ANOUT_LOW 0 // Pseudo Analog Output acts as GPIO
#define VSN_SIF_ANOUT_HIGH 1 // Pseudo Analog Output acts as GPIO high
#define VSN_SIF_ANOUT_HIGHPWR 2 // ... acts as high power output
#define VSN_SIF_ANOUT_PWM 3 // ... acts as PWM output
#define VSN_SIF_ANOUT_PWMPWR 4 // acts as power PWM output
#define VSN_SIF_ANIN_GAINMASK 7
#define VSN_SIF_ANIN_GAIN1 0
@@ -148,21 +148,21 @@ typedef unsigned char vsn_sif_gpio_t;
#define VSN_SIF_ANIN_OVERSMP1
#define VSN_SIF_ANIN_OVERSMP2
#define VSN_SIF_ANIN_OVERSMP4
#define VSN_SIF_ANIN_OVERSMP8
#define VSN_SIF_ANIN_OVERSMP8
#define VSN_SIF_ANIN_OVERSMP16
struct vsn_sif_s {
vsn_sif_state_t state; // activity
unsigned char opencnt; // open count
vsn_sif_gpio_t gpio[2];
unsigned char anout_opts;
unsigned short int anout_width;
unsigned short int anout_period; // setting it to 0, disables PWM
unsigned short int anout_samplerate; // as written by write()
unsigned short int anref_width;
unsigned short int anref_period; // setting it to 0, disables PWM
unsigned short int anref_samplerate; // as written by write()
@@ -535,7 +535,7 @@ extern int cc1101_eventcb(int irq, FAR void *context);
int sif_main(int argc, char *argv[])
{
if (argc >= 2) {
if (argc >= 2) {
if (!strcmp(argv[1], "init")) {
return sif_init();
}