Skip to content

Commit

Permalink
Merge branch 'TomoYamanaka-master_branch2'
Browse files Browse the repository at this point in the history
  • Loading branch information
0xc0170 committed May 24, 2016
2 parents 24136af + 935111f commit b32f7a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hal/targets/cmsis/core_caFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,15 @@ __asm(
__STATIC_INLINE void __v7_inv_dcache_all(void) {
__v7_all_cache(0);
}
/** \brief Clean and Invalidate D$ by MVA
DCCIMVAC. Data cache clean and invalidate by MVA to PoC
*/
__STATIC_INLINE void __v7_clean_inv_dcache_mva(void *va) {
__MCR(15, 0, (uint32_t)va, 7, 14, 1);
__DMB();
}

#include "core_ca_mmu.h"

#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/
Expand Down
4 changes: 4 additions & 0 deletions hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/serial_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,11 @@ static void uart_err_irq(IRQn_Type irq_num, uint32_t index) {
}
serial_rx_abort_asynch(obj);

#if defined ( __ICCARM__ )
was_masked = __disable_irq_iar();
#else
was_masked = __disable_irq();
#endif /* __ICCARM__ */
if (obj->serial.uart->SCFSR & 0x93) {
err_read = obj->serial.uart->SCFSR;
obj->serial.uart->SCFSR = (err_read & ~0x93);
Expand Down

0 comments on commit b32f7a9

Please sign in to comment.