Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rp2040_io_accelerator
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
flg_masters
PA
rp2040_io_accelerator
Commits
7748c882
Commit
7748c882
authored
2 months ago
by
Giovanni Mangano
Browse files
Options
Downloads
Patches
Plain Diff
Init
parent
62326511
No related branches found
No related tags found
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
GPS/GPS.c
+2
-3
2 additions, 3 deletions
GPS/GPS.c
GPS/GPS.h
+0
-5
0 additions, 5 deletions
GPS/GPS.h
PA_PIO.c
+1
-1
1 addition, 1 deletion
PA_PIO.c
PIO_XOR/pio_xor.c
+2
-1
2 additions, 1 deletion
PIO_XOR/pio_xor.c
PIO_XOR/pio_xor.h
+1
-1
1 addition, 1 deletion
PIO_XOR/pio_xor.h
with
7 additions
and
11 deletions
.gitignore
+
1
−
0
View file @
7748c882
build
.DS_store
\ No newline at end of file
This diff is collapsed.
Click to expand it.
GPS/GPS.c
+
2
−
3
View file @
7748c882
...
...
@@ -20,6 +20,8 @@ volatile int interrupt = 0;
gps_t
gps_data
=
{
0
};
gps_t
gps
=
{
0
};
volatile
void
__not_in_flash_func
(
pio_irq0_gps_handler
)(
void
)
{
...
...
@@ -218,9 +220,6 @@ void gps_parse_buffer(char * buffer){
else
{
//prinf("Message type: %s -> Unsused\n",section);
}
int
i
=
0
;
memset
(
gps_rx_buffer
,
0
,
256
);
pointer
=
0
;
}
int
gps_get_data
(
gps_t
*
gps_data
){
...
...
This diff is collapsed.
Click to expand it.
GPS/GPS.h
+
0
−
5
View file @
7748c882
...
...
@@ -17,9 +17,6 @@
#define GPS_2D_FIX 1
#define GPS_3D_FIX 3
static
uint8_t
gps_rx_buffer
[
256
];
static
uint16_t
pointer
;
static
int
counter
=
0
;
typedef
struct
{
uint8_t
sat
;
time_t
time
;
...
...
@@ -37,8 +34,6 @@ typedef struct{
uint16_t
course
;
}
gps_t
;
static
gps_t
gps
;
void
gps_parse_buffer
(
char
*
buffer
);
int
gps_get_data
(
gps_t
*
gps_data
);
...
...
This diff is collapsed.
Click to expand it.
PA_PIO.c
+
1
−
1
View file @
7748c882
...
...
@@ -13,7 +13,7 @@ int main()
sleep_ms
(
2000
);
// gps_init(pio0, 9600);
// comparator_init(pio0, 1000, 2);
test
();
test
_pio_xor
();
while
(
true
)
{
tight_loop_contents
();
}
...
...
This diff is collapsed.
Click to expand it.
PIO_XOR/pio_xor.c
+
2
−
1
View file @
7748c882
#include
"pio_xor.h"
void
test
(
void
){
void
test
_pio_xor
(
void
){
sleep_ms
(
1000
);
uint
sm
=
pio_claim_unused_sm
(
pio0
,
true
);
printf
(
"sm = %i
\n
"
,
sm
);
...
...
@@ -16,6 +16,7 @@ void test(void){
/* Write the separator (that will trigger an interrupt) */
pio_sm_put
(
pio0
,
sm
,
0
b1110010011100100
);
printf
(
"for input 0b11: %x
\n
"
,
pio_sm_get_blocking
(
pio0
,
0
));
//pio_sm_put(pio0, sm, 0b10);
printf
(
"for input 0b10: %x
\n
"
,
pio_sm_get_blocking
(
pio0
,
0
));
...
...
This diff is collapsed.
Click to expand it.
PIO_XOR/pio_xor.h
+
1
−
1
View file @
7748c882
...
...
@@ -7,6 +7,6 @@
#include
"hardware/pio.h"
#include
"pio_xor.pio.h"
void
test
(
void
);
void
test
_pio_xor
(
void
);
#endif
\ No newline at end of file
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