I have been looking across various sites and I cannot seem to find much information regarding the information on the Arduino function libraries. I am using an HCS12 microcontroller (MC9S12DG256B) that has fewer libraries built into the bootloader. One of these lacking functionalities includes a built-in map function. I am specifically asking about the math and syntax that the Arduino utilizes in the library that contains the map function. How does Arduino define the map function? Here is what I am trying to define on my micro written in Arduino syntax.
int pot;
int PWM = map(pot,0,1023,3300,5700);