Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加调试信息输出串口引脚配置功能 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/CPU/system_MK60.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ void SystemInit (void) {

//��ʼ�����ڴ�ӡ������Ϣ�Ĵ���ģ��
//TERM_PORTΪUARTͨ������k60_card.h�ж���
//TERM_RX_PINΪUART_RX���ţ���k60_card.h�ж���
//TERM_TX_PINΪUART_TX���ţ���k60_card.h�ж���
//TERMINAL_BAUDΪUART�����ʣ���k60_card.h�ж���
term_port_structure.UART_Uartx = TERM_PORT;
term_port_structure.UART_RxPin = TERM_RX_PIN;
term_port_structure.UART_TxPin = TERM_TX_PIN;
term_port_structure.UART_BaudRate = TERMINAL_BAUD;
LPLD_UART_Init(term_port_structure);

Expand Down
4 changes: 3 additions & 1 deletion project/(DMA PDB ADC)LPLD_DmaPdbADCx4/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/(DMA PDB ADC)LPLD_DmaPdbAnalogSample/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/(FatFS SDHC)LPLD_FatFs/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/(PDB ADC)LPLD_PdbAnalogSample/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/(uCos)LPLD_uCosOSSem/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/(uCos)LPLD_uCosV292/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/01-LPLD_HelloWorld/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/02-(GPIO)LPLD_LedLight/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/03-(GPIOint)LPLD_ButtonPress/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/04-(UART)LPLD_SerialComm/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/05-(UARTint)LPLD_SerialInterrupt/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/06-(ADC)LPLD_AnalogSampleSE/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/07-(ADC)LPLD_AnalogSampleDIFF/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/08-(DAC)LPLD_AnalogSignalOutput/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/09-(PIT)LPLD_PeriodicInterrupt/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/10-(FTM_PWM)LPLD_ServoControl/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/11-(FTM_IC)LPLD_InputCapture/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/12-(FTM_QD)LPLD_QuadratureDecoder/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/13-(LPTMR)LPLD_PulseAcc/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/14-(LPTMR)LPLD_DelayMs/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/15-(RTC)LPLD_RealTimeClock/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/16-(RTC)LPLD_AlarmClock/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/17-(PDB)LPLD_PdbPeriodicInt/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/18-(I2C)LPLD_MMA7660/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/19-(I2C)LPLD_MMA8451/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/20-(I2C)LPLD_MAG3110/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/21-(SPI)LPLD_Nrf24L01/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/22-(SPI)LPLD_Touchscreen/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
4 changes: 3 additions & 1 deletion project/23-(TSI)LPLD_TouchPad/app/k60_card.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@


/*
* ѡ�������Ϣ������еĴ��ںźͲ�����
* ѡ�������Ϣ������еĴ��ںš����źͲ�����
*/
#define TERM_PORT UART5
#define TERM_RX_PIN PTE9
#define TERM_TX_PIN PTE8
#define TERMINAL_BAUD 115200

/*
Expand Down
Loading