1d4d9ddd9e
This adds readline(), readall(), etc. methods. Also other fixes to make Python API compliant and "with" support.
131 lines
1.3 KiB
C
131 lines
1.3 KiB
C
// qstrs specific to this port
|
|
|
|
Q(help)
|
|
Q(pyb)
|
|
Q(info)
|
|
Q(sd_test)
|
|
Q(present)
|
|
Q(power)
|
|
Q(stop)
|
|
Q(standby)
|
|
Q(source_dir)
|
|
Q(main)
|
|
Q(usb_mode)
|
|
Q(sync)
|
|
Q(gc)
|
|
Q(repl_info)
|
|
Q(delay)
|
|
Q(udelay)
|
|
Q(switch)
|
|
Q(SW)
|
|
Q(servo)
|
|
Q(pwm)
|
|
Q(read)
|
|
Q(readall)
|
|
Q(readline)
|
|
Q(write)
|
|
Q(hid)
|
|
Q(time)
|
|
Q(rng)
|
|
Q(LCD)
|
|
Q(SD)
|
|
Q(SDcard)
|
|
Q(gpio)
|
|
Q(gpio_in)
|
|
Q(gpio_out)
|
|
Q(open)
|
|
Q(File)
|
|
// Entries for sys.path
|
|
Q(0:/)
|
|
Q(0:/src)
|
|
Q(0:/lib)
|
|
Q(Pin)
|
|
Q(PinMap)
|
|
Q(PinAF)
|
|
Q(PinNamed)
|
|
Q(rtc_info)
|
|
Q(millis)
|
|
Q(PULL_NONE)
|
|
Q(PULL_UP)
|
|
Q(PULL_DOWN)
|
|
Q(PUSH_PULL)
|
|
Q(OPEN_DRAIN)
|
|
|
|
// for Led object
|
|
Q(Led)
|
|
Q(on)
|
|
Q(off)
|
|
Q(toggle)
|
|
Q(intensity)
|
|
|
|
// for Usart object
|
|
Q(Usart)
|
|
Q(status)
|
|
Q(recv_chr)
|
|
Q(send_chr)
|
|
Q(send)
|
|
|
|
// for exti object
|
|
Q(Exti)
|
|
Q(line)
|
|
Q(enable)
|
|
Q(disable)
|
|
Q(swint)
|
|
Q(regs)
|
|
Q(MODE_IRQ_RISING)
|
|
Q(MODE_IRQ_FALLING)
|
|
Q(MODE_IRQ_RISING_FALLING)
|
|
Q(MODE_EVT_RISING)
|
|
Q(MODE_EVT_FALLING)
|
|
Q(MODE_EVT_RISING_FALLING)
|
|
|
|
// for I2C object
|
|
Q(I2C)
|
|
Q(is_ready)
|
|
Q(mem_read)
|
|
Q(mem_write)
|
|
|
|
// for Accel object
|
|
Q(Accel)
|
|
Q(x)
|
|
Q(y)
|
|
Q(z)
|
|
Q(tilt)
|
|
Q(filtered_xyz)
|
|
|
|
// for ADC object
|
|
Q(ADC)
|
|
Q(ADC_all)
|
|
Q(read_channel)
|
|
Q(read_core_temp)
|
|
Q(read_core_vbat)
|
|
Q(read_core_vref)
|
|
|
|
// for DAC object
|
|
Q(DAC)
|
|
Q(noise)
|
|
Q(triangle)
|
|
Q(dma)
|
|
|
|
// for Servo object
|
|
Q(Servo)
|
|
Q(angle)
|
|
|
|
// for os module
|
|
Q(os)
|
|
Q(/)
|
|
Q(listdir)
|
|
Q(mkdir)
|
|
Q(remove)
|
|
Q(rmdir)
|
|
Q(unlink)
|
|
Q(sep)
|
|
Q(urandom)
|
|
|
|
// for time module
|
|
Q(time)
|
|
Q(sleep)
|
|
|
|
// for input
|
|
Q(input)
|