EraseFlashMemory.c 840 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. *====================================================================*/
  8. /*====================================================================*
  9. *
  10. * signed EraseFlashMemory (struct plc * plc);
  11. *
  12. * plc.h
  13. *
  14. * select the appropriate function based on the device type;
  15. *
  16. * Contributor(s):
  17. * Charles Maier <cmaier@qca.qualcomm.com>
  18. *
  19. *--------------------------------------------------------------------*/
  20. #ifndef ERASEFLASHMEMORY_SOURCE
  21. #define ERASEFLASHMEMORY_SOURCE
  22. #include <string.h>
  23. #include "../plc/plc.h"
  24. #include "../nda/nda.h"
  25. signed EraseReadFlashMemory (struct plc * plc)
  26. {
  27. return (PLCSelect (plc, EraseFlashMemory1, EraseFlashMemory2));
  28. }
  29. #endif