• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • avrprog
  • Patches

Refactored Chip Info into a Structure

Brought to you by: betoes, pzn
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Patches
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#3 Refactored Chip Info into a Structure

open
nobody
None
5
2005-05-10
2005-05-10
Robert James Kaes
No

Rather than passing the chip id, signature,
program_memory_size, and eeprom_memory_size around, I
created a structure to encapsulate those variables.
This refactoring is also in anticipation of needing
additional variables when I get around to fixing the
programming code to handle chips like the ATtiny2313
that require a "page" programming method.

Re-ordered some of the while() loops into do..while
loops. I believe this change simplifies the code
(namely by removing the need for tracking boolean flags.)

Refactored the chip signature check code into it's own
function.

Discussion

  • Robert James Kaes

    Robert James Kaes - 2005-05-10
     
    03_refactored_chip_info_into_a_structure.patch
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    225 Broadway Suite 1600
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2025 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.