- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
this is my program
#include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
void main(void)
{
// M8C_EnableGInt ; // Uncomment this line to enable Global Interrupts
// Insert your main routine code here.
PGA_SetGain(PGA_1_G8_00);
PGA_Start(PGA_1_MEDPOWER);
}
and this is my errors
!W C:\Users\hai\DOCUME~1\PSOCDE~1.3PR\PDPROJ~4\PDPROJ~1\main.c(14):[warning] [MISRA 2200]calling an undeclared function may cause unexpected behavior if the function
takes or returns values other than int
!W C:\Users\hai\DOCUME~1\PSOCDE~1.3PR\PDPROJ~4\PDPROJ~1\main.c(14):[warning] [MISRA 2714]calling a function without prototype may cause unexpected behavior if the function
takes or returns values other than int
!W C:\Users\hai\DOCUME~1\PSOCDE~1.3PR\PDPROJ~4\PDPROJ~1\main.c(15):[warning] [MISRA 2200]calling an undeclared function may cause unexpected behavior if the function
takes or returns values other than int
!W C:\Users\hai\DOCUME~1\PSOCDE~1.3PR\PDPROJ~4\PDPROJ~1\main.c(15):[warning] [MISRA 2714]calling a function without prototype may cause unexpected behavior if the function
takes or returns values other than int
./boot.asm
Linking..
LMM info: area 'virtual_registers' uses 2 bytes in SRAM page 0
!ERROR {linker} file 'main.o': undefined symbol '_PGA_SetGain'
!ERROR {linker} file 'main.o': undefined symbol '_PGA_Start'
make: *** [output/PDProject4.rom] Error -1