mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-26 19:29:24 +00:00
Merge branch 'master' of git://git.devl.org/git/malvira/mc1322x-tests
This commit is contained in:
commit
e6d42dc4b2
@ -155,27 +155,7 @@ void main(void) {
|
|||||||
/* for OTAP */
|
/* for OTAP */
|
||||||
for(i=0; i<len; i++) {
|
for(i=0; i<len; i++) {
|
||||||
c = getc();
|
c = getc();
|
||||||
// put_hex(c);
|
err = nvm_write(gNvmInternalInterface_c, type, &c, 8+i, 1);
|
||||||
// puts(": ");
|
|
||||||
|
|
||||||
/*for some reason I have to hard code the type here for it to work reliably */
|
|
||||||
// err = nvm_write(gNvmInternalInterface_c, type, &c, 4+i, 1);
|
|
||||||
switch(type)
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
err = nvm_write(gNvmInternalInterface_c, 1, &c, 8+i, 1);
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
err = nvm_write(gNvmInternalInterface_c, 2, &c, 8+i, 1);
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
err = nvm_write(gNvmInternalInterface_c, 3, &c, 8+i, 1);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// puts("nvm_write returned: 0x");
|
|
||||||
// put_hex(err);
|
|
||||||
// puts("\n\r");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
puts("flasher done\n\r");
|
puts("flasher done\n\r");
|
||||||
|
@ -115,7 +115,7 @@ void main(void) {
|
|||||||
init_phy();
|
init_phy();
|
||||||
|
|
||||||
set_power(0x0f); /* 0dbm */
|
set_power(0x0f); /* 0dbm */
|
||||||
set_channel(1); /* channel 11 */
|
set_channel(0); /* channel 11 */
|
||||||
|
|
||||||
reg(MACA_CONTROL) = SMAC_MACA_CNTL_INIT_STATE;
|
reg(MACA_CONTROL) = SMAC_MACA_CNTL_INIT_STATE;
|
||||||
for(i=0; i<DELAY; i++) { continue; }
|
for(i=0; i<DELAY; i++) { continue; }
|
||||||
|
@ -151,7 +151,7 @@ void main(void) {
|
|||||||
init_phy();
|
init_phy();
|
||||||
|
|
||||||
set_power(0x0f); /* 0dbm */
|
set_power(0x0f); /* 0dbm */
|
||||||
set_channel(1); /* channel 11 */
|
set_channel(0); /* channel 11 */
|
||||||
|
|
||||||
reg(MACA_CONTROL) = SMAC_MACA_CNTL_INIT_STATE;
|
reg(MACA_CONTROL) = SMAC_MACA_CNTL_INIT_STATE;
|
||||||
for(i=0; i<DELAY; i++) { continue; }
|
for(i=0; i<DELAY; i++) { continue; }
|
||||||
|
Loading…
Reference in New Issue
Block a user