6f418fc1b0
Converts generted pins to use qstrs instead of string pointers. This patch also adds the following functions: pyb.Pin.names() pyb.Pin.af_list() pyb.Pin.gpio() dir(pyb.Pin.board) and dir(pyb.Pin.cpu) also produce useful results. pyb.Pin now takes kw args. pyb.Pin.__str__ now prints more useful information about the pin configuration. I found the following functions in my boot.py to be useful: ```python def pins(): for pin_name in dir(pyb.Pin.board): pin = pyb.Pin(pin_name) print('{:10s} {:s}'.format(pin_name, str(pin))) def af(): for pin_name in dir(pyb.Pin.board): pin = pyb.Pin(pin_name) print('{:10s} {:s}'.format(pin_name, str(pin.af_list()))) ```
103 lines
978 B
C
103 lines
978 B
C
// qstrs specific to this port
|
|
|
|
Q(help)
|
|
Q(pyb)
|
|
Q(info)
|
|
Q(sd_test)
|
|
Q(stop)
|
|
Q(standby)
|
|
Q(source_dir)
|
|
Q(main)
|
|
Q(sync)
|
|
Q(gc)
|
|
Q(delay)
|
|
Q(switch)
|
|
Q(servo)
|
|
Q(pwm)
|
|
Q(accel)
|
|
Q(mma_read)
|
|
Q(mma_mode)
|
|
Q(hid)
|
|
Q(time)
|
|
Q(rand)
|
|
Q(LED)
|
|
Q(led)
|
|
Q(Servo)
|
|
Q(I2C)
|
|
Q(gpio)
|
|
Q(Usart)
|
|
Q(ADC)
|
|
Q(open)
|
|
Q(analogRead)
|
|
Q(analogWrite)
|
|
Q(analogWriteResolution)
|
|
Q(analogWriteFrequency)
|
|
Q(on)
|
|
Q(off)
|
|
Q(toggle)
|
|
Q(readall)
|
|
Q(readline)
|
|
Q(FileIO)
|
|
Q(input)
|
|
Q(os)
|
|
Q(bootloader)
|
|
Q(unique_id)
|
|
Q(freq)
|
|
Q(repl_info)
|
|
Q(wfi)
|
|
Q(disable_irq)
|
|
Q(enable_irq)
|
|
Q(usb_mode)
|
|
Q(have_cdc)
|
|
Q(millis)
|
|
Q(udelay)
|
|
Q(UART)
|
|
|
|
// for Pin class
|
|
Q(Pin)
|
|
Q(PinAF)
|
|
Q(PinNamed)
|
|
Q(init)
|
|
Q(value)
|
|
Q(low)
|
|
Q(high)
|
|
Q(name)
|
|
Q(names)
|
|
Q(af)
|
|
Q(af_list)
|
|
Q(port)
|
|
Q(pin)
|
|
Q(gpio)
|
|
Q(mapper)
|
|
Q(dict)
|
|
Q(debug)
|
|
Q(board)
|
|
Q(cpu)
|
|
Q(mode)
|
|
Q(pull)
|
|
Q(index)
|
|
Q(reg)
|
|
Q(IN)
|
|
Q(OUT_PP)
|
|
Q(OUT_OD)
|
|
Q(AF_PP)
|
|
Q(AF_OD)
|
|
Q(ANALOG)
|
|
Q(PULL_NONE)
|
|
Q(PULL_UP)
|
|
Q(PULL_DOWN)
|
|
|
|
// for UART class
|
|
Q(UART)
|
|
Q(baudrate)
|
|
Q(bits)
|
|
Q(stop)
|
|
Q(parity)
|
|
Q(init)
|
|
Q(deinit)
|
|
Q(all)
|
|
Q(send)
|
|
Q(recv)
|
|
Q(timeout)
|
|
|