Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
micropython/ports/renesas-ra/ra_hal.c
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
36 lines (26 sloc)
1.16 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "hal_data.h" | |
void R_BSP_WarmStart(bsp_warm_start_event_t event); | |
// This function is called at various points during the startup process. | |
// event: where in the start up process the code is currently at. | |
void R_BSP_WarmStart(bsp_warm_start_event_t event) { | |
if (BSP_WARM_START_RESET == event) { | |
#if BSP_FEATURE_FLASH_LP_VERSION != 0 | |
// Enable reading from data flash. | |
R_FACI_LP->DFLCTL = 1U; | |
// Would normally have to wait tDSTOP(6us) for data flash recovery. Placing the | |
// enable here, before clock and C runtime initialization, should negate the need | |
// for a delay since the initialization will typically take more than 6us. | |
#endif | |
} | |
if (BSP_WARM_START_POST_C == event) { | |
// At this point, C runtime environment and system clocks are set up. | |
// Configure pins. | |
R_IOPORT_Open(&g_ioport_ctrl, &g_bsp_pin_cfg); | |
} | |
} | |
#if BSP_TZ_SECURE_BUILD | |
BSP_CMSE_NONSECURE_ENTRY void template_nonsecure_callable(); | |
// Trustzone Secure Projects require at least one nonsecure callable function in order to build. | |
BSP_CMSE_NONSECURE_ENTRY void template_nonsecure_callable() { | |
} | |
#endif |