mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
boards/pba-d-01-kw2x: Replace tabs by spaces
This commit is contained in:
parent
369e7bbf43
commit
36849276b3
12
boards/pba-d-01-kw2x/dist/mkw22d512.cfg
vendored
12
boards/pba-d-01-kw2x/dist/mkw22d512.cfg
vendored
@ -18,9 +18,9 @@ if { [info exists CHIPNAME] } {
|
||||
set WORKAREASIZE 0x4000
|
||||
|
||||
if { [info exists WORKAREASIZE] } {
|
||||
set _WORKAREASIZE $WORKAREASIZE
|
||||
set _WORKAREASIZE $WORKAREASIZE
|
||||
} else {
|
||||
set _WORKAREASIZE 0x1000
|
||||
set _WORKAREASIZE 0x1000
|
||||
}
|
||||
|
||||
if { [info exists ENDIAN] } {
|
||||
@ -49,7 +49,7 @@ $_CHIPNAME.cpu configure -event examine-start { puts "START..." ; }
|
||||
# causes "kinetis mdm check_security" to fail the first time openocd
|
||||
# calls it when it tries to connect after the CPU has been power-cycled.
|
||||
$_CHIPNAME.cpu configure -event examine-end {
|
||||
kinetis mdm check_security
|
||||
kinetis mdm check_security
|
||||
}
|
||||
|
||||
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
||||
@ -61,9 +61,9 @@ flash bank $_FLASHNAME kinetis 0 0 0 0 $_TARGETNAME
|
||||
adapter_khz 1000
|
||||
|
||||
if {![using_hla]} {
|
||||
# if srst is not fitted use SYSRESETREQ to
|
||||
# perform a soft reset
|
||||
cortex_m reset_config sysresetreq
|
||||
# if srst is not fitted use SYSRESETREQ to
|
||||
# perform a soft reset
|
||||
cortex_m reset_config sysresetreq
|
||||
}
|
||||
|
||||
$_TARGETNAME configure -event reset-init {
|
||||
|
44
boards/pba-d-01-kw2x/dist/pll_freq.m
vendored
44
boards/pba-d-01-kw2x/dist/pll_freq.m
vendored
@ -9,14 +9,14 @@ tmp_frac = 0;
|
||||
tmp_int = 11;
|
||||
|
||||
while (i <= length(F))
|
||||
tmp_frac = (F(i)./32 - tmp_int - 64).*65536;
|
||||
if tmp_frac >= 65536
|
||||
tmp_int++;
|
||||
else
|
||||
PLL_FRAC0 = [PLL_FRAC0 tmp_frac];
|
||||
PLL_INT0 = [PLL_INT0 tmp_int];
|
||||
i++;
|
||||
endif
|
||||
tmp_frac = (F(i)./32 - tmp_int - 64).*65536;
|
||||
if tmp_frac >= 65536
|
||||
tmp_int++;
|
||||
else
|
||||
PLL_FRAC0 = [PLL_FRAC0 tmp_frac];
|
||||
PLL_INT0 = [PLL_INT0 tmp_int];
|
||||
i++;
|
||||
endif
|
||||
endwhile
|
||||
|
||||
%F
|
||||
@ -26,17 +26,17 @@ endwhile
|
||||
|
||||
printf("static const uint8_t pll_int_lt[%d] = {\n", length(F));
|
||||
for i = 1:4:length(F)
|
||||
printf(" ");
|
||||
printf("%d,", PLL_INT0(i:1:i+3));
|
||||
printf("\n");
|
||||
printf(" ");
|
||||
printf("%d,", PLL_INT0(i:1:i+3));
|
||||
printf("\n");
|
||||
endfor
|
||||
printf("};\n");
|
||||
printf("\n");
|
||||
printf("static const uint16_t pll_frac_lt[%d] = {\n", length(F));
|
||||
for i = 1:4:length(F)
|
||||
printf(" ");
|
||||
printf("%d,", PLL_FRAC0(i:1:i+3));
|
||||
printf("\n");
|
||||
printf(" ");
|
||||
printf("%d,", PLL_FRAC0(i:1:i+3));
|
||||
printf("\n");
|
||||
endfor
|
||||
printf("};\n\n");
|
||||
|
||||
@ -53,10 +53,10 @@ pow_lt = round(i .* (RANGE_MAX - RANGE_MIN) ./ length(i) + RANGE_MIN);
|
||||
printf("static const uint8_t pow_lt[%d] = {", length(pow_lt));
|
||||
printf(" ");
|
||||
for i = 0:1:length(pow_lt)-1
|
||||
if (rem(i,4) == 0)
|
||||
printf("\n ");
|
||||
endif
|
||||
printf("%d,", pow_lt(i+1));
|
||||
if (rem(i,4) == 0)
|
||||
printf("\n ");
|
||||
endif
|
||||
printf("%d,", pow_lt(i+1));
|
||||
endfor
|
||||
printf("\n};\n\n");
|
||||
|
||||
@ -66,9 +66,9 @@ length(level_lt)
|
||||
|
||||
printf("static const int level_lt[%d] = {", length(level_lt));
|
||||
for i = 0:1:length(level_lt)-1
|
||||
if (rem(i,4) == 0)
|
||||
printf("\n ");
|
||||
endif
|
||||
printf("%d,", level_lt(i+1));
|
||||
if (rem(i,4) == 0)
|
||||
printf("\n ");
|
||||
endif
|
||||
printf("%d,", level_lt(i+1));
|
||||
endfor
|
||||
printf("\n};\n\n");
|
||||
|
@ -57,9 +57,9 @@ extern "C"
|
||||
#define LED_G_GPIO GPIOD /**< GPIO-Device for Green LED*/
|
||||
#define LED_B_PORT PORTA /**< PORT for Blue LED*/
|
||||
#define LED_B_GPIO GPIOA /**< GPIO-Device for Blue LED*/
|
||||
#define LED_R_PIN 6 /**< Red LED connected to PINx*/
|
||||
#define LED_G_PIN 4 /**< Green LED connected to PINx*/
|
||||
#define LED_B_PIN 4 /**< Blue LED connected to PINx*/
|
||||
#define LED_R_PIN 6 /**< Red LED connected to PINx*/
|
||||
#define LED_G_PIN 4 /**< Green LED connected to PINx*/
|
||||
#define LED_B_PIN 4 /**< Blue LED connected to PINx*/
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user