Merge branch 'master' of git://git.devl.org/git/malvira/mc1322x-tests

This commit is contained in:
Mariano Alvira 2009-08-10 16:53:02 -04:00
commit e6d42dc4b2
3 changed files with 3 additions and 23 deletions

View File

@ -155,27 +155,7 @@ void main(void) {
/* for OTAP */
for(i=0; i<len; i++) {
c = getc();
// put_hex(c);
// 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");
err = nvm_write(gNvmInternalInterface_c, type, &c, 8+i, 1);
}
puts("flasher done\n\r");

View File

@ -115,7 +115,7 @@ void main(void) {
init_phy();
set_power(0x0f); /* 0dbm */
set_channel(1); /* channel 11 */
set_channel(0); /* channel 11 */
reg(MACA_CONTROL) = SMAC_MACA_CNTL_INIT_STATE;
for(i=0; i<DELAY; i++) { continue; }

View File

@ -151,7 +151,7 @@ void main(void) {
init_phy();
set_power(0x0f); /* 0dbm */
set_channel(1); /* channel 11 */
set_channel(0); /* channel 11 */
reg(MACA_CONTROL) = SMAC_MACA_CNTL_INIT_STATE;
for(i=0; i<DELAY; i++) { continue; }