162306a36Sopenharmony_ciWhat: /sys/class/c2port/ 262306a36Sopenharmony_ciDate: October 2008 362306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 462306a36Sopenharmony_ciDescription: 562306a36Sopenharmony_ci The /sys/class/c2port/ directory will contain files and 662306a36Sopenharmony_ci directories that will provide a unified interface to 762306a36Sopenharmony_ci the C2 port interface. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciWhat: /sys/class/c2port/c2portX 1062306a36Sopenharmony_ciDate: October 2008 1162306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 1262306a36Sopenharmony_ciDescription: 1362306a36Sopenharmony_ci The /sys/class/c2port/c2portX/ directory is related to X-th 1462306a36Sopenharmony_ci C2 port into the system. Each directory will contain files to 1562306a36Sopenharmony_ci manage and control its C2 port. 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ciWhat: /sys/class/c2port/c2portX/access 1862306a36Sopenharmony_ciDate: October 2008 1962306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 2062306a36Sopenharmony_ciDescription: 2162306a36Sopenharmony_ci The /sys/class/c2port/c2portX/access file enable the access 2262306a36Sopenharmony_ci to the C2 port from the system. No commands can be sent 2362306a36Sopenharmony_ci till this entry is set to 0. 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ciWhat: /sys/class/c2port/c2portX/dev_id 2662306a36Sopenharmony_ciDate: October 2008 2762306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 2862306a36Sopenharmony_ciDescription: 2962306a36Sopenharmony_ci The /sys/class/c2port/c2portX/dev_id file show the device ID 3062306a36Sopenharmony_ci of the connected micro. 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ciWhat: /sys/class/c2port/c2portX/flash_access 3362306a36Sopenharmony_ciDate: October 2008 3462306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 3562306a36Sopenharmony_ciDescription: 3662306a36Sopenharmony_ci The /sys/class/c2port/c2portX/flash_access file enable the 3762306a36Sopenharmony_ci access to the on-board flash of the connected micro. 3862306a36Sopenharmony_ci No commands can be sent till this entry is set to 0. 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ciWhat: /sys/class/c2port/c2portX/flash_block_size 4162306a36Sopenharmony_ciDate: October 2008 4262306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 4362306a36Sopenharmony_ciDescription: 4462306a36Sopenharmony_ci The /sys/class/c2port/c2portX/flash_block_size file show 4562306a36Sopenharmony_ci the on-board flash block size of the connected micro. 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ciWhat: /sys/class/c2port/c2portX/flash_blocks_num 4862306a36Sopenharmony_ciDate: October 2008 4962306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 5062306a36Sopenharmony_ciDescription: 5162306a36Sopenharmony_ci The /sys/class/c2port/c2portX/flash_blocks_num file show 5262306a36Sopenharmony_ci the on-board flash blocks number of the connected micro. 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ciWhat: /sys/class/c2port/c2portX/flash_data 5562306a36Sopenharmony_ciDate: October 2008 5662306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 5762306a36Sopenharmony_ciDescription: 5862306a36Sopenharmony_ci The /sys/class/c2port/c2portX/flash_data file export 5962306a36Sopenharmony_ci the content of the on-board flash of the connected micro. 6062306a36Sopenharmony_ci 6162306a36Sopenharmony_ciWhat: /sys/class/c2port/c2portX/flash_erase 6262306a36Sopenharmony_ciDate: October 2008 6362306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 6462306a36Sopenharmony_ciDescription: 6562306a36Sopenharmony_ci The /sys/class/c2port/c2portX/flash_erase file execute 6662306a36Sopenharmony_ci the "erase" command on the on-board flash of the connected 6762306a36Sopenharmony_ci micro. 6862306a36Sopenharmony_ci 6962306a36Sopenharmony_ciWhat: /sys/class/c2port/c2portX/reset 7062306a36Sopenharmony_ciDate: October 2008 7162306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 7262306a36Sopenharmony_ciDescription: 7362306a36Sopenharmony_ci The /sys/class/c2port/c2portX/reset file execute a "reset" 7462306a36Sopenharmony_ci command on the connected micro. 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ciWhat: /sys/class/c2port/c2portX/rev_id 7762306a36Sopenharmony_ciDate: October 2008 7862306a36Sopenharmony_ciContact: Rodolfo Giometti <giometti@linux.it> 7962306a36Sopenharmony_ciDescription: 8062306a36Sopenharmony_ci The /sys/class/c2port/c2portX/rev_id file show the revision ID 8162306a36Sopenharmony_ci of the connected micro. 82