Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marek
firmware
Commits
cbff1426
Verified
Commit
cbff1426
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
chore(bootloader): Cleanup includes
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
c4580819
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bootloader/bootloader-usb.c
+11
-7
11 additions, 7 deletions
bootloader/bootloader-usb.c
bootloader/bootloader.h
+7
-0
7 additions, 0 deletions
bootloader/bootloader.h
bootloader/main.c
+23
-20
23 additions, 20 deletions
bootloader/main.c
bootloader/mscmem.c
+4
-5
4 additions, 5 deletions
bootloader/mscmem.c
with
45 additions
and
32 deletions
bootloader/bootloader-usb.c
+
11
−
7
View file @
cbff1426
...
...
@@ -38,22 +38,26 @@
* @brief USB Mass Storage Class
*/
#include
<stdio.h>
#include
<stddef.h>
#include
"bootloader.h"
#include
"descriptors.h"
#include
"display.h"
#include
"GUI_Paint.h"
#include
"card10.h"
#include
"led.h"
#include
"mxc_config.h"
#include
"mxc_sys.h"
#include
"mxc_delay.h"
#include
"board.h"
#include
"led.h"
#include
"usb.h"
#include
"usb_event.h"
#include
"enumerate.h"
#include
"msc.h"
#include
"descriptors.h"
#include
"mscmem.h"
#include
"card10.h"
#include
"display
.h
"
#include
"GUI_Paint
.h
"
#include
<stdio
.h
>
#include
<stddef
.h
>
/***** Definitions *****/
#define EVENT_ENUM_COMP MAXUSB_NUM_EVENTS
...
...
This diff is collapsed.
Click to expand it.
bootloader/bootloader.h
0 → 100644
+
7
−
0
View file @
cbff1426
#pragma once
void
run_usbmsc
(
void
);
void
bootloader_stop
(
void
);
void
bootloader_dirty
(
void
);
void
bootloader_clean
(
void
);
This diff is collapsed.
Click to expand it.
bootloader/main.c
+
23
−
20
View file @
cbff1426
#include
<stdio.h>
#include
<stddef.h>
#include
<stdbool.h>
#include
<string.h>
#include
"bootloader.h"
#include
"mxc_config.h"
#include
"mxc_sys.h"
#include
"mxc_delay.h"
#include
"flc.h"
#include
"icc.h"
#include
"i2c.h"
#include
"crc.h"
#include
"board.h"
#include
"led.h"
#include
"ff.h"
#include
"crc16-ccitt.h"
#include
"pb.h"
#include
"display.h"
#include
"GUI_Paint.h"
#include
"card10.h"
#include
"display.h"
#include
"led.h"
#include
"pb.h"
#include
"pmic.h"
#include
"board.h"
#include
"crc.h"
#include
"crc16-ccitt.h"
#include
"ff.h"
#include
"flc.h"
#include
"i2c.h"
#include
"icc.h"
#include
"mxc_config.h"
#include
"mxc_delay.h"
#include
"mxc_sys.h"
#include
<stdbool.h>
#include
<stddef.h>
#include
<stdio.h>
#include
<string.h>
#define GPIO_PORT_IN PORT_1
#define GPIO_PIN_IN PIN_6
#define PARTITION_START (0x10000000 + 64 * 1024)
#define PARTITION_END (0x10000000 + 1024 * 1024 - 1)
extern
void
run_usbmsc
(
void
);
DIR
dir
;
FATFS
FatFs
;
...
...
@@ -220,6 +220,9 @@ int main(void)
printf
(
"
\n\n
Bootloader
\n
"
);
card10_init
();
/*
* Make the power/reset button restart card10.
*/
pmic_set_button_callback
(
pmic_button
);
Paint_DrawString_EN
(
0
,
16
*
0
,
"Bootloader"
,
&
Font16
,
0x0000
,
0xffff
);
...
...
This diff is collapsed.
Click to expand it.
bootloader/mscmem.c
+
4
−
5
View file @
cbff1426
#include
"bootloader.h"
#include
"mscmem.h"
#include
<string.h>
#include
<stdio.h>
#include
"mx25lba.h"
void
bootloader_stop
(
void
);
void
bootloader_dirty
(
void
);
void
bootloader_clean
(
void
);
#include
<string.h>
#include
<stdio.h>
static
int
dirty
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment