Skip to content

Commit

Permalink
MPU changes
Browse files Browse the repository at this point in the history
  • Loading branch information
g0nz4I0 committed Apr 9, 2024
1 parent 1c52c50 commit 896311b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 4 additions & 6 deletions Core/Src/Runes/Runes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,7 @@ map<Pin, InputCapture::Instance> InputCapture::available_instances = {
***********************************************/
#if defined(HAL_ADC_MODULE_ENABLED) && defined(HAL_LPTIM_MODULE_ENABLED)

uint16_t adc_buf1[ADC_BUF_LEN];
uint16_t adc_buf2[ADC_BUF_LEN];
uint16_t adc_buf3[ADC_BUF_LEN];
MPUManager::config MPUManager::MPUConfig = {};

LowPowerTimer lptim1(*LPTIM1, hlptim1, LPTIM1_PERIOD, "LPTIM 1");
LowPowerTimer lptim2(*LPTIM2, hlptim2, LPTIM2_PERIOD, "LPTIM 2");
Expand All @@ -230,9 +228,9 @@ ADC::InitData init_data2(ADC2, ADC_RESOLUTION_16B, ADC_EXTERNALTRIG_LPTIM2_OUT,
ADC::InitData init_data3(ADC3, ADC_RESOLUTION_12B, ADC_EXTERNALTRIG_LPTIM3_OUT, channels3, DMA::Stream::DMA1Stream2, "ADC 3");

ADC::Peripheral ADC::peripherals[3] = {
ADC::Peripheral(&hadc1, adc_buf1, lptim1, init_data1),
ADC::Peripheral(&hadc2, adc_buf2, lptim2, init_data2),
ADC::Peripheral(&hadc3, adc_buf3, lptim3, init_data3)
ADC::Peripheral(&hadc1, lptim1, init_data1),
ADC::Peripheral(&hadc2, lptim2, init_data2),
ADC::Peripheral(&hadc3, lptim3, init_data3)
};

map<Pin, ADC::Instance> ADC::available_instances = {
Expand Down
7 changes: 6 additions & 1 deletion STM32H723ZGTX_FLASH.ld
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ SECTIONS
*(.TxDecripSection)

} >RAM_D2

.stlib_no_cache_ram_pool :
{
. = ABSOLUTE(0x38000000);
_no_cached_ram_start = .;

} >RAM_D3
/* Remove information from the standard libraries */
/DISCARD/ :
{
Expand Down

0 comments on commit 896311b

Please sign in to comment.