Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
d2dea84b
Commit
d2dea84b
authored
Jul 23, 2014
by
Xavier Piroux
Committed by
Matthieu Cattin
Sep 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main() test a bit the basic I/O of the SPI for SD
parent
8244d5d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
Makefile
sw/os-comparison/freertos_blink_fat/armgcc/Makefile
+3
-1
main.c
sw/os-comparison/freertos_blink_fat/src/main.c
+8
-0
No files found.
sw/os-comparison/freertos_blink_fat/armgcc/Makefile
View file @
d2dea84b
...
...
@@ -170,7 +170,9 @@ C_SRC += \
../reptile/FreeRTOS-Plus-FAT-SL/psp/target/rtc/psp_rtc.c
C_SRC
+=
\
../src/media-drv/sd/sd_driver_f.c
../src/media-drv/sd/sd_driver_f.c
\
../src/media-drv/sd/spi.c
\
../src/media-drv/sd/usart.c
#../reptile/FreeRTOS-Plus-FAT-SL/media-drv/ram/ramdrv_f.c #TODO: use our implementation for the driver of SD card.
C_SRC
+=
\
...
...
sw/os-comparison/freertos_blink_fat/src/main.c
View file @
d2dea84b
...
...
@@ -115,6 +115,14 @@ int main(void)
xTaskCreate
(
LedBlink
,
(
const
signed
char
*
)
"LedBlink3"
,
STACK_SIZE_FOR_TASK
,
&
parametersToTask3
,
TASK_PRIORITY
,
NULL
);
xTaskCreate
(
LedBlink
,
(
const
signed
char
*
)
"LedBlink4"
,
STACK_SIZE_FOR_TASK
,
&
parametersToTask4
,
TASK_PRIORITY
,
NULL
);
SPI_setup
(
1
,
1
,
1
);
//init SD SPI
{
//try to send data to SD
char
bufferSent
[
4
]
=
{
0x01
,
0xFF
,
0x2
,
0xFF
};
USART1_sendBuffer
(
bufferSent
,
4
);
}
f_dotest
(
0
);
/* test of using FAT32 */
/*Start FreeRTOS Scheduler*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment