Browse Source

target/adi: remove superfluous ap_ prefix from ap variable

pull/1151/head
Rafael Silva 2 years ago
committed by Rachel Mant
parent
commit
ad65f4a7c7
  1. 4
      src/target/adiv5.c
  2. 4
      src/target/adiv5.h

4
src/target/adiv5.c

@ -510,9 +510,9 @@ static void adiv5_component_probe(ADIv5_AP_t *ap, uint32_t addr, const size_t re
if (cid_class == cidc_romtab) {
if (recursion == 0) {
ap->designer_code = designer_code;
ap->ap_partno = part_number;
ap->partno = part_number;
if (ap->designer_code == JEP106_MANUFACTURER_ATMEL && ap->ap_partno == 0xcd0) {
if (ap->designer_code == JEP106_MANUFACTURER_ATMEL && ap->partno == 0xcd0) {
uint32_t ctrlstat = adiv5_mem_read32(ap, SAMX5X_DSU_CTRLSTAT);
if (ctrlstat & SAMX5X_STATUSB_PROT) {
/* A protected SAMx5x device is found.

4
src/target/adiv5.h

@ -267,8 +267,10 @@ struct ADIv5_AP_s {
uint32_t csw;
uint32_t ap_cortexm_demcr; /* Copy of demcr when starting */
uint32_t ap_storage; /* E.g to hold STM32F7 initial DBGMCU_CR value.*/
/* AP designer and partno */
uint16_t designer_code;
uint16_t ap_partno;
uint16_t partno;
};
unsigned int make_packet_request(uint8_t RnW, uint16_t addr);

Loading…
Cancel
Save