SD card functionality
Dependents: ELEC350_Project2 SDcard
SDCard.cpp@1:c3af0c26ded2, 2018-11-07 (annotated)
- Committer:
- Swabey89
- Date:
- Wed Nov 07 19:56:55 2018 +0000
- Revision:
- 1:c3af0c26ded2
- Parent:
- 0:0fc2cf27ff9e
- Child:
- 2:9a5eea2adbf8
SDread will take arguments on how many samples to read.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Swabey89 | 0:0fc2cf27ff9e | 1 | #include "SDCard.hpp" |
Swabey89 | 0:0fc2cf27ff9e | 2 | |
Swabey89 | 1:c3af0c26ded2 | 3 | void SDcard(void) |
Swabey89 | 0:0fc2cf27ff9e | 4 | { |
Swabey89 | 1:c3af0c26ded2 | 5 | |
Swabey89 | 0:0fc2cf27ff9e | 6 | //puts("SD Card alive"); |
Swabey89 | 0:0fc2cf27ff9e | 7 | //Thread::wait(3000); |
Swabey89 | 0:0fc2cf27ff9e | 8 | |
Swabey89 | 1:c3af0c26ded2 | 9 | //Initialisation stuff |
Swabey89 | 1:c3af0c26ded2 | 10 | |
Swabey89 | 1:c3af0c26ded2 | 11 | //printf("SD card queue error, unreachable code"); |
Swabey89 | 1:c3af0c26ded2 | 12 | //SDQueue.dispatch(); |
Swabey89 | 1:c3af0c26ded2 | 13 | } |
Swabey89 | 1:c3af0c26ded2 | 14 | |
Swabey89 | 1:c3af0c26ded2 | 15 | void SDread(int n) |
Swabey89 | 1:c3af0c26ded2 | 16 | { |
Swabey89 | 1:c3af0c26ded2 | 17 | printf("Read %d files\n", n); |
Swabey89 | 1:c3af0c26ded2 | 18 | } |
Swabey89 | 1:c3af0c26ded2 | 19 | |
Swabey89 | 1:c3af0c26ded2 | 20 | void SDalive(void) |
Swabey89 | 1:c3af0c26ded2 | 21 | { |
Swabey89 | 1:c3af0c26ded2 | 22 | puts("Im alive\n"); |
Swabey89 | 0:0fc2cf27ff9e | 23 | } |