更新
This commit is contained in:
parent
51eeff965b
commit
f3f030b0a7
@ -150,8 +150,8 @@
|
||||
<MemConfigValue>E:\Program Files\IAR Systems\Embedded Workbench 9.2\arm\config\debugger\FMSH\FM33LG02x.ddf</MemConfigValue>
|
||||
</PlDriver>
|
||||
<ArmDriver>
|
||||
<EnforceMemoryConfiguration>1</EnforceMemoryConfiguration>
|
||||
<EnableCache>0</EnableCache>
|
||||
<EnforceMemoryConfiguration>1</EnforceMemoryConfiguration>
|
||||
</ArmDriver>
|
||||
<Jet>
|
||||
<JetConnSerialNo>CMSIS-DAP v2:000000800671FF515256656767161348A5A5A5A597969908</JetConnSerialNo>
|
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,38 @@
|
||||
#ifndef __HWCTRL_H__
|
||||
#define __HWCTRL_H__
|
||||
|
||||
/*******************************************************************************
|
||||
* the includes
|
||||
******************************************************************************/
|
||||
#include "main.h"
|
||||
|
||||
/*******************************************************************************
|
||||
* the defines
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* the typedefs
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* the globals
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* the functions
|
||||
******************************************************************************/
|
||||
|
||||
void hw_gpio_init(void);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -0,0 +1,79 @@
|
||||
/*******************************************************************************
|
||||
* the includes
|
||||
******************************************************************************/
|
||||
#include "hwctrl.h"
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* the defines
|
||||
******************************************************************************/
|
||||
#define DCF1_GPIO GPIOB
|
||||
#define DCF1_PIN FL_GPIO_PIN_11
|
||||
#define DCF2_GPIO GPIOC
|
||||
#define DCF2_PIN FL_GPIO_PIN_5
|
||||
#define DCF3_GPIO GPIOC
|
||||
#define DCF3_PIN FL_GPIO_PIN_10
|
||||
#define DCF4_GPIO GPIOC
|
||||
#define DCF4_PIN FL_GPIO_PIN_8
|
||||
#define DCF5_GPIO GPIOA
|
||||
#define DCF5_PIN FL_GPIO_PIN_3
|
||||
#define DCF6_GPIO GPIOA
|
||||
#define DCF6_PIN FL_GPIO_PIN_4
|
||||
#define DCF7_GPIO GPIOA
|
||||
#define DCF7_PIN FL_GPIO_PIN_6
|
||||
#define DCF8_GPIO GPIOB
|
||||
#define DCF8_PIN FL_GPIO_PIN_9
|
||||
#define DCF9_GPIO GPIOA
|
||||
#define DCF9_PIN FL_GPIO_PIN_2
|
||||
#define DCF10_GPIO GPIOA
|
||||
#define DCF10_PIN FL_GPIO_PIN_15
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* the typedefs
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* the globals
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* the const
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* the functions
|
||||
******************************************************************************/
|
||||
|
||||
void hw_gpio_init(void)
|
||||
{
|
||||
|
||||
FL_GPIO_ResetOutputPin(DCF1_GPIO, DCF1_PIN);
|
||||
FL_GPIO_ResetOutputPin(DCF2_GPIO, DCF2_PIN);
|
||||
FL_GPIO_ResetOutputPin(DCF3_GPIO, DCF3_PIN);
|
||||
FL_GPIO_ResetOutputPin(DCF4_GPIO, DCF4_PIN);
|
||||
FL_GPIO_ResetOutputPin(DCF5_GPIO, DCF5_PIN);
|
||||
FL_GPIO_ResetOutputPin(DCF6_GPIO, DCF6_PIN);
|
||||
FL_GPIO_ResetOutputPin(DCF7_GPIO, DCF7_PIN);
|
||||
FL_GPIO_ResetOutputPin(DCF8_GPIO, DCF8_PIN);
|
||||
FL_GPIO_ResetOutputPin(DCF9_GPIO, DCF9_PIN);
|
||||
FL_GPIO_ResetOutputPin(DCF10_GPIO, DCF10_PIN);
|
||||
|
||||
GPIO_InitStruct.pin = DCF1_PIN;
|
||||
GPIO_InitStruct.mode = FL_GPIO_MODE_OUTPUT;
|
||||
GPIO_InitStruct.outputType = FL_GPIO_OUTPUT_PUSHPULL;
|
||||
GPIO_InitStruct.pull = FL_DISABLE;
|
||||
FL_GPIO_Init(DCF1_GPIO, &GPIO_InitStruct);
|
||||
|
||||
GPIO_InitStruct.pin = DCF1_PIN;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user