資源簡介
點亮led(gpio點亮led燈.c )
代碼片段和文件信息
#include?
#include?
#ifdef?__cplusplus
extern?“C“
#endif
void?SysTick_Handler(void)
{
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
}
int?main(void)
{
HAL_Init();
__GPIOC_CLK_ENABLE();
__GPIOB_CLK_ENABLE();
GPIO_InitTypeDef?GPIO_InitStructure;
GPIO_InitStructure.Pin?=?GPIO_PIN_13;
GPIO_InitStructure.Mode?=?GPIO_MODE_OUTPUT_PP;
GPIO_InitStructure.Speed?=?GPIO_SPEED_HIGH;
GPIO_InitStructure.Pull?=?GPIO_NOPULL;
HAL_GPIO_Init(GPIOC?&GPIO_InitStructure);
GPIO_InitStructure.Pin?=?GPIO_PIN_8?|?GPIO_PIN_9;
GPIO_InitStructure.Mode?=?GPIO_MODE
- 上一篇:《現代信號處理教程(胡廣書)》源代碼
- 下一篇:c語言插入排序
評論
共有 條評論