BLE_TYQ_CH584M/StdPeriphDriver/inc/CH58x_flash.h

42 lines
1.2 KiB
C
Raw Normal View History

2024-12-02 16:26:55 +08:00
/********************************** (C) COPYRIGHT *******************************
2025-02-21 14:38:41 +08:00
* File Name : CH58x_flash.h
2024-12-02 16:26:55 +08:00
* Author : WCH
* Version : V1.2
* Date : 2021/11/17
2025-02-21 14:38:41 +08:00
* Description : head file(ch585/ch584)
2024-12-02 16:26:55 +08:00
*********************************************************************************
* 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.
*******************************************************************************/
2025-02-21 14:38:41 +08:00
#ifndef __CH58x_FLASH_H__
#define __CH58x_FLASH_H__
2024-12-02 16:26:55 +08:00
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief <EFBFBD><EFBFBD>ȡFlash-ROM
*
* @param StartAddr - read address
* @param Buffer - read buffer
* @param len - read len
*/
void FLASH_ROM_READ(uint32_t StartAddr, void *Buffer, uint32_t len);
2025-03-27 10:22:43 +08:00
uint8_t UserOptionByteConfig(FunctionalState RESET_EN, FunctionalState BOOT_PIN, FunctionalState UART_NO_KEY_EN,
2024-12-02 16:26:55 +08:00
uint32_t FLASHProt_Size);
2025-03-27 10:22:43 +08:00
uint8_t UserOptionByteClose_SWD(void);
2024-12-02 16:26:55 +08:00
void UserOptionByte_Active(void);
void GET_UNIQUE_ID(uint8_t *Buffer);
#ifdef __cplusplus
}
#endif
2025-02-21 14:38:41 +08:00
#endif // __CH58x_FLASH_H__