diff options
author | Jan Čapek <jan.capek@braiins.cz> | 2016-03-10 09:22:41 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-16 13:18:09 +0100 |
commit | d76c65f599b77aa275eda3d2248cde16f6be7e10 (patch) | |
tree | 4d5b53d2bd8189d8bbeb280fbdf7c55ef1c9cafc /teensy/qstrdefsport.h | |
parent | dbbf0827862d2e300827468020c6c558b7934276 (diff) | |
download | micropython-d76c65f599b77aa275eda3d2248cde16f6be7e10.tar.gz micropython-d76c65f599b77aa275eda3d2248cde16f6be7e10.zip |
py: Add rules for automated extraction of qstrs from sources.
- add template rule that converts a specified source file into a qstring file
- add special rule for generating a central header that contains all
extracted/autogenerated strings - defined by QSTR_DEFS_COLLECTED
variable. Each platform appends a list of sources that may contain
qstrings into a new build variable: SRC_QSTR. Any autogenerated
prerequisities are should be appened to SRC_QSTR_AUTO_DEPS variable.
- remove most qstrings from py/qstrdefs, keep only qstrings that
contain special characters - these cannot be easily detected in the
sources without additional annotations
- remove most manual qstrdefs, use qstrdef autogen for: py, cc3200,
stmhal, teensy, unix, windows, pic16bit:
- remove all micropython generic qstrdefs except for the special strings that contain special characters (e.g. /,+,<,> etc.)
- remove all port specific qstrdefs except for special strings
- append sources for qstr generation in platform makefiles (SRC_QSTR)
Diffstat (limited to 'teensy/qstrdefsport.h')
-rw-r--r-- | teensy/qstrdefsport.h | 148 |
1 files changed, 0 insertions, 148 deletions
diff --git a/teensy/qstrdefsport.h b/teensy/qstrdefsport.h index aa466624a4..3ba897069b 100644 --- a/teensy/qstrdefsport.h +++ b/teensy/qstrdefsport.h @@ -1,149 +1 @@ // 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(readinto) -Q(readline) -Q(readlines) -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(micros) -Q(elapsed_millis) -Q(elapsed_micros) -Q(udelay) -Q(UART) - -// for Pin class -Q(Pin) -Q(PinAF) -Q(PinNamed) -Q(init) -Q(value) -Q(alt) -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) -Q(OPEN_DRAIN) -Q(ALT) -Q(ALT_OPEN_DRAIN) -Q(ANALOG) -Q(PULL_UP) -Q(PULL_DOWN) -Q(OUT_PP) -Q(OUT_OD) -Q(AF_PP) -Q(AF_OD) -Q(PULL_NONE) - -// for Timer class -Q(Timer) -Q(init) -Q(deinit) -Q(channel) -Q(counter) -Q(prescaler) -Q(period) -Q(callback) -Q(freq) -Q(mode) -Q(reg) -Q(UP) -Q(CENTER) -Q(IC) -Q(PWM) -Q(PWM_INVERTED) -Q(OC_TIMING) -Q(OC_ACTIVE) -Q(OC_INACTIVE) -Q(OC_TOGGLE) -Q(OC_FORCED_ACTIVE) -Q(OC_FORCED_INACTIVE) -Q(HIGH) -Q(LOW) -Q(RISING) -Q(FALLING) -Q(BOTH) - -// for TimerChannel class -Q(TimerChannel) -Q(pulse_width) -Q(pulse_width_percent) -Q(compare) -Q(capture) -Q(polarity) -t -// 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) - |