Correct compile option for modprn example
This commit is contained in:
parent
f1cd247823
commit
5401cc2f27
3 changed files with 4 additions and 1 deletions
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
void sys_init(void) {
|
||||
cpm_sysfunc_init();
|
||||
|
||||
setup_modprn(Channel_A, BRate_9600, bpc_8, stop_1, parity_none);
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
|
|
|||
|
|
@ -18,5 +18,7 @@ $(BIN_DIR)/generic.arf:
|
|||
$(QUIET)$(ECHO) $(BIN_DIR)/cprintf.rel >> $(BIN_DIR)/generic.arf
|
||||
$(QUIET)$(ECHO) $(BIN_DIR)/cpm_sysfunc.rel >> $(BIN_DIR)/generic.arf
|
||||
$(QUIET)$(ECHO) $(BIN_DIR)/ansi_term.rel >> $(BIN_DIR)/generic.arf
|
||||
$(QUIET)$(ECHO) $(BIN_DIR)/hw_common.rel >> $(BIN_DIR)/generic.arf
|
||||
$(QUIET)$(ECHO) $(BIN_DIR)/hw_modprn02.rel >> $(BIN_DIR)/generic.arf
|
||||
$(QUIET)$(ECHO) $(BIN_DIR)/$(REPLACE_TAG).rel >> $(BIN_DIR)/generic.arf
|
||||
$(QUIET)$(ECHO) -e >> $(BIN_DIR)/generic.arf
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ void setup_modprn(MPRN_Channel chan, MPRN_BaudRate brate, MPRN_BPC bpc, MPRN_Sto
|
|||
}
|
||||
|
||||
void ctc_init(MPRN_Channel chan, MPRN_BaudRate brate) {
|
||||
uint8_t idx;
|
||||
uint8_t ctc_command = 0x57; // Enable time constant sending, low-to-high pulse front trigger, counter mode, interrupts disabled
|
||||
|
||||
hw_outp(MODPRN02_CTC_CHAN_0 + chan, ctc_command);
|
||||
|
|
|
|||
Loading…
Reference in a new issue