diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2025-10-17 22:01:03 -0400 |
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2025-10-17 22:01:03 -0400 |
| commit | 06ba9e05c166c48a739683766f09c4abf242fb81 (patch) | |
| tree | fb22c0052f075522e6882b462cb310deb4238ed0 /project/Core/Src/Activties/activity4.c | |
| parent | 0e0f83905bb3ee79f4917927479cdaf710e8ac07 (diff) | |
| download | 340-repo-Sowgro-06ba9e05c166c48a739683766f09c4abf242fb81.tar.gz 340-repo-Sowgro-06ba9e05c166c48a739683766f09c4abf242fb81.tar.bz2 340-repo-Sowgro-06ba9e05c166c48a739683766f09c4abf242fb81.zip | |
Complete project
Diffstat (limited to 'project/Core/Src/Activties/activity4.c')
| -rw-r--r-- | project/Core/Src/Activties/activity4.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/project/Core/Src/Activties/activity4.c b/project/Core/Src/Activties/activity4.c index 44653e1..f3bd673 100644 --- a/project/Core/Src/Activties/activity4.c +++ b/project/Core/Src/Activties/activity4.c @@ -9,19 +9,12 @@ #include <printf.h> #include <endian_converters.h> #include <stdint.h> - -typedef struct { - char chunk_type[4]; - uint32_t length; - uint16_t format; - uint16_t ntrcks; - uint16_t division; -} header; +#include "activity4.h" void activity4_run() { - header* p_header; + header_t* p_header; - p_header = (header *) (get_song(0).p_song); + p_header = (header_t *) (get_song(0).p_song); p_header->length = convert_to_uint32((uint8_t*) &p_header->length); p_header->format = convert_to_uint16((uint8_t*) &p_header->format); |
