コード例 #1
0
 def configureGPIO(self):
     syslog.syslog(LOG_STSW_PRI, "> HVControlBoard:configureGPIO")
     PBBDevices.selectSPISlave(GPIO_ID, SPI_MODE_0)
     PBBDevices.configureGPIO(SPI_MODE_0)
     PBBDevices.deSelectSPISlaves(SPI_MODE_0)
     PBBDevices.selectSPISlave(GPIO_ID, SPI_MODE_0)
     PBBDevices.readGPIOConfiguration(SPI_MODE_0)
     PBBDevices.deSelectSPISlaves(SPI_MODE_0)
     syslog.syslog(LOG_STSW_PRI, "< HVControlBoard:configureGPIO")
コード例 #2
0
	def configureGPIO(self):
		syslog.syslog(LOG_STSW_PRI,"> HVControlBoard:configureGPIO")
		PBBDevices.selectSPISlave(GPIO_ID,SPI_MODE_0)
		PBBDevices.configureGPIO(SPI_MODE_0)
		PBBDevices.deSelectSPISlaves(SPI_MODE_0)
		PBBDevices.selectSPISlave(GPIO_ID,SPI_MODE_0)
		PBBDevices.readGPIOConfiguration(SPI_MODE_0)
		PBBDevices.deSelectSPISlaves(SPI_MODE_0)
		syslog.syslog(LOG_STSW_PRI,"< HVControlBoard:configureGPIO")