Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
labo
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISC2
pro
labo
Commits
7f58054c
Commit
7f58054c
authored
1 year ago
by
iliya
Browse files
Options
Downloads
Patches
Plain Diff
fix: added CFG macro to project
parent
ab3de1fc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mem2lcd_G4/.cproject
+2
-2
2 additions, 2 deletions
mem2lcd_G4/.cproject
mem2lcd_G4/src/dma.h
+36
-0
36 additions, 0 deletions
mem2lcd_G4/src/dma.h
mem2lcd_G4/src/dma_ssp_etu.c
+2
-0
2 additions, 0 deletions
mem2lcd_G4/src/dma_ssp_etu.c
with
40 additions
and
2 deletions
mem2lcd_G4/.cproject
+
2
−
2
View file @
7f58054c
...
...
@@ -107,7 +107,7 @@
<option
IS_BUILTIN_EMPTY=
"false"
IS_VALUE_EMPTY=
"true"
id=
"com.crt.advproject.link.memory.sections.625475614"
name=
"Extra linker script input sections"
superClass=
"com.crt.advproject.link.memory.sections"
useByScannerDiscovery=
"false"
valueType=
"stringList"
/>
<option
IS_BUILTIN_EMPTY=
"false"
IS_VALUE_EMPTY=
"true"
id=
"com.crt.advproject.link.gcc.multicore.master.userobjs.833669853"
name=
"Slave Objects (not visible)"
superClass=
"com.crt.advproject.link.gcc.multicore.master.userobjs"
useByScannerDiscovery=
"false"
valueType=
"userObjs"
/>
<option
id=
"com.crt.advproject.link.arch.1296395929"
name=
"Architecture"
superClass=
"com.crt.advproject.link.arch"
value=
"com.crt.advproject.link.target.cm3"
valueType=
"enumerated"
/>
<option
id=
"com.crt.advproject.link.script.861796581"
name=
"Linker script"
superClass=
"com.crt.advproject.link.script"
value=
"
test_lcd_ssp_dma
_Debug.ld"
valueType=
"string"
/>
<option
id=
"com.crt.advproject.link.script.861796581"
name=
"Linker script"
superClass=
"com.crt.advproject.link.script"
value=
"
mem2lcd_G4
_Debug.ld"
valueType=
"string"
/>
<option
id=
"com.crt.advproject.link.manage.756750610"
name=
"Manage linker script"
superClass=
"com.crt.advproject.link.manage"
value=
"true"
valueType=
"boolean"
/>
<option
id=
"gnu.c.link.option.nostdlibs.1548691555"
name=
"No startup or default libs (-nostdlib)"
superClass=
"gnu.c.link.option.nostdlibs"
value=
"true"
valueType=
"boolean"
/>
<option
IS_BUILTIN_EMPTY=
"false"
IS_VALUE_EMPTY=
"false"
id=
"gnu.c.link.option.other.1534858723"
name=
"Other options (-Xlinker [option])"
superClass=
"gnu.c.link.option.other"
valueType=
"stringList"
>
...
...
@@ -281,7 +281,7 @@
<option
IS_BUILTIN_EMPTY=
"false"
IS_VALUE_EMPTY=
"true"
id=
"com.crt.advproject.link.memory.sections.1721047405"
name=
"Extra linker script input sections"
superClass=
"com.crt.advproject.link.memory.sections"
valueType=
"stringList"
/>
<option
IS_BUILTIN_EMPTY=
"false"
IS_VALUE_EMPTY=
"true"
id=
"com.crt.advproject.link.gcc.multicore.master.userobjs.964733893"
name=
"Slave Objects (not visible)"
superClass=
"com.crt.advproject.link.gcc.multicore.master.userobjs"
valueType=
"userObjs"
/>
<option
id=
"com.crt.advproject.link.arch.661570660"
name=
"Architecture"
superClass=
"com.crt.advproject.link.arch"
value=
"com.crt.advproject.link.target.cm3"
valueType=
"enumerated"
/>
<option
id=
"com.crt.advproject.link.script.337741123"
name=
"Linker script"
superClass=
"com.crt.advproject.link.script"
value=
"
test_lcd_ssp_dma
_Release.ld"
valueType=
"string"
/>
<option
id=
"com.crt.advproject.link.script.337741123"
name=
"Linker script"
superClass=
"com.crt.advproject.link.script"
value=
"
mem2lcd_G4
_Release.ld"
valueType=
"string"
/>
<option
id=
"com.crt.advproject.link.manage.858321269"
name=
"Manage linker script"
superClass=
"com.crt.advproject.link.manage"
value=
"true"
valueType=
"boolean"
/>
<option
id=
"gnu.c.link.option.nostdlibs.1560825805"
name=
"No startup or default libs (-nostdlib)"
superClass=
"gnu.c.link.option.nostdlibs"
value=
"true"
valueType=
"boolean"
/>
<option
IS_BUILTIN_EMPTY=
"false"
IS_VALUE_EMPTY=
"false"
id=
"gnu.c.link.option.other.2085617560"
name=
"Other options (-Xlinker [option])"
superClass=
"gnu.c.link.option.other"
valueType=
"stringList"
>
...
...
This diff is collapsed.
Click to expand it.
mem2lcd_G4/src/dma.h
0 → 100644
+
36
−
0
View file @
7f58054c
/****************************************************************************
DMA constants definition
****************************************************************************/
#ifndef __DMA_H
#define __DMA_H
#define DMA_SRC 0x2007C000
#define DMA_DST 0x20080000
#define DMA_SIZE 0x1000
#define M2M 0x00
#define M2P 0x01
#define P2M 0x02
#define P2P 0x03
#define BURST4 0x04
#define WORD32_TRANSFER 0x2
#define INCREMENT 1
#define TERMINAL_INTERRUPT 0x80000000
#define DMA_CFG ((BURST4 << 12) | (BURST4 << 15) \
|
(
WORD32_TRANSFER
<<
18
)
|
(
WORD32_TRANSFER
<<
21
)
|
(
INCREMENT
<<
26
)
|
(
INCREMENT
<<
27
)
|
\
TERMINAL_INTERRUPT
)
void
DMA_Init
(
uint32_t
*
src
,
uint32_t
*
dest
,
uint32_t
len
,
uint32_t
LLI
);
typedef
struct
{
volatile
uint32_t
DMACCSrcAddr
;
volatile
uint32_t
DMACCDestAddr
;
volatile
uint32_t
DMACCLLI
;
volatile
uint32_t
DMACCControl
;
}
GPDMALLI_t
;
#endif
This diff is collapsed.
Click to expand it.
mem2lcd_G4/src/dma_ssp_etu.c
+
2
−
0
View file @
7f58054c
...
...
@@ -7,9 +7,11 @@
#include
<stdbool.h>
#include
<stdint.h>
#include
<assert.h>
#include
"dma.h"
#include
"LPC17xx.h"
void
ssp0_init
(
uint8_t
data_size_select
,
uint8_t
scr
)
{
LPC_PINCON
->
PINSEL0
&=
~
(
3
<<
30
);
...
...
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