Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
afc-ipmi-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
xtca-projects
afc-ipmi-sw
Commits
dcbf5616
Commit
dcbf5616
authored
Mar 21, 2016
by
Henrique Silva
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fpga-reset' into afc-timing
parents
1adda2ca
1d6a3860
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
payload.c
modules/payload.c
+2
-2
pin_mapping.h
port/board/afc/pin_mapping.h
+4
-0
No files found.
modules/payload.c
View file @
dcbf5616
...
...
@@ -68,7 +68,7 @@
* 255 - power fail
*/
void
EINT
3
_IRQHandler
(
void
)
void
EINT
2
_IRQHandler
(
void
)
{
static
TickType_t
last_time
;
TickType_t
current_time
=
xTaskGetTickCountFromISR
();
...
...
@@ -158,7 +158,7 @@ void payload_init( void )
#endif
/* Configure FPGA reset button interruption on front panel */
Chip_IOCON_PinMux
(
LPC_IOCON
,
GPIO_F
PGA_RESET_PORT
,
GPIO_FPGA_RESET
_PIN
,
IOCON_MODE_INACT
,
IOCON_FUNC1
);
Chip_IOCON_PinMux
(
LPC_IOCON
,
GPIO_F
RONT_BUTTON_PORT
,
GPIO_FRONT_BUTTON
_PIN
,
IOCON_MODE_INACT
,
IOCON_FUNC1
);
irq_set_priority
(
EINT2_IRQn
,
configMAX_SYSCALL_INTERRUPT_PRIORITY
-
1
);
irq_enable
(
EINT2_IRQn
);
...
...
port/board/afc/pin_mapping.h
View file @
dcbf5616
...
...
@@ -71,6 +71,10 @@
#define HOT_SWAP_HANDLE_PIN 13
#define HOT_SWAP_HANDLE_FUNC 0
/* Front Panel BUTTON */
#define GPIO_FRONT_BUTTON_PORT 2
#define GPIO_FRONT_BUTTON_PIN 12
/* DCDC converters */
#define GPIO_EN_P1V2_PORT 0
#define GPIO_EN_P1V2_PIN 23
...
...
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