53716fcc3e
This change helps making the cc3200 port API a bit closer to stmhal. The ramaining differences are due to the specific hardware details of each chip. One feature that has been deliberately disabled is the possibility to add custom names and custom pin mappings. Those features are nice and convenient, but in this port, code size is a major concern.
220 lines
2.2 KiB
C
220 lines
2.2 KiB
C
// qstrs specific to this port
|
|
Q(__name__)
|
|
Q(help)
|
|
Q(pyb)
|
|
Q(info)
|
|
Q(hard_reset)
|
|
Q(stop)
|
|
Q(standby)
|
|
Q(main)
|
|
Q(sync)
|
|
Q(gc)
|
|
Q(rng)
|
|
Q(delay)
|
|
Q(time)
|
|
Q(open)
|
|
Q(on)
|
|
Q(off)
|
|
Q(toggle)
|
|
Q(write)
|
|
Q(read)
|
|
Q(readall)
|
|
Q(readline)
|
|
Q(input)
|
|
Q(os)
|
|
Q(mac)
|
|
Q(freq)
|
|
Q(repl_info)
|
|
Q(wfi)
|
|
Q(disable_irq)
|
|
Q(enable_irq)
|
|
Q(millis)
|
|
Q(micros)
|
|
Q(elapsed_millis)
|
|
Q(elapsed_micros)
|
|
Q(udelay)
|
|
Q(SD)
|
|
Q(SDcard)
|
|
Q(FileIO)
|
|
Q(flush)
|
|
// Entries for sys.path
|
|
Q(/SFLASH)
|
|
Q(/SFLASH/LIB)
|
|
Q(/SD)
|
|
Q(/SD/LIB)
|
|
|
|
// for module weak links
|
|
Q(re)
|
|
Q(json)
|
|
Q(heapq)
|
|
|
|
// for os module
|
|
Q(uos)
|
|
Q(os)
|
|
Q(/)
|
|
Q(SFLASH)
|
|
Q(SD)
|
|
Q(chdir)
|
|
Q(getcwd)
|
|
Q(listdir)
|
|
Q(mkdir)
|
|
Q(remove)
|
|
Q(rmdir)
|
|
Q(unlink)
|
|
Q(sep)
|
|
Q(stat)
|
|
Q(urandom)
|
|
|
|
// for file class
|
|
Q(seek)
|
|
Q(tell)
|
|
|
|
// for Pin class
|
|
Q(Pin)
|
|
Q(init)
|
|
Q(value)
|
|
Q(low)
|
|
Q(high)
|
|
Q(name)
|
|
Q(port)
|
|
Q(pin)
|
|
Q(cpu)
|
|
Q(mode)
|
|
Q(pull)
|
|
Q(index)
|
|
Q(strength)
|
|
Q(af)
|
|
Q(IN)
|
|
Q(OUT)
|
|
Q(STD)
|
|
Q(STD_PU)
|
|
Q(STD_PD)
|
|
Q(OD)
|
|
Q(OD_PU)
|
|
Q(OD_PD)
|
|
Q(S2MA)
|
|
Q(S4MA)
|
|
Q(S6MA)
|
|
|
|
// for ExtInt class
|
|
Q(ExtInt)
|
|
Q(pin)
|
|
Q(mode)
|
|
Q(pull)
|
|
Q(callback)
|
|
Q(enable)
|
|
Q(disable)
|
|
Q(swint)
|
|
Q(IRQ_RISING)
|
|
Q(IRQ_FALLING)
|
|
Q(IRQ_RISING_FALLING)
|
|
Q(IRQ_LOW_LEVEL)
|
|
Q(IRQ_HIGH_LEVEL)
|
|
|
|
// for UART class
|
|
Q(UART)
|
|
Q(UART1)
|
|
Q(UART2)
|
|
Q(baudrate)
|
|
Q(bits)
|
|
Q(stop)
|
|
Q(parity)
|
|
Q(init)
|
|
Q(deinit)
|
|
Q(all)
|
|
Q(writechar)
|
|
Q(readchar)
|
|
Q(readinto)
|
|
Q(read_buf_len)
|
|
Q(timeout)
|
|
Q(timeout_char)
|
|
Q(repl_uart)
|
|
Q(flow)
|
|
Q(FLOW_NONE)
|
|
Q(FLOW_TX)
|
|
Q(FLOW_RX)
|
|
Q(FLOW_TXRX)
|
|
|
|
// for RTC class
|
|
Q(RTC)
|
|
Q(datetime)
|
|
|
|
// for time class
|
|
Q(utime)
|
|
Q(localtime)
|
|
Q(mktime)
|
|
Q(sleep)
|
|
Q(time)
|
|
|
|
// for select class
|
|
Q(select)
|
|
Q(uselect)
|
|
Q(register)
|
|
Q(unregister)
|
|
Q(modify)
|
|
Q(poll)
|
|
|
|
// for socket class
|
|
Q(socket)
|
|
Q(usocket)
|
|
Q(getaddrinfo)
|
|
Q(family)
|
|
Q(type)
|
|
Q(send)
|
|
Q(sendto)
|
|
Q(recv)
|
|
Q(recvfrom)
|
|
Q(listen)
|
|
Q(accept)
|
|
Q(bind)
|
|
Q(settimeout)
|
|
Q(setblocking)
|
|
Q(setsockopt)
|
|
Q(close)
|
|
Q(protocol)
|
|
Q(AF_INET)
|
|
Q(AF_INET6)
|
|
Q(SOCK_STREAM)
|
|
Q(SOCK_DGRAM)
|
|
Q(SOCK_RAW)
|
|
Q(IPPROTO_TCP)
|
|
Q(IPPROTO_UDP)
|
|
Q(IPPROTO_RAW)
|
|
|
|
// for network class
|
|
Q(network)
|
|
Q(route)
|
|
|
|
// for wlan class
|
|
Q(WLAN)
|
|
Q(key)
|
|
Q(security)
|
|
Q(ssid)
|
|
Q(bssid)
|
|
Q(scan)
|
|
Q(connect)
|
|
Q(isconnected)
|
|
Q(disconnect)
|
|
Q(getmode)
|
|
Q(channel)
|
|
Q(getip)
|
|
Q(setpm)
|
|
Q(serversstart)
|
|
Q(serversstop)
|
|
Q(areserversenabled)
|
|
Q(serversuserpass)
|
|
Q(STA)
|
|
Q(AP)
|
|
Q(P2P)
|
|
Q(OPEN)
|
|
Q(WEP)
|
|
Q(WPA_WPA2)
|
|
Q(WPA_ENT)
|
|
Q(WPS_PBC)
|
|
Q(WPS_PIN)
|
|
Q(NORMAL_PM)
|
|
Q(LOW_LATENCY_PM)
|
|
Q(LOW_POWER_PM)
|
|
Q(ALWAYS_ON_PM)
|
|
Q(LONG_SLEEP_PM)
|