27e735fd18
This is to reduce ROM usage. stream_p is used in file and socket types only (at the moment), so seems a good idea to make the protocol functions a pointer instead of the actual structure. It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/.
91 lines
904 B
C
91 lines
904 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(repl_info)
|
|
Q(delay)
|
|
Q(udelay)
|
|
Q(switch)
|
|
Q(SW)
|
|
Q(servo)
|
|
Q(pwm)
|
|
Q(accel)
|
|
Q(accel_read)
|
|
Q(accel_mode)
|
|
Q(hid)
|
|
Q(time)
|
|
Q(rand)
|
|
Q(Led)
|
|
Q(LCD)
|
|
Q(Servo)
|
|
Q(SD)
|
|
Q(SDcard)
|
|
Q(I2C)
|
|
Q(gpio)
|
|
Q(gpio_in)
|
|
Q(gpio_out)
|
|
Q(Usart)
|
|
Q(ADC)
|
|
Q(ADC_all)
|
|
Q(Audio)
|
|
Q(File)
|
|
// Entries for sys.path
|
|
Q(0:/)
|
|
Q(0:/src)
|
|
Q(0:/lib)
|
|
Q(Pin)
|
|
Q(PinMap)
|
|
Q(PinAF)
|
|
Q(PinNamed)
|
|
Q(Exti)
|
|
Q(ExtiMeta)
|
|
Q(rtc_info)
|
|
Q(millis)
|
|
Q(PULL_NONE)
|
|
Q(PULL_UP)
|
|
Q(PULL_DOWN)
|
|
Q(PUSH_PULL)
|
|
Q(OPEN_DRAIN)
|
|
Q(on)
|
|
Q(off)
|
|
Q(toggle)
|
|
Q(line)
|
|
Q(enable)
|
|
Q(disable)
|
|
Q(swint)
|
|
Q(read_channel)
|
|
Q(read_core_temp)
|
|
Q(read_core_vbat)
|
|
Q(read_core_vref)
|
|
Q(noise)
|
|
Q(triangle)
|
|
Q(dac)
|
|
Q(dma)
|
|
Q(present)
|
|
Q(power)
|
|
Q(read)
|
|
Q(read)
|
|
Q(write)
|
|
Q(close)
|
|
Q(name)
|
|
Q(port)
|
|
Q(pin)
|
|
Q(angle)
|
|
Q(start)
|
|
Q(write)
|
|
Q(read)
|
|
Q(readAndStop)
|
|
Q(stop)
|
|
Q(status)
|
|
Q(recv_chr)
|
|
Q(send_chr)
|
|
Q(send)
|