A Convolutional Neural Network Fully Implemented on FPGA for Embedded Platforms