Skip to content
Snippets Groups Projects
Commit 17e112cd authored by schneider's avatar schneider
Browse files

fix(board): Change voltages based on selected board

parent e6560754
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,8 @@ COMPILER=GCC
# Specify the board used
ifeq "$(BOARD)" ""
BOARD=EvKit_V1
#BOARD=EvKit_V1
BOARD=card10
endif
# This is the path to the CMSIS root directory
......
......@@ -109,14 +109,20 @@ void pmic_init(void)
MAX77650_setEN_SBB0(0b110); //Enable SBB0 is on irrespective of FPS whenever the on/off controller is in its "On via Software" or "On via On/Off Controller" states
MAX77650_setIP_SBB1(0b11); //Limit output of SBB1 to 500mA
#if BOARD_EVKIT
MAX77650_setTV_SBB1(0b100000); //Set output Voltage of SBB1 to 1.2V
//MAX77650_setTV_SBB1(0b100010); //Set output Voltage of SBB1 to 3.3V
#else
MAX77650_setTV_SBB1(0b100010); //Set output Voltage of SBB1 to 3.3V
#endif
MAX77650_setADE_SBB1(0b0); //Disable Active Discharge at SBB1 Output
MAX77650_setEN_SBB1(0b110); //Enable SBB1 is on irrespective of FPS whenever the on/off controller is in its "On via Software" or "On via On/Off Controller" states
MAX77650_setIP_SBB2(0b11); //Limit output of SBB2 to 500mA
#if BOARD_EVKIT
MAX77650_setTV_SBB2(0b110010); //Set output Voltage of SBB2 to 3.3V
//MAX77650_setTV_SBB2(0b110100); //Set output Voltage of SBB2 to 5.0V
#else
MAX77650_setTV_SBB2(0b110100); //Set output Voltage of SBB2 to 5.0V
#endif
MAX77650_setADE_SBB2(0b0); //Disable Active Discharge at SBB2 Output
MAX77650_setEN_SBB2(0b110); //Enable SBB2 is on irrespective of FPS whenever the on/off controller is in its "On via Software" or "On via On/Off Controller" states
......
......@@ -50,6 +50,8 @@ SRCS += mx25.c
SRCS += pb.c
PROJ_CFLAGS += -DBOARD_EVKIT=1
# Where to find BSP source files
VPATH += $(BOARD_DIR)/Source
VPATH += $(BOARD_DIR)/../Source
......
......@@ -49,6 +49,7 @@ SRCS += led.c
SRCS += mx25.c
SRCS += pb.c
PROJ_CFLAGS += -DBOARD_CARD10=1
# Where to find BSP source files
VPATH += $(BOARD_DIR)/Source
......
......@@ -180,7 +180,9 @@ __weak void SystemInit(void)
MXC_GPIO1->vssel |= (1 << 6) | (1 << 7); // GPIO to TOP
MXC_GPIO1->vssel |= (1 << 14) | (1 << 15); // GPIO for RGB LEDs
#if BOARD_EVKIT
MXC_GPIO1->vssel |= (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12); // TODO: TMP for devboard
#endif
MXC_GPIO1->ps |= 0xFFFFFFFF;
MXC_GPIO1->pad_cfg1 |= 0xFFFFFFFF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment