initial
This commit is contained in:
24
gpioCfg.c-example
Normal file
24
gpioCfg.c-example
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* gpioCfg.c
|
||||
*
|
||||
* Created on: 29.08.2016
|
||||
* Author: wn
|
||||
*/
|
||||
|
||||
#include <msp430g2553.h>
|
||||
#include "gpio.h"
|
||||
|
||||
tPinCfg pinCfg[PINS_END] = {
|
||||
{PORT1, BIT7, PIN_OUT, LOW}, //A
|
||||
{PORT1, BIT6, PIN_OUT, LOW}, //B
|
||||
{PORT2, BIT1, PIN_OUT, LOW}, //C
|
||||
{PORT2, BIT3, PIN_OUT, LOW}, //D
|
||||
{PORT2, BIT4, PIN_OUT, LOW}, //E
|
||||
{PORT2, BIT5, PIN_OUT, LOW}, //F
|
||||
{PORT2, BIT2, PIN_OUT, LOW}, //G
|
||||
{PORT2, BIT0, PIN_OUT, HIGH}, //0
|
||||
{PORT1, BIT5, PIN_OUT, HIGH}, //1
|
||||
{PORT1, BIT2, PIN_OUT, HIGH}, //2
|
||||
{PORT1, BIT0, PIN_IN_PULLUP, LOW}, // BUTTON_1
|
||||
{PORT1, BIT1, PIN_OUT, LOW}, // LED_1
|
||||
};
|
Reference in New Issue
Block a user