Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Alexandre Malecot
freertos-cu-gps
Commits
49ba2b72
Commit
49ba2b72
authored
Jun 11, 2018
by
Colin González
Browse files
Modified port.c to be more compliant with specs
parent
0757998e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/freertos/portable/GCC/ARM9_AT91SAM9G20/port.c
src/freertos/portable/GCC/ARM9_AT91SAM9G20/port.c
+2
-3
No files found.
src/freertos/portable/GCC/ARM9_AT91SAM9G20/port.c
View file @
49ba2b72
...
...
@@ -51,7 +51,7 @@
#define portINSTRUCTION_SIZE ((StackType_t) 4)
/* Constants required to setup the PIT. */
#define PIT_PERIOD 1000
#define
port
PIT_PERIOD 1000
/* Constants required to handle critical sections. */
#define portNO_CRITICAL_NESTING ((StackType_t) 0)
...
...
@@ -65,7 +65,6 @@
/* Setup the PIT to generate the tick interrupts. */
static
void
prvSetupTimerInterrupt
(
void
);
/*-----------------------------------------------------------*/
/*
...
...
@@ -176,7 +175,7 @@ static void prvSetupTimerInterrupt( void )
{
extern
void
vPortTickISR
(
void
);
// Initialize the PIT to the desired frequency
PIT_Init
(
PIT_PERIOD
,
BOARD_MCK
/
1000000
);
PIT_Init
(
port
PIT_PERIOD
,
BOARD_MCK
/
1000000
);
// Configure interrupt on PIT
IRQ_DisableIT
(
AT91C_ID_SYS
);
...
...
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