[En-Nut-Discussion] Yet another patch - EFC in Atmel's ARM7
Krzysztof Sawicki
krzysztof.sawicki at mobile.put.edu.pl
Mon Mar 17 15:15:13 CET 2014
Patch for Atmel's ARM7 with flash bigger than 256kB (e.g. AT91SAM7X)
Index: nut/arch/arm/dev/atmel/at91_efc.c
===================================================================
--- nut/arch/arm/dev/atmel/at91_efc.c (revision 5583)
+++ nut/arch/arm/dev/atmel/at91_efc.c (working copy)
@@ -272,7 +275,7 @@
return At91EfcCmd((off & MC_PAGEN_MASK) | MC_FCMD_SLB,
EFC_WRITE_WAIT);
}
off -= EFC_CHIP_SIZE;
- return At91EfcCmd((off & MC_PAGEN_MASK) | MC_FCMD_SLB, EFC_WRITE_WAIT);
+ return At91EfcCmdEx(1,(off & MC_PAGEN_MASK) | MC_FCMD_SLB,
EFC_WRITE_WAIT);
}
/*!
@@ -288,7 +291,7 @@
return At91EfcCmd((off & MC_PAGEN_MASK) | MC_FCMD_CLB,
EFC_WRITE_WAIT);
}
off -= EFC_CHIP_SIZE;
- return At91EfcCmd((off & MC_PAGEN_MASK) | MC_FCMD_CLB, EFC_WRITE_WAIT);
+ return At91EfcCmdEx(1,(off & MC_PAGEN_MASK) | MC_FCMD_CLB,
EFC_WRITE_WAIT);
}
/*!
--
Krzysztof Sawicki
Mobile Systems Research Labs, Poznan University of Technology
More information about the En-Nut-Discussion
mailing list