edit blinky main
This commit is contained in:
parent
3f016f84d8
commit
9a350fc0cc
1 changed files with 0 additions and 20 deletions
|
|
@ -1,14 +1,3 @@
|
|||
/********************************** (C) COPYRIGHT *******************************
|
||||
* File Name : Main.c
|
||||
* Author : WCH
|
||||
* Version : V1.1
|
||||
* Date : 2022/01/25
|
||||
* Description : Ä£Äâ¼æÈÝHIDÉ豸
|
||||
*********************************************************************************
|
||||
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
|
||||
* Attention: This software (modified or not) and binary are used for
|
||||
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
|
||||
*******************************************************************************/
|
||||
|
||||
#include "CH59x_common.h"
|
||||
|
||||
|
|
@ -23,17 +12,8 @@ void board_led_toggle(void)
|
|||
GPIOA_InverseBits(GPIO_Pin_8);
|
||||
}
|
||||
|
||||
void board_led_set(uint8_t set)
|
||||
{
|
||||
if (set)
|
||||
GPIOA_ResetBits(GPIO_Pin_8);
|
||||
else
|
||||
GPIOA_SetBits(GPIO_Pin_8);
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
uint8_t s;
|
||||
SetSysClock(CLK_SOURCE_PLL_60MHz);
|
||||
|
||||
board_led_init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue