mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
clear bit when uart edge is set.
This commit is contained in:
parent
36fec8dd01
commit
f83000af8a
@ -66,6 +66,7 @@ main(void)
|
||||
{
|
||||
#ifdef WITH_SDC
|
||||
sd_cache_t sd_cache;
|
||||
int r;
|
||||
#endif
|
||||
|
||||
msp430_cpu_init();
|
||||
@ -111,19 +112,15 @@ main(void)
|
||||
|
||||
leds_off(LEDS_ALL);
|
||||
|
||||
#ifdef WITH_SDC
|
||||
{
|
||||
int r;
|
||||
#if WITH_SDC
|
||||
sdspi_init();
|
||||
sd_init();
|
||||
r = sd_init_card(&sd_cache);
|
||||
if (r == SD_INIT_SUCCESS) {
|
||||
printf("Found SD card (%lu bytes)\n", sd_get_size());
|
||||
uart_set_mode(UART_MODE_SPI);
|
||||
} else {
|
||||
printf("SD card initialization failed: %d\n", r);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
printf(CONTIKI_VERSION_STRING " started. Node id %u.\n", node_id);
|
||||
@ -168,7 +165,7 @@ main(void)
|
||||
energest_type_set(ENERGEST_TYPE_IRQ, irq_energest);
|
||||
|
||||
if (uart_edge) {
|
||||
_BIS_SR(LPM1_bits + GIE);
|
||||
_BIC_SR(LPM1_bits + GIE);
|
||||
} else {
|
||||
_BIS_SR(LPM1_bits + GIE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user